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