inferDataType() — tailwindcss Function Reference
Architecture documentation for the inferDataType() function in infer-data-type.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD eefa9c6c_5f66_c5a0_7a28_80b6d58572cd["inferDataType()"] 3b6a2079_7f12_42cd_ba9f_a57ecec4366d["buildPluginApi()"] 3b6a2079_7f12_42cd_ba9f_a57ecec4366d -->|calls| eefa9c6c_5f66_c5a0_7a28_80b6d58572cd 0866206a_2fd9_ab63_77ac_471d39e47d4c["resolveValueFunction()"] 0866206a_2fd9_ab63_77ac_471d39e47d4c -->|calls| eefa9c6c_5f66_c5a0_7a28_80b6d58572cd style eefa9c6c_5f66_c5a0_7a28_80b6d58572cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/infer-data-type.ts lines 47–57
export function inferDataType(value: string, types: DataType[]): DataType | null {
if (value.startsWith('var(')) return null
for (let type of types) {
if (checks[type]?.(value)) {
return type
}
}
return null
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does inferDataType() do?
inferDataType() is a function in the tailwindcss codebase.
What calls inferDataType()?
inferDataType() is called by 2 function(s): buildPluginApi, resolveValueFunction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free