set() — tailwindcss Function Reference
Architecture documentation for the set() function in plugin-functions.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD acbbaf1a_ddba_e9d2_f7c6_4bfdb7a5772a["set()"] 57934fd1_bd18_f9cc_3777_870ee6aa0bf0["readFromCss()"] 57934fd1_bd18_f9cc_3777_870ee6aa0bf0 -->|calls| acbbaf1a_ddba_e9d2_f7c6_4bfdb7a5772a style acbbaf1a_ddba_e9d2_f7c6_4bfdb7a5772a 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.
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