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
  b165f745_465e_eff8_6d0d_8cc7925672fb["isLength()"]
  402c27db_98ae_66ad_97f7_0dfc728cf588["canonicalizeDimension()"]
  402c27db_98ae_66ad_97f7_0dfc728cf588 -->|calls| b165f745_465e_eff8_6d0d_8cc7925672fb
  b3905b8a_d8a9_b5f0_6f92_39a589e06fcb["isLineWidth()"]
  b3905b8a_d8a9_b5f0_6f92_39a589e06fcb -->|calls| b165f745_465e_eff8_6d0d_8cc7925672fb
  64006611_5340_1d0a_50e7_914f88e57fe0["isBackgroundPosition()"]
  64006611_5340_1d0a_50e7_914f88e57fe0 -->|calls| b165f745_465e_eff8_6d0d_8cc7925672fb
  9bc62260_0f13_3c0e_30ff_4b4a5aa85a0c["isBackgroundSize()"]
  9bc62260_0f13_3c0e_30ff_4b4a5aa85a0c -->|calls| b165f745_465e_eff8_6d0d_8cc7925672fb
  114414be_c3a5_962f_2457_d506e19d5c72["hasMathFn()"]
  b165f745_465e_eff8_6d0d_8cc7925672fb -->|calls| 114414be_c3a5_962f_2457_d506e19d5c72
  style b165f745_465e_eff8_6d0d_8cc7925672fb 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)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does isLength() do?
isLength() is a function in the tailwindcss codebase.
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