static() — tailwindcss Function Reference
Architecture documentation for the static() function in variants.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 774af68b_6fbe_668c_5fdf_6bbcef9f7ab6["static()"] ff716ee9_bd1e_1568_4100_c1d5b3ab8daa["Variants"] 774af68b_6fbe_668c_5fdf_6bbcef9f7ab6 -->|defined in| ff716ee9_bd1e_1568_4100_c1d5b3ab8daa e37ec412_58f3_7fbe_3589_99329ee9b910["set()"] 774af68b_6fbe_668c_5fdf_6bbcef9f7ab6 -->|calls| e37ec412_58f3_7fbe_3589_99329ee9b910 style 774af68b_6fbe_668c_5fdf_6bbcef9f7ab6 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