set() — tailwindcss Function Reference
Architecture documentation for the set() function in plugin-functions.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 6afca5f6_d5cb_1ed2_d972_255cb64bdcea["set()"] 20b59de8_11c6_2432_2a83_24f6f6e741a7["plugin-functions.ts"] 6afca5f6_d5cb_1ed2_d972_255cb64bdcea -->|defined in| 20b59de8_11c6_2432_2a83_24f6f6e741a7 00a6c74c_0751_dcea_d32a_e486a30355a4["readFromCss()"] 00a6c74c_0751_dcea_d32a_e486a30355a4 -->|calls| 6afca5f6_d5cb_1ed2_d972_255cb64bdcea style 6afca5f6_d5cb_1ed2_d972_255cb64bdcea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/compat/plugin-functions.ts lines 247–257
function set(obj: any, path: string[], value: any) {
for (let key of path.slice(0, -1)) {
if (obj[key] === undefined) {
obj[key] = {}
}
obj = obj[key]
}
obj[path[path.length - 1]] = value
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does set() do?
set() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/plugin-functions.ts.
Where is set() defined?
set() is defined in packages/tailwindcss/src/compat/plugin-functions.ts at line 247.
What calls set()?
set() is called by 1 function(s): readFromCss.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free