Home / Function/ getQuoteType() — ui Function Reference

getQuoteType() — ui Function Reference

Architecture documentation for the getQuoteType() function in update-css-vars.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  546742a2_5bfd_7ac7_0423_1d8418785376["getQuoteType()"]
  09244f5d_7fce_b385_220b_05945bb9e93b["update-css-vars.ts"]
  546742a2_5bfd_7ac7_0423_1d8418785376 -->|defined in| 09244f5d_7fce_b385_220b_05945bb9e93b
  1029d41a_1898_ac6d_cce2_d39e226440cb["updateTailwindConfigPlugin()"]
  1029d41a_1898_ac6d_cce2_d39e226440cb -->|calls| 546742a2_5bfd_7ac7_0423_1d8418785376
  style 546742a2_5bfd_7ac7_0423_1d8418785376 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/utils/updaters/update-css-vars.ts lines 870–878

function getQuoteType(root: Root): "single" | "double" {
  const firstNode = root.nodes[0]
  const raw = firstNode.toString()

  if (raw.includes("'")) {
    return "single"
  }
  return "double"
}

Subdomains

Frequently Asked Questions

What does getQuoteType() do?
getQuoteType() is a function in the ui codebase, defined in packages/shadcn/src/utils/updaters/update-css-vars.ts.
Where is getQuoteType() defined?
getQuoteType() is defined in packages/shadcn/src/utils/updaters/update-css-vars.ts at line 870.
What calls getQuoteType()?
getQuoteType() is called by 1 function(s): updateTailwindConfigPlugin.

Analyze Your Own Codebase

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

Try Supermodel Free