Home / Function/ styleRule() — tailwindcss Function Reference

styleRule() — tailwindcss Function Reference

Architecture documentation for the styleRule() function in ast.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  2a22052d_f868_4f88_0a03_2033be58172d["styleRule()"]
  b9cbffa4_c352_cf3c_268f_cbb174fb3a47["ast.ts"]
  2a22052d_f868_4f88_0a03_2033be58172d -->|defined in| b9cbffa4_c352_cf3c_268f_cbb174fb3a47
  085cf56e_8188_afb1_04da_5ccd0fb7babc["rule()"]
  085cf56e_8188_afb1_04da_5ccd0fb7babc -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  6e657054_f39b_c09e_18b9_3bc9c9e15d42["createUtilitySignatureCache()"]
  6e657054_f39b_c09e_18b9_3bc9c9e15d42 -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  975d8b8a_4b03_4408_cd48_2cea8a20646c["createVariantSignatureCache()"]
  975d8b8a_4b03_4408_cd48_2cea8a20646c -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  2351a59d_92ba_1342_1dcb_39b34492170e["upgradeToFullPluginSupport()"]
  2351a59d_92ba_1342_1dcb_39b34492170e -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  f7f9b3da_5977_1aa6_3bcb_bfc607af4e8f["parseCss()"]
  f7f9b3da_5977_1aa6_3bcb_bfc607af4e8f -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  fe1a2ea4_7e1e_c5fa_b348_7e00a39923a9["getVariants()"]
  fe1a2ea4_7e1e_c5fa_b348_7e00a39923a9 -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  876035d0_94a8_cf2f_314a_d520aaae6e4b["createVariants()"]
  876035d0_94a8_cf2f_314a_d520aaae6e4b -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  3a0ec0d5_1240_2a2d_bde3_145d361401fa["substituteAtVariant()"]
  3a0ec0d5_1240_2a2d_bde3_145d361401fa -->|calls| 2a22052d_f868_4f88_0a03_2033be58172d
  style 2a22052d_f868_4f88_0a03_2033be58172d 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

Frequently Asked Questions

What does styleRule() do?
styleRule() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/ast.ts.
Where is styleRule() defined?
styleRule() is defined in packages/tailwindcss/src/ast.ts at line 70.
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