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
  b9f8f3ed_4296_2840_57dd_a1c25e0e5f52["atRoot()"]
  26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c["parseCss()"]
  26086ff1_0d4f_fdb2_3fc4_d0c999f90a8c -->|calls| b9f8f3ed_4296_2840_57dd_a1c25e0e5f52
  7c96535c_85cb_d6bf_efe4_875fba595c4f["createVariants()"]
  7c96535c_85cb_d6bf_efe4_875fba595c4f -->|calls| b9f8f3ed_4296_2840_57dd_a1c25e0e5f52
  944e28d2_f1e8_a026_2bfd_32c96ffb9e0d["substituteAtSlot()"]
  944e28d2_f1e8_a026_2bfd_32c96ffb9e0d -->|calls| b9f8f3ed_4296_2840_57dd_a1c25e0e5f52
  style b9f8f3ed_4296_2840_57dd_a1c25e0e5f52 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,
  }
}

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