Home / Function/ isLength() — tailwindcss Function Reference

isLength() — tailwindcss Function Reference

Architecture documentation for the isLength() function in infer-data-type.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  978cd83c_b489_4dd0_bddf_ab7b6f0970c6["isLength()"]
  516809a4_c70e_60c3_bbb2_8de4c4572510["infer-data-type.ts"]
  978cd83c_b489_4dd0_bddf_ab7b6f0970c6 -->|defined in| 516809a4_c70e_60c3_bbb2_8de4c4572510
  8da43da0_6459_abf1_120f_6b4af193f3cf["canonicalizeDimension()"]
  8da43da0_6459_abf1_120f_6b4af193f3cf -->|calls| 978cd83c_b489_4dd0_bddf_ab7b6f0970c6
  6fd42527_6d37_a6e6_09fc_2e39dfb4e163["isLineWidth()"]
  6fd42527_6d37_a6e6_09fc_2e39dfb4e163 -->|calls| 978cd83c_b489_4dd0_bddf_ab7b6f0970c6
  5a421a84_1aa9_e155_4a8f_bd92935b6eec["isBackgroundPosition()"]
  5a421a84_1aa9_e155_4a8f_bd92935b6eec -->|calls| 978cd83c_b489_4dd0_bddf_ab7b6f0970c6
  4220e834_b0a4_ab4d_5c39_b7b51b69e8cf["isBackgroundSize()"]
  4220e834_b0a4_ab4d_5c39_b7b51b69e8cf -->|calls| 978cd83c_b489_4dd0_bddf_ab7b6f0970c6
  f04c0be0_0d43_f281_8a03_6eeea7eb5f25["hasMathFn()"]
  978cd83c_b489_4dd0_bddf_ab7b6f0970c6 -->|calls| f04c0be0_0d43_f281_8a03_6eeea7eb5f25
  style 978cd83c_b489_4dd0_bddf_ab7b6f0970c6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/utils/infer-data-type.ts lines 236–238

export function isLength(value: string): boolean {
  return IS_LENGTH.test(value) || hasMathFn(value)
}

Subdomains

Calls

Frequently Asked Questions

What does isLength() do?
isLength() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/utils/infer-data-type.ts.
Where is isLength() defined?
isLength() is defined in packages/tailwindcss/src/utils/infer-data-type.ts at line 236.
What does isLength() call?
isLength() calls 1 function(s): hasMathFn.
What calls isLength()?
isLength() is called by 4 function(s): canonicalizeDimension, isBackgroundPosition, isBackgroundSize, isLineWidth.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free