functional() — tailwindcss Function Reference
Architecture documentation for the functional() function in variants.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 0b45bc8b_6be0_3c76_dfd2_c6a379f6b1ec["functional()"] ff716ee9_bd1e_1568_4100_c1d5b3ab8daa["Variants"] 0b45bc8b_6be0_3c76_dfd2_c6a379f6b1ec -->|defined in| ff716ee9_bd1e_1568_4100_c1d5b3ab8daa c1a769fc_95ca_ceea_62f9_aedeeedf7c66["createVariants()"] c1a769fc_95ca_ceea_62f9_aedeeedf7c66 -->|calls| 0b45bc8b_6be0_3c76_dfd2_c6a379f6b1ec e37ec412_58f3_7fbe_3589_99329ee9b910["set()"] 0b45bc8b_6be0_3c76_dfd2_c6a379f6b1ec -->|calls| e37ec412_58f3_7fbe_3589_99329ee9b910 style 0b45bc8b_6be0_3c76_dfd2_c6a379f6b1ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/variants.ts lines 112–124
functional(
name: string,
applyFn: VariantFn<'functional'>,
{ compounds, order }: { compounds?: Compounds; order?: number } = {},
) {
this.set(name, {
kind: 'functional',
applyFn,
compoundsWith: Compounds.Never,
compounds: compounds ?? Compounds.StyleRules,
order,
})
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does functional() do?
functional() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/variants.ts.
Where is functional() defined?
functional() is defined in packages/tailwindcss/src/variants.ts at line 112.
What does functional() call?
functional() calls 1 function(s): set.
What calls functional()?
functional() is called by 1 function(s): createVariants.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free