Home / Function/ printUnprefixedCandidate() — tailwindcss Function Reference

printUnprefixedCandidate() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d025118b_695c_16f1_a950_06fba5dd3c77["printUnprefixedCandidate()"]
  6818f003_fa74_ca6e_8dd1_99a7154be5c9["candidates.ts"]
  d025118b_695c_16f1_a950_06fba5dd3c77 -->|defined in| 6818f003_fa74_ca6e_8dd1_99a7154be5c9
  87ba7eab_3a52_d53e_dfd4_e507e9763b55["printCandidate()"]
  d025118b_695c_16f1_a950_06fba5dd3c77 -->|calls| 87ba7eab_3a52_d53e_dfd4_e507e9763b55
  style d025118b_695c_16f1_a950_06fba5dd3c77 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts lines 37–43

export function printUnprefixedCandidate(designSystem: DesignSystem, candidate: Candidate) {
  let candidateString = designSystem.printCandidate(candidate)

  return designSystem.theme.prefix && candidateString.startsWith(`${designSystem.theme.prefix}:`)
    ? candidateString.slice(designSystem.theme.prefix.length + 1)
    : candidateString
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free