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
  2c00ecd1_4408_06d4_3478_3c9858d9b60d["isValidThemePrimitive()"]
  245c850a_c551_a2cf_854e_bba95b5a1339["apply-config-to-theme.ts"]
  2c00ecd1_4408_06d4_3478_3c9858d9b60d -->|defined in| 245c850a_c551_a2cf_854e_bba95b5a1339
  f0444c59_74bb_21c0_b8e1_c65ad667fa51["themeableValues()"]
  f0444c59_74bb_21c0_b8e1_c65ad667fa51 -->|calls| 2c00ecd1_4408_06d4_3478_3c9858d9b60d
  style 2c00ecd1_4408_06d4_3478_3c9858d9b60d 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'
}

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