Home / Function/ printUnprefixedCandidate() — tailwindcss Function Reference

printUnprefixedCandidate() — tailwindcss Function Reference

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

Function typescript Oxide Extractor calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  b12efe90_482b_52b8_1913_f2eb419a12f7["printUnprefixedCandidate()"]
  f6c14bbb_2e42_58cc_18f1_c89a243da9c0["canonicalize-candidates.ts"]
  b12efe90_482b_52b8_1913_f2eb419a12f7 -->|defined in| f6c14bbb_2e42_58cc_18f1_c89a243da9c0
  7be21eb0_b210_7689_9091_6c6381320e8b["deprecatedUtilities()"]
  7be21eb0_b210_7689_9091_6c6381320e8b -->|calls| b12efe90_482b_52b8_1913_f2eb419a12f7
  2de86ba2_90a4_8c2d_db18_154bb1a1564f["printCandidate()"]
  b12efe90_482b_52b8_1913_f2eb419a12f7 -->|calls| 2de86ba2_90a4_8c2d_db18_154bb1a1564f
  style b12efe90_482b_52b8_1913_f2eb419a12f7 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
}

Domain

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