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 1cdf00e9_c049_9259_0b0d_59a06c397532["inferDataType()"] ad196438_55f7_af7b_1604_1d75c1c27d8e["buildPluginApi()"] ad196438_55f7_af7b_1604_1d75c1c27d8e -->|calls| 1cdf00e9_c049_9259_0b0d_59a06c397532 84f8ccf2_2af5_fa7c_53f2_954b21183738["resolveValueFunction()"] 84f8ccf2_2af5_fa7c_53f2_954b21183738 -->|calls| 1cdf00e9_c049_9259_0b0d_59a06c397532 style 1cdf00e9_c049_9259_0b0d_59a06c397532 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