applyImportant() — tailwindcss Function Reference
Architecture documentation for the applyImportant() function in compile.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 027a694e_1c93_8659_e94f_8a2869bb7124["applyImportant()"] 3ea56425_6e9f_0dc3_e68f_304ee638d53d["compileAstNodes()"] 3ea56425_6e9f_0dc3_e68f_304ee638d53d -->|calls| 027a694e_1c93_8659_e94f_8a2869bb7124 style 027a694e_1c93_8659_e94f_8a2869bb7124 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