createEmptyCandidate() — tailwindcss Function Reference
Architecture documentation for the createEmptyCandidate() function in migrate-automatic-var-injection.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 9f431403_6ec6_3975_affd_3dd62eb31d98["createEmptyCandidate()"] 8bcd32c5_cfda_22a4_547e_0b720e631669["injectVarIntoVariant()"] 8bcd32c5_cfda_22a4_547e_0b720e631669 -->|calls| 9f431403_6ec6_3975_affd_3dd62eb31d98 style 9f431403_6ec6_3975_affd_3dd62eb31d98 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-automatic-var-injection.ts lines 130–140
function createEmptyCandidate(variant: Variant) {
return {
kind: 'arbitrary' as const,
property: 'color',
value: 'red',
modifier: null,
variants: [variant],
important: false,
raw: 'candidate',
} satisfies Candidate
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does createEmptyCandidate() do?
createEmptyCandidate() is a function in the tailwindcss codebase.
What calls createEmptyCandidate()?
createEmptyCandidate() is called by 1 function(s): injectVarIntoVariant.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free