functional() — tailwindcss Function Reference
Architecture documentation for the functional() function in variants.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6cc289c0_7885_e683_1053_2adb14a9ae30["functional()"] 67c140cd_3928_7c30_7f6d_c67052da2a02["Variants"] 6cc289c0_7885_e683_1053_2adb14a9ae30 -->|defined in| 67c140cd_3928_7c30_7f6d_c67052da2a02 876035d0_94a8_cf2f_314a_d520aaae6e4b["createVariants()"] 876035d0_94a8_cf2f_314a_d520aaae6e4b -->|calls| 6cc289c0_7885_e683_1053_2adb14a9ae30 ab94dcde_768f_3d99_6111_8043865014ab["set()"] 6cc289c0_7885_e683_1053_2adb14a9ae30 -->|calls| ab94dcde_768f_3d99_6111_8043865014ab style 6cc289c0_7885_e683_1053_2adb14a9ae30 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