styleRule() — tailwindcss Function Reference
Architecture documentation for the styleRule() function in ast.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9db2a11b_4852_e036_e394_622c7a90dd1f["styleRule()"] f4f92a3d_c13e_a751_8402_451ffa4c772f["rule()"] f4f92a3d_c13e_a751_8402_451ffa4c772f -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 6bc468c3_f692_fb93_b3e2_cf2a6051b874["createUtilitySignatureCache()"] 6bc468c3_f692_fb93_b3e2_cf2a6051b874 -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 9a5c7b9b_20db_35ed_c673_96cb0dd8c459["createVariantSignatureCache()"] 9a5c7b9b_20db_35ed_c673_96cb0dd8c459 -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 9056089b_151f_3027_844b_242ce55294db["upgradeToFullPluginSupport()"] 9056089b_151f_3027_844b_242ce55294db -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 95cb326e_6b59_0903_0c96_d221fca5c2b1["parseCss()"] 95cb326e_6b59_0903_0c96_d221fca5c2b1 -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 2df8f550_5e83_c7f0_edc4_d97e1a7195fc["getVariants()"] 2df8f550_5e83_c7f0_edc4_d97e1a7195fc -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f c067616f_e276_458d_2166_c9f10e6fcc93["createVariants()"] c067616f_e276_458d_2166_c9f10e6fcc93 -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f 101ae1c2_eee3_3589_2aa3_922a6a429d4f["substituteAtVariant()"] 101ae1c2_eee3_3589_2aa3_922a6a429d4f -->|calls| 9db2a11b_4852_e036_e394_622c7a90dd1f style 9db2a11b_4852_e036_e394_622c7a90dd1f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/ast.ts lines 70–76
export function styleRule(selector: string, nodes: AstNode[] = []): StyleRule {
return {
kind: 'rule',
selector,
nodes,
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does styleRule() do?
styleRule() is a function in the tailwindcss codebase.
What calls styleRule()?
styleRule() is called by 8 function(s): createUtilitySignatureCache, createVariantSignatureCache, createVariants, getVariants, parseCss, rule, substituteAtVariant, upgradeToFullPluginSupport.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free