Home / Function/ parseCandidate() — tailwindcss Function Reference

parseCandidate() — tailwindcss Function Reference

Architecture documentation for the parseCandidate() function in candidates.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  6d639fbb_ba96_11f9_311c_de088fe027c4["parseCandidate()"]
  530db924_e458_e8b2_fde4_45f3e78b4424["candidates.ts"]
  6d639fbb_ba96_11f9_311c_de088fe027c4 -->|defined in| 530db924_e458_e8b2_fde4_45f3e78b4424
  e23cd15e_fdc1_d590_bce2_3d2a9c41fd9f["migrateLegacyClasses()"]
  e23cd15e_fdc1_d590_bce2_3d2a9c41fd9f -->|calls| 6d639fbb_ba96_11f9_311c_de088fe027c4
  7d328a86_10c6_b5c1_6390_36f4fffe9c14["parseCandidate()"]
  6d639fbb_ba96_11f9_311c_de088fe027c4 -->|calls| 7d328a86_10c6_b5c1_6390_36f4fffe9c14
  style 6d639fbb_ba96_11f9_311c_de088fe027c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts lines 29–35

export function parseCandidate(designSystem: DesignSystem, input: string) {
  return designSystem.parseCandidate(
    designSystem.theme.prefix && !input.startsWith(`${designSystem.theme.prefix}:`)
      ? `${designSystem.theme.prefix}:${input}`
      : input,
  )
}

Subdomains

Frequently Asked Questions

What does parseCandidate() do?
parseCandidate() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts.
Where is parseCandidate() defined?
parseCandidate() is defined in packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts at line 29.
What does parseCandidate() call?
parseCandidate() calls 1 function(s): parseCandidate.
What calls parseCandidate()?
parseCandidate() is called by 1 function(s): migrateLegacyClasses.

Analyze Your Own Codebase

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

Try Supermodel Free