Home / Function/ isLineWidth() — tailwindcss Function Reference

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
  0c49aa21_ac08_356c_7846_73270718a8ea["isLineWidth()"]
  43fe4735_10e8_ed1d_6f4f_74b2008c1b00["infer-data-type.ts"]
  0c49aa21_ac08_356c_7846_73270718a8ea -->|defined in| 43fe4735_10e8_ed1d_6f4f_74b2008c1b00
  c58cbb33_f3cc_0b4f_844a_15bf66a1dc61["segment()"]
  0c49aa21_ac08_356c_7846_73270718a8ea -->|calls| c58cbb33_f3cc_0b4f_844a_15bf66a1dc61
  1892fde4_0ab4_2e7a_38c4_cf431005a033["isLength()"]
  0c49aa21_ac08_356c_7846_73270718a8ea -->|calls| 1892fde4_0ab4_2e7a_38c4_cf431005a033
  b99833b2_dd59_8252_1a07_4da82008e44a["isNumber()"]
  0c49aa21_ac08_356c_7846_73270718a8ea -->|calls| b99833b2_dd59_8252_1a07_4da82008e44a
  style 0c49aa21_ac08_356c_7846_73270718a8ea 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

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