run() — tailwindcss Function Reference
Architecture documentation for the run() function in candidate.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 61c2cd47_b3e6_7a1a_bde9_eafda1b00be1["run()"] cebe77e1_f0f2_aeee_417e_2192f5790344["buildDesignSystem()"] 61c2cd47_b3e6_7a1a_bde9_eafda1b00be1 -->|calls| cebe77e1_f0f2_aeee_417e_2192f5790344 style 61c2cd47_b3e6_7a1a_bde9_eafda1b00be1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/candidate.test.ts lines 8–26
function run(
candidate: string,
{
utilities,
variants,
prefix,
}: { utilities?: Utilities; variants?: Variants; prefix?: string } = {},
) {
utilities ??= new Utilities()
variants ??= new Variants()
let designSystem = buildDesignSystem(new Theme())
designSystem.theme.prefix = prefix ?? null
designSystem.utilities = utilities
designSystem.variants = variants
return Array.from(designSystem.parseCandidate(candidate))
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does run() do?
run() is a function in the tailwindcss codebase.
What does run() call?
run() calls 1 function(s): buildDesignSystem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free