isAtRuleVariant() — tailwindcss Function Reference
Architecture documentation for the isAtRuleVariant() function in migrate-variant-order.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 45938768_ab74_2591_e445_87844f1f028d["isAtRuleVariant()"] 52b790cf_9f93_aadf_60b7_6333be12e6cb["migrateVariantOrder()"] 52b790cf_9f93_aadf_60b7_6333be12e6cb -->|calls| 45938768_ab74_2591_e445_87844f1f028d b2aa4c79_dca9_e3fa_1c20_a0f13da7581b["getAppliedNodeStack()"] 45938768_ab74_2591_e445_87844f1f028d -->|calls| b2aa4c79_dca9_e3fa_1c20_a0f13da7581b style 45938768_ab74_2591_e445_87844f1f028d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts lines 64–71
function isAtRuleVariant(designSystem: DesignSystem, variant: Variant) {
// Handle the dark variant as an at-rule variant
if (variant.kind === 'static' && variant.root === 'dark') {
return true
}
let stack = getAppliedNodeStack(designSystem, variant)
return stack.every((node) => node.kind === 'at-rule')
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does isAtRuleVariant() do?
isAtRuleVariant() is a function in the tailwindcss codebase.
What does isAtRuleVariant() call?
isAtRuleVariant() calls 1 function(s): getAppliedNodeStack.
What calls isAtRuleVariant()?
isAtRuleVariant() is called by 1 function(s): migrateVariantOrder.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free