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 6fd42527_6d37_a6e6_09fc_2e39dfb4e163["isLineWidth()"] 516809a4_c70e_60c3_bbb2_8de4c4572510["infer-data-type.ts"] 6fd42527_6d37_a6e6_09fc_2e39dfb4e163 -->|defined in| 516809a4_c70e_60c3_bbb2_8de4c4572510 f712ed47_45d4_4e5a_dd73_fdefa1da71da["segment()"] 6fd42527_6d37_a6e6_09fc_2e39dfb4e163 -->|calls| f712ed47_45d4_4e5a_dd73_fdefa1da71da 978cd83c_b489_4dd0_bddf_ab7b6f0970c6["isLength()"] 6fd42527_6d37_a6e6_09fc_2e39dfb4e163 -->|calls| 978cd83c_b489_4dd0_bddf_ab7b6f0970c6 a83d8615_8f86_7357_a5df_f103f923c611["isNumber()"] 6fd42527_6d37_a6e6_09fc_2e39dfb4e163 -->|calls| a83d8615_8f86_7357_a5df_f103f923c611 style 6fd42527_6d37_a6e6_09fc_2e39dfb4e163 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, defined in packages/tailwindcss/src/utils/infer-data-type.ts.
Where is isLineWidth() defined?
isLineWidth() is defined in packages/tailwindcss/src/utils/infer-data-type.ts at line 69.
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