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
  0fc0b50c_7bbc_aea5_40d1_7ce3ae8cf54d["isValidThemePrimitive()"]
  303b7e7d_33cb_6a63_7591_f61feb3c4e3d["themeableValues()"]
  303b7e7d_33cb_6a63_7591_f61feb3c4e3d -->|calls| 0fc0b50c_7bbc_aea5_40d1_7ce3ae8cf54d
  style 0fc0b50c_7bbc_aea5_40d1_7ce3ae8cf54d 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.
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