Home / Function/ isGenericName() — tailwindcss Function Reference

isGenericName() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9a444603_053a_2091_1824_147c63e33fa6["isGenericName()"]
  43fe4735_10e8_ed1d_6f4f_74b2008c1b00["infer-data-type.ts"]
  9a444603_053a_2091_1824_147c63e33fa6 -->|defined in| 43fe4735_10e8_ed1d_6f4f_74b2008c1b00
  style 9a444603_053a_2091_1824_147c63e33fa6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/utils/infer-data-type.ts lines 114–130

function isGenericName(value: string): boolean {
  return (
    value === 'serif' ||
    value === 'sans-serif' ||
    value === 'monospace' ||
    value === 'cursive' ||
    value === 'fantasy' ||
    value === 'system-ui' ||
    value === 'ui-serif' ||
    value === 'ui-sans-serif' ||
    value === 'ui-monospace' ||
    value === 'ui-rounded' ||
    value === 'math' ||
    value === 'emoji' ||
    value === 'fangsong'
  )
}

Domain

Subdomains

Frequently Asked Questions

What does isGenericName() do?
isGenericName() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/utils/infer-data-type.ts.
Where is isGenericName() defined?
isGenericName() is defined in packages/tailwindcss/src/utils/infer-data-type.ts at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free