get() — tailwindcss Function Reference
Architecture documentation for the get() function in plugin-functions.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1b59ba6b_4432_276c_dd0d_7664aec4893a["get()"] 3d2f062b_d3ec_6b3a_dc32_9d2e4732e20e["plugin-functions.ts"] 1b59ba6b_4432_276c_dd0d_7664aec4893a -->|defined in| 3d2f062b_d3ec_6b3a_dc32_9d2e4732e20e dabb13bc_6018_934b_19c4_595b7bea686d["createThemeFn()"] dabb13bc_6018_934b_19c4_595b7bea686d -->|calls| 1b59ba6b_4432_276c_dd0d_7664aec4893a bdec5541_c088_b3c7_4457_73a4592c6631["readFromCss()"] bdec5541_c088_b3c7_4457_73a4592c6631 -->|calls| 1b59ba6b_4432_276c_dd0d_7664aec4893a 2820372c_b982_9e06_fc23_f8f4ac308d00["get()"] 1b59ba6b_4432_276c_dd0d_7664aec4893a -->|calls| 2820372c_b982_9e06_fc23_f8f4ac308d00 style 1b59ba6b_4432_276c_dd0d_7664aec4893a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/compat/plugin-functions.ts lines 222–245
function get(obj: any, path: string[]) {
for (let i = 0; i < path.length; ++i) {
let key = path[i]
// The key does not exist so concatenate it with the next key
if (obj?.[key] === undefined) {
if (path[i + 1] === undefined) {
return undefined
}
path[i + 1] = `${key}-${path[i + 1]}`
continue
}
// We never want to index into strings
if (typeof obj === 'string') {
return undefined
}
obj = obj[key]
}
return obj
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does get() do?
get() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/plugin-functions.ts.
Where is get() defined?
get() is defined in packages/tailwindcss/src/compat/plugin-functions.ts at line 222.
What does get() call?
get() calls 1 function(s): get.
What calls get()?
get() is called by 2 function(s): createThemeFn, readFromCss.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free