styleRule() — tailwindcss Function Reference
Architecture documentation for the styleRule() function in ast.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD c3b56f1d_0d90_0f17_2f55_85f3419d74bd["styleRule()"] 08f33202_11d1_569a_e8df_de23eb987e2f["rule()"] 08f33202_11d1_569a_e8df_de23eb987e2f -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 00f82a70_37cd_d9d2_64c8_29c748c197c6["createUtilitySignatureCache()"] 00f82a70_37cd_d9d2_64c8_29c748c197c6 -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd cb063cf6_f495_bb4b_84d1_f1d23fb0dae1["createVariantSignatureCache()"] cb063cf6_f495_bb4b_84d1_f1d23fb0dae1 -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 0f8ac574_990e_8595_a6ed_11422b8a8ec4["upgradeToFullPluginSupport()"] 0f8ac574_990e_8595_a6ed_11422b8a8ec4 -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c["parseCss()"] 26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 17785b1a_7f73_4e1a_312d_b1bf01e059c3["getVariants()"] 17785b1a_7f73_4e1a_312d_b1bf01e059c3 -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 7c96535c_85cb_d6bf_efe4_875fba595c4f["createVariants()"] 7c96535c_85cb_d6bf_efe4_875fba595c4f -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd 716eb081_2da3_764c_1bd4_89abf211e018["substituteAtVariant()"] 716eb081_2da3_764c_1bd4_89abf211e018 -->|calls| c3b56f1d_0d90_0f17_2f55_85f3419d74bd style c3b56f1d_0d90_0f17_2f55_85f3419d74bd 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