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
  7be152ff_3d54_3c38_8abe_56a34c91bb4d["printUnprefixedCandidate()"]
  4c29981d_a61a_00fb_b3b5_5a69228c4fff["printCandidate()"]
  7be152ff_3d54_3c38_8abe_56a34c91bb4d -->|calls| 4c29981d_a61a_00fb_b3b5_5a69228c4fff
  style 7be152ff_3d54_3c38_8abe_56a34c91bb4d 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
}

Domain

Subdomains

Frequently Asked Questions

What does printUnprefixedCandidate() do?
printUnprefixedCandidate() is a function in the tailwindcss codebase.
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