Home / Function/ atRoot() — tailwindcss Function Reference

atRoot() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  04953c5c_51e1_25ee_0e61_539631b1aaa9["atRoot()"]
  42640952_ea63_55f1_1ff1_00816e2980ae["ast.ts"]
  04953c5c_51e1_25ee_0e61_539631b1aaa9 -->|defined in| 42640952_ea63_55f1_1ff1_00816e2980ae
  3970218d_3d6c_e455_87cc_45b4a094f0e9["parseCss()"]
  3970218d_3d6c_e455_87cc_45b4a094f0e9 -->|calls| 04953c5c_51e1_25ee_0e61_539631b1aaa9
  c1a769fc_95ca_ceea_62f9_aedeeedf7c66["createVariants()"]
  c1a769fc_95ca_ceea_62f9_aedeeedf7c66 -->|calls| 04953c5c_51e1_25ee_0e61_539631b1aaa9
  852badc5_8e84_ea07_33ee_dc57e83d550c["substituteAtSlot()"]
  852badc5_8e84_ea07_33ee_dc57e83d550c -->|calls| 04953c5c_51e1_25ee_0e61_539631b1aaa9
  style 04953c5c_51e1_25ee_0e61_539631b1aaa9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/ast.ts lines 119–124

export function atRoot(nodes: AstNode[]): AtRoot {
  return {
    kind: 'at-root',
    nodes,
  }
}

Domain

Subdomains

Frequently Asked Questions

What does atRoot() do?
atRoot() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/ast.ts.
Where is atRoot() defined?
atRoot() is defined in packages/tailwindcss/src/ast.ts at line 119.
What calls atRoot()?
atRoot() is called by 3 function(s): createVariants, parseCss, substituteAtSlot.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free