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
  7b5f0bd4_23ae_bb4e_d530_89422e2e7c4b["printUnprefixedCandidate()"]
  530db924_e458_e8b2_fde4_45f3e78b4424["candidates.ts"]
  7b5f0bd4_23ae_bb4e_d530_89422e2e7c4b -->|defined in| 530db924_e458_e8b2_fde4_45f3e78b4424
  2de86ba2_90a4_8c2d_db18_154bb1a1564f["printCandidate()"]
  7b5f0bd4_23ae_bb4e_d530_89422e2e7c4b -->|calls| 2de86ba2_90a4_8c2d_db18_154bb1a1564f
  style 7b5f0bd4_23ae_bb4e_d530_89422e2e7c4b 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