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 Oxide PreProcessors calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  83e4da67_668a_2a3c_0974_1ee12d26f5ef["hasDefault()"]
  e7a2e966_188e_28f5_d9d6_e54e27e0d0f2["Theme"]
  83e4da67_668a_2a3c_0974_1ee12d26f5ef -->|defined in| e7a2e966_188e_28f5_d9d6_e54e27e0d0f2
  652fb7ad_2f22_0667_c96e_43b408d0edbe["applyConfigToTheme()"]
  652fb7ad_2f22_0667_c96e_43b408d0edbe -->|calls| 83e4da67_668a_2a3c_0974_1ee12d26f5ef
  45cb4617_2116_e947_4a90_d9e2642b9325["getOptions()"]
  83e4da67_668a_2a3c_0974_1ee12d26f5ef -->|calls| 45cb4617_2116_e947_4a90_d9e2642b9325
  style 83e4da67_668a_2a3c_0974_1ee12d26f5ef 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