Home / Function/ baseCandidate() — tailwindcss Function Reference

baseCandidate() — tailwindcss Function Reference

Architecture documentation for the baseCandidate() function in candidates.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  df17a03b_9c60_27a5_3fcf_5acdd9570ff9["baseCandidate()"]
  6818f003_fa74_ca6e_8dd1_99a7154be5c9["candidates.ts"]
  df17a03b_9c60_27a5_3fcf_5acdd9570ff9 -->|defined in| 6818f003_fa74_ca6e_8dd1_99a7154be5c9
  155d1c0d_2551_0baf_c0ce_75204772c9a3["migrateLegacyClasses()"]
  155d1c0d_2551_0baf_c0ce_75204772c9a3 -->|calls| df17a03b_9c60_27a5_3fcf_5acdd9570ff9
  f29ee016_da0a_a564_1658_fedaaac680b6["cloneCandidate()"]
  df17a03b_9c60_27a5_3fcf_5acdd9570ff9 -->|calls| f29ee016_da0a_a564_1658_fedaaac680b6
  style df17a03b_9c60_27a5_3fcf_5acdd9570ff9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts lines 20–27

export function baseCandidate<T extends Candidate>(candidate: T) {
  let base = cloneCandidate(candidate)

  base.important = false
  base.variants = []

  return base
}

Subdomains

Frequently Asked Questions

What does baseCandidate() do?
baseCandidate() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts.
Where is baseCandidate() defined?
baseCandidate() is defined in packages/@tailwindcss-upgrade/src/codemods/template/candidates.ts at line 20.
What does baseCandidate() call?
baseCandidate() calls 1 function(s): cloneCandidate.
What calls baseCandidate()?
baseCandidate() is called by 1 function(s): migrateLegacyClasses.

Analyze Your Own Codebase

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

Try Supermodel Free