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 215be44d_0a2d_decd_9cd9_3660e45dda28["isAtRuleVariant()"] 1490304f_c9fd_75da_db3f_0c12d428c646["migrate-variant-order.ts"] 215be44d_0a2d_decd_9cd9_3660e45dda28 -->|defined in| 1490304f_c9fd_75da_db3f_0c12d428c646 d6f03aba_eecb_9486_a7b9_25fc0f87915d["migrateVariantOrder()"] d6f03aba_eecb_9486_a7b9_25fc0f87915d -->|calls| 215be44d_0a2d_decd_9cd9_3660e45dda28 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1["getAppliedNodeStack()"] 215be44d_0a2d_decd_9cd9_3660e45dda28 -->|calls| 0839b6fe_9be4_b1fe_f6ef_c1d5509a29c1 style 215be44d_0a2d_decd_9cd9_3660e45dda28 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, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts.
Where is isAtRuleVariant() defined?
isAtRuleVariant() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-variant-order.ts at line 64.
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