eventuallyUnquote() — tailwindcss Function Reference
Architecture documentation for the eventuallyUnquote() function in migrate-theme-to-var.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 766bf67e_0f72_f631_f327_01be13686541["eventuallyUnquote()"] de8dd9be_8c47_4694_db3b_393c549a926a["migrate-theme-to-var.ts"] 766bf67e_0f72_f631_f327_01be13686541 -->|defined in| de8dd9be_8c47_4694_db3b_393c549a926a 3c91d7fd_a929_4393_fc7e_e8d30dedc179["substituteFunctionsInValue()"] 3c91d7fd_a929_4393_fc7e_e8d30dedc179 -->|calls| 766bf67e_0f72_f631_f327_01be13686541 style 766bf67e_0f72_f631_f327_01be13686541 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-upgrade/src/codemods/template/migrate-theme-to-var.ts lines 252–270
function eventuallyUnquote(value: string) {
if (value[0] !== "'" && value[0] !== '"') return value
let unquoted = ''
let quoteChar = value[0]
for (let i = 1; i < value.length - 1; i++) {
let currentChar = value[i]
let nextChar = value[i + 1]
if (currentChar === '\\' && (nextChar === quoteChar || nextChar === '\\')) {
unquoted += nextChar
i++
} else {
unquoted += currentChar
}
}
return unquoted
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does eventuallyUnquote() do?
eventuallyUnquote() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-theme-to-var.ts.
Where is eventuallyUnquote() defined?
eventuallyUnquote() is defined in packages/@tailwindcss-upgrade/src/codemods/template/migrate-theme-to-var.ts at line 252.
What calls eventuallyUnquote()?
eventuallyUnquote() is called by 1 function(s): substituteFunctionsInValue.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free