expand() — tailwindcss Function Reference
Architecture documentation for the expand() function in expand-declaration.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9b0f6215_d728_39c5_c24a_2e50640933f4["expand()"] 253418a1_4f08_cf0e_5b8e_c6392b9959eb["parse()"] 9b0f6215_d728_39c5_c24a_2e50640933f4 -->|calls| 253418a1_4f08_cf0e_5b8e_c6392b9959eb a32bba76_f60d_883f_1ff1_276a0bb9db9f["walk()"] 9b0f6215_d728_39c5_c24a_2e50640933f4 -->|calls| a32bba76_f60d_883f_1ff1_276a0bb9db9f 5e4110d6_8dee_8a97_307e_d0021e0225de["expandDeclaration()"] 9b0f6215_d728_39c5_c24a_2e50640933f4 -->|calls| 5e4110d6_8dee_8a97_307e_d0021e0225de e7a34553_0273_6202_4792_07409e33d8f0["toCss()"] 9b0f6215_d728_39c5_c24a_2e50640933f4 -->|calls| e7a34553_0273_6202_4792_07409e33d8f0 style 9b0f6215_d728_39c5_c24a_2e50640933f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/expand-declaration.test.ts lines 10–21
function expand(input: string, options: SignatureFeatures): string {
let ast = parse(input)
walk(ast, (node) => {
if (node.kind === 'declaration') {
let result = expandDeclaration(node, options)
if (result) return WalkAction.ReplaceSkip(result)
}
})
return toCss(ast)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does expand() do?
expand() is a function in the tailwindcss codebase.
What does expand() call?
expand() calls 4 function(s): expandDeclaration, parse, toCss, walk.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free