applyImportant() — tailwindcss Function Reference
Architecture documentation for the applyImportant() function in compile.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8b06de1f_66e2_f789_0e56_49cfdbb91386["applyImportant()"] 70b7448d_fd76_0d4b_e635_18f49f8ba1d6["compileAstNodes()"] 70b7448d_fd76_0d4b_e635_18f49f8ba1d6 -->|calls| 8b06de1f_66e2_f789_0e56_49cfdbb91386 style 8b06de1f_66e2_f789_0e56_49cfdbb91386 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/compile.ts lines 309–323
function applyImportant(ast: AstNode[]): void {
for (let node of ast) {
// Skip any `AtRoot` nodes — we don't want to make the contents of things
// like `@keyframes` or `@property` important.
if (node.kind === 'at-root') {
continue
}
if (node.kind === 'declaration') {
node.important = true
} else if (node.kind === 'rule' || node.kind === 'at-rule') {
applyImportant(node.nodes)
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does applyImportant() do?
applyImportant() is a function in the tailwindcss codebase.
What calls applyImportant()?
applyImportant() is called by 1 function(s): compileAstNodes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free