Home / Function/ markUsedVariable() — tailwindcss Function Reference

markUsedVariable() — tailwindcss Function Reference

Architecture documentation for the markUsedVariable() function in theme.ts from the tailwindcss codebase.

Function typescript OxideCore Extractor calls 2 called by 2

Entity Profile

Dependency Diagram

graph TD
  7b01a3a8_8970_30d2_152f_715f03247ba2["markUsedVariable()"]
  c58d3214_88d6_f4fc_257f_8e84def5b24f["buildDesignSystem()"]
  c58d3214_88d6_f4fc_257f_8e84def5b24f -->|calls| 7b01a3a8_8970_30d2_152f_715f03247ba2
  f5e443d2_a934_36af_23f2_b1c002aaa585["compileAst()"]
  f5e443d2_a934_36af_23f2_b1c002aaa585 -->|calls| 7b01a3a8_8970_30d2_152f_715f03247ba2
  34b0044c_2d6b_fc6e_9b23_05c422d2c036["unescape()"]
  7b01a3a8_8970_30d2_152f_715f03247ba2 -->|calls| 34b0044c_2d6b_fc6e_9b23_05c422d2c036
  3e179907_5f92_f314_14dc_f61853c74cad["get()"]
  7b01a3a8_8970_30d2_152f_715f03247ba2 -->|calls| 3e179907_5f92_f314_14dc_f61853c74cad
  style 7b01a3a8_8970_30d2_152f_715f03247ba2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/theme.ts lines 210–217

  markUsedVariable(themeKey: string): boolean {
    let key = unescape(this.#unprefixKey(themeKey))
    let value = this.values.get(key)
    if (!value) return false
    let isUsed = value.options & ThemeOptions.USED
    value.options |= ThemeOptions.USED
    return !isUsed
  }

Domain

Subdomains

Frequently Asked Questions

What does markUsedVariable() do?
markUsedVariable() is a function in the tailwindcss codebase.
What does markUsedVariable() call?
markUsedVariable() calls 2 function(s): get, unescape.
What calls markUsedVariable()?
markUsedVariable() is called by 2 function(s): buildDesignSystem, compileAst.

Analyze Your Own Codebase

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

Try Supermodel Free