run() — tailwindcss Function Reference
Architecture documentation for the run() function in candidate.test.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD fb628c58_7fe8_bbd2_d098_fbfc88e55630["run()"] 48bf53e3_51d1_ff10_48bb_0da6cdf73c69["candidate.test.ts"] fb628c58_7fe8_bbd2_d098_fbfc88e55630 -->|defined in| 48bf53e3_51d1_ff10_48bb_0da6cdf73c69 9b965fd7_d8e9_0b43_cd5d_c9294ab598ed["buildDesignSystem()"] fb628c58_7fe8_bbd2_d098_fbfc88e55630 -->|calls| 9b965fd7_d8e9_0b43_cd5d_c9294ab598ed style fb628c58_7fe8_bbd2_d098_fbfc88e55630 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
Defined In
Calls
Source
Frequently Asked Questions
What does run() do?
run() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/candidate.test.ts.
Where is run() defined?
run() is defined in packages/tailwindcss/src/candidate.test.ts at line 8.
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