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
  2038620e_696f_2a0a_ba6b_40f989551872["printUnprefixedCandidate()"]
  bb32b231_eeca_e30f_ed47_176639e2cf30["deprecatedUtilities()"]
  bb32b231_eeca_e30f_ed47_176639e2cf30 -->|calls| 2038620e_696f_2a0a_ba6b_40f989551872
  ec55634f_f6e4_3b8b_1267_0b251c4dade1["printCandidate()"]
  2038620e_696f_2a0a_ba6b_40f989551872 -->|calls| ec55634f_f6e4_3b8b_1267_0b251c4dade1
  style 2038620e_696f_2a0a_ba6b_40f989551872 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.
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