Home / Function/ eventuallyUnquote() — tailwindcss Function Reference

eventuallyUnquote() — tailwindcss Function Reference

Architecture documentation for the eventuallyUnquote() function in css-functions.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  6ba8fd83_f143_bcea_dfc9_b73a1e7b7660["eventuallyUnquote()"]
  2189e39a_5595_cbd9_3bbe_eaf87ccf42a2["css-functions.ts"]
  6ba8fd83_f143_bcea_dfc9_b73a1e7b7660 -->|defined in| 2189e39a_5595_cbd9_3bbe_eaf87ccf42a2
  d3d61624_a27e_43e1_2242_240e76a1e1c8["legacyTheme()"]
  d3d61624_a27e_43e1_2242_240e76a1e1c8 -->|calls| 6ba8fd83_f143_bcea_dfc9_b73a1e7b7660
  style 6ba8fd83_f143_bcea_dfc9_b73a1e7b7660 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/css-functions.ts lines 206–224

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

Frequently Asked Questions

What does eventuallyUnquote() do?
eventuallyUnquote() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/css-functions.ts.
Where is eventuallyUnquote() defined?
eventuallyUnquote() is defined in packages/tailwindcss/src/css-functions.ts at line 206.
What calls eventuallyUnquote()?
eventuallyUnquote() is called by 1 function(s): legacyTheme.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free