Home / Function/ isValidThemePrimitive() — tailwindcss Function Reference

isValidThemePrimitive() — tailwindcss Function Reference

Architecture documentation for the isValidThemePrimitive() function in apply-config-to-theme.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  6da26e58_87db_b3e8_5032_0c43d6f0d7e8["isValidThemePrimitive()"]
  8d84257d_f3b2_cdf8_542f_835967da0481["apply-config-to-theme.ts"]
  6da26e58_87db_b3e8_5032_0c43d6f0d7e8 -->|defined in| 8d84257d_f3b2_cdf8_542f_835967da0481
  961a5671_178b_5937_79ae_2463c9fb3bc9["themeableValues()"]
  961a5671_178b_5937_79ae_2463c9fb3bc9 -->|calls| 6da26e58_87db_b3e8_5032_0c43d6f0d7e8
  style 6da26e58_87db_b3e8_5032_0c43d6f0d7e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/compat/apply-config-to-theme.ts lines 242–244

function isValidThemePrimitive(value: unknown) {
  return typeof value === 'number' || typeof value === 'string'
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isValidThemePrimitive() do?
isValidThemePrimitive() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/apply-config-to-theme.ts.
Where is isValidThemePrimitive() defined?
isValidThemePrimitive() is defined in packages/tailwindcss/src/compat/apply-config-to-theme.ts at line 242.
What calls isValidThemePrimitive()?
isValidThemePrimitive() is called by 1 function(s): themeableValues.

Analyze Your Own Codebase

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

Try Supermodel Free