isLineWidth() — tailwindcss Function Reference
Architecture documentation for the isLineWidth() function in infer-data-type.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 296a190e_ea70_a371_f646_ef09d9f06571["isLineWidth()"] 2a20ea29_c850_cd61_5600_aeebbe3dda66["segment()"] 296a190e_ea70_a371_f646_ef09d9f06571 -->|calls| 2a20ea29_c850_cd61_5600_aeebbe3dda66 f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca["isLength()"] 296a190e_ea70_a371_f646_ef09d9f06571 -->|calls| f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca 4b2a86ff_1bb4_7b95_cc68_25f1de6a584b["isNumber()"] 296a190e_ea70_a371_f646_ef09d9f06571 -->|calls| 4b2a86ff_1bb4_7b95_cc68_25f1de6a584b style 296a190e_ea70_a371_f646_ef09d9f06571 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/infer-data-type.ts lines 69–78
function isLineWidth(value: string): boolean {
return segment(value, ' ').every(
(value) =>
isLength(value) ||
isNumber(value) ||
value === 'thin' ||
value === 'medium' ||
value === 'thick',
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does isLineWidth() do?
isLineWidth() is a function in the tailwindcss codebase.
What does isLineWidth() call?
isLineWidth() calls 3 function(s): isLength, isNumber, segment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free