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
  f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca["isLength()"]
  c941f6f8_779c_d328_ce6e_6b8d73133036["canonicalizeDimension()"]
  c941f6f8_779c_d328_ce6e_6b8d73133036 -->|calls| f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca
  296a190e_ea70_a371_f646_ef09d9f06571["isLineWidth()"]
  296a190e_ea70_a371_f646_ef09d9f06571 -->|calls| f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca
  e33fde8c_3981_b99b_dd14_da5b61b9d781["isBackgroundPosition()"]
  e33fde8c_3981_b99b_dd14_da5b61b9d781 -->|calls| f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca
  0b3f6487_075d_40cd_b117_5087a3b5c6e6["isBackgroundSize()"]
  0b3f6487_075d_40cd_b117_5087a3b5c6e6 -->|calls| f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca
  5132a03f_9cf9_9bd0_f54c_d0754bee76a1["hasMathFn()"]
  f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca -->|calls| 5132a03f_9cf9_9bd0_f54c_d0754bee76a1
  style f09c1b77_2ead_f9c9_7d05_4f8bab47f7ca 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.
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