Home / Function/ static() — tailwindcss Function Reference

static() — tailwindcss Function Reference

Architecture documentation for the static() function in variants.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8b8b27d7_26d3_a7b8_edd4_3858daa755ac["static()"]
  13f9b85f_58c4_5390_3b22_04d00b93361b["set()"]
  8b8b27d7_26d3_a7b8_edd4_3858daa755ac -->|calls| 13f9b85f_58c4_5390_3b22_04d00b93361b
  style 8b8b27d7_26d3_a7b8_edd4_3858daa755ac 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,
    })
  }

Subdomains

Calls

Frequently Asked Questions

What does static() do?
static() is a function in the tailwindcss codebase.
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