variables.ts — tailwindcss Source File
Architecture documentation for variables.ts, a typescript file in the tailwindcss codebase. 4 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR edaa1d08_cd1b_f279_0758_2debcf255efc["variables.ts"] 1d3f1613_f144_938f_08f7_49039a46ad49["value-parser.ts"] edaa1d08_cd1b_f279_0758_2debcf255efc --> 1d3f1613_f144_938f_08f7_49039a46ad49 d1b39b63_c9d5_6c28_0206_0ddc8b895876["walk.ts"] edaa1d08_cd1b_f279_0758_2debcf255efc --> d1b39b63_c9d5_6c28_0206_0ddc8b895876 ed78da58_8727_ad98_120c_61f35cea357a["walk"] edaa1d08_cd1b_f279_0758_2debcf255efc --> ed78da58_8727_ad98_120c_61f35cea357a 7b34c369_d799_30f1_b751_6e3fd5349f6b["WalkAction"] edaa1d08_cd1b_f279_0758_2debcf255efc --> 7b34c369_d799_30f1_b751_6e3fd5349f6b 42640952_ea63_55f1_1ff1_00816e2980ae["ast.ts"] 42640952_ea63_55f1_1ff1_00816e2980ae --> edaa1d08_cd1b_f279_0758_2debcf255efc 7fd72d4c_e95c_d849_1002_1e1c9d8aca1a["design-system.ts"] 7fd72d4c_e95c_d849_1002_1e1c9d8aca1a --> edaa1d08_cd1b_f279_0758_2debcf255efc style edaa1d08_cd1b_f279_0758_2debcf255efc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as ValueParser from '../value-parser'
import { walk, WalkAction } from '../walk'
export function extractUsedVariables(raw: string): string[] {
let variables: string[] = []
walk(ValueParser.parse(raw), (node) => {
if (node.kind !== 'function' || node.value !== 'var') return
walk(node.nodes, (child) => {
if (child.kind !== 'word' || child.value[0] !== '-' || child.value[1] !== '-') return
variables.push(child.value)
})
return WalkAction.Skip
})
return variables
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does variables.ts do?
variables.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain, Scanner subdomain.
What functions are defined in variables.ts?
variables.ts defines 1 function(s): extractUsedVariables.
What does variables.ts depend on?
variables.ts imports 4 module(s): WalkAction, value-parser.ts, walk, walk.ts.
What files import variables.ts?
variables.ts is imported by 2 file(s): ast.ts, design-system.ts.
Where is variables.ts in the architecture?
variables.ts is located at packages/tailwindcss/src/utils/variables.ts (domain: OxideEngine, subdomain: Scanner, directory: packages/tailwindcss/src/utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free