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.

Function typescript Oxide Extractor calls 1 called by 4

Entity Profile

Dependency Diagram

graph TD
  1892fde4_0ab4_2e7a_38c4_cf431005a033["isLength()"]
  43fe4735_10e8_ed1d_6f4f_74b2008c1b00["infer-data-type.ts"]
  1892fde4_0ab4_2e7a_38c4_cf431005a033 -->|defined in| 43fe4735_10e8_ed1d_6f4f_74b2008c1b00
  7e4f2893_9c53_d837_29a4_e4e87eb8f6e4["canonicalizeDimension()"]
  7e4f2893_9c53_d837_29a4_e4e87eb8f6e4 -->|calls| 1892fde4_0ab4_2e7a_38c4_cf431005a033
  0c49aa21_ac08_356c_7846_73270718a8ea["isLineWidth()"]
  0c49aa21_ac08_356c_7846_73270718a8ea -->|calls| 1892fde4_0ab4_2e7a_38c4_cf431005a033
  818760e3_70b6_3fa5_a5ec_7a919a58a990["isBackgroundPosition()"]
  818760e3_70b6_3fa5_a5ec_7a919a58a990 -->|calls| 1892fde4_0ab4_2e7a_38c4_cf431005a033
  95eed32f_b899_a9b6_6208_5de3f49f62f9["isBackgroundSize()"]
  95eed32f_b899_a9b6_6208_5de3f49f62f9 -->|calls| 1892fde4_0ab4_2e7a_38c4_cf431005a033
  501a42e8_6ea6_67f1_2004_de32c1c55eb7["hasMathFn()"]
  1892fde4_0ab4_2e7a_38c4_cf431005a033 -->|calls| 501a42e8_6ea6_67f1_2004_de32c1c55eb7
  style 1892fde4_0ab4_2e7a_38c4_cf431005a033 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, 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