Home / Function/ printUnprefixedCandidate() — tailwindcss Function Reference

printUnprefixedCandidate() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ef14c2ee_6e22_8d81_5706_eb9d2b37035d["printUnprefixedCandidate()"]
  7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e["canonicalize-candidates.ts"]
  ef14c2ee_6e22_8d81_5706_eb9d2b37035d -->|defined in| 7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e
  3d950b1c_c007_4add_d1ce_3f6018c5bacd["deprecatedUtilities()"]
  3d950b1c_c007_4add_d1ce_3f6018c5bacd -->|calls| ef14c2ee_6e22_8d81_5706_eb9d2b37035d
  87ba7eab_3a52_d53e_dfd4_e507e9763b55["printCandidate()"]
  ef14c2ee_6e22_8d81_5706_eb9d2b37035d -->|calls| 87ba7eab_3a52_d53e_dfd4_e507e9763b55
  style ef14c2ee_6e22_8d81_5706_eb9d2b37035d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/canonicalize-candidates.ts lines 926–932

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/src/canonicalize-candidates.ts.
Where is printUnprefixedCandidate() defined?
printUnprefixedCandidate() is defined in packages/tailwindcss/src/canonicalize-candidates.ts at line 926.
What does printUnprefixedCandidate() call?
printUnprefixedCandidate() calls 1 function(s): printCandidate.
What calls printUnprefixedCandidate()?
printUnprefixedCandidate() is called by 1 function(s): deprecatedUtilities.

Analyze Your Own Codebase

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

Try Supermodel Free