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
  398eed5f_f4c5_4768_fc95_4c1df31be1f8["atRoot()"]
  95cb326e_6b59_0903_0c96_d221fca5c2b1["parseCss()"]
  95cb326e_6b59_0903_0c96_d221fca5c2b1 -->|calls| 398eed5f_f4c5_4768_fc95_4c1df31be1f8
  c067616f_e276_458d_2166_c9f10e6fcc93["createVariants()"]
  c067616f_e276_458d_2166_c9f10e6fcc93 -->|calls| 398eed5f_f4c5_4768_fc95_4c1df31be1f8
  6234f4ec_58fd_3072_8261_ee063767d897["substituteAtSlot()"]
  6234f4ec_58fd_3072_8261_ee063767d897 -->|calls| 398eed5f_f4c5_4768_fc95_4c1df31be1f8
  style 398eed5f_f4c5_4768_fc95_4c1df31be1f8 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.
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