Home / Function/ hasDefault() — tailwindcss Function Reference

hasDefault() — tailwindcss Function Reference

Architecture documentation for the hasDefault() function in theme.ts from the tailwindcss codebase.

Function typescript OxideEngine Scanner calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  68bbe6c5_9c3c_9047_344a_8cb9610bab8e["hasDefault()"]
  734cf7ec_fb2a_2532_7b20_b3a815c7e3e6["Theme"]
  68bbe6c5_9c3c_9047_344a_8cb9610bab8e -->|defined in| 734cf7ec_fb2a_2532_7b20_b3a815c7e3e6
  9fb2cb3b_46e1_4148_c220_0e7f4519db6d["applyConfigToTheme()"]
  9fb2cb3b_46e1_4148_c220_0e7f4519db6d -->|calls| 68bbe6c5_9c3c_9047_344a_8cb9610bab8e
  dbf6b411_7522_4e41_ab49_f4e9c07a4751["getOptions()"]
  68bbe6c5_9c3c_9047_344a_8cb9610bab8e -->|calls| dbf6b411_7522_4e41_ab49_f4e9c07a4751
  style 68bbe6c5_9c3c_9047_344a_8cb9610bab8e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/theme.ts lines 121–123

  hasDefault(key: string): boolean {
    return (this.getOptions(key) & ThemeOptions.DEFAULT) === ThemeOptions.DEFAULT
  }

Domain

Subdomains

Calls

Frequently Asked Questions

What does hasDefault() do?
hasDefault() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/theme.ts.
Where is hasDefault() defined?
hasDefault() is defined in packages/tailwindcss/src/theme.ts at line 121.
What does hasDefault() call?
hasDefault() calls 1 function(s): getOptions.
What calls hasDefault()?
hasDefault() is called by 1 function(s): applyConfigToTheme.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free