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 b3905b8a_d8a9_b5f0_6f92_39a589e06fcb["isLineWidth()"] 03b8d706_a876_a776_0056_186ced5d6067["segment()"] b3905b8a_d8a9_b5f0_6f92_39a589e06fcb -->|calls| 03b8d706_a876_a776_0056_186ced5d6067 b165f745_465e_eff8_6d0d_8cc7925672fb["isLength()"] b3905b8a_d8a9_b5f0_6f92_39a589e06fcb -->|calls| b165f745_465e_eff8_6d0d_8cc7925672fb b1d3acc2_87a0_1dc7_89cb_99caa3a5fac1["isNumber()"] b3905b8a_d8a9_b5f0_6f92_39a589e06fcb -->|calls| b1d3acc2_87a0_1dc7_89cb_99caa3a5fac1 style b3905b8a_d8a9_b5f0_6f92_39a589e06fcb 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