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
  83742290_cff2_3ead_fd0f_e00ea8685701["isGenericName()"]
  516809a4_c70e_60c3_bbb2_8de4c4572510["infer-data-type.ts"]
  83742290_cff2_3ead_fd0f_e00ea8685701 -->|defined in| 516809a4_c70e_60c3_bbb2_8de4c4572510
  style 83742290_cff2_3ead_fd0f_e00ea8685701 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'
  )
}

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