Home / Function/ getOptions() — tailwindcss Function Reference

getOptions() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  be7a0843_7490_00b8_ff59_a27552035f10["getOptions()"]
  80f64279_dc28_709a_aad4_02bea029c935["isVariableUsed()"]
  80f64279_dc28_709a_aad4_02bea029c935 -->|calls| be7a0843_7490_00b8_ff59_a27552035f10
  1176a137_5b06_095c_fa3b_a8db365b8b18["readFromCss()"]
  1176a137_5b06_095c_fa3b_a8db365b8b18 -->|calls| be7a0843_7490_00b8_ff59_a27552035f10
  9248ef05_c138_491c_7e01_0a040ad2062a["hasDefault()"]
  9248ef05_c138_491c_7e01_0a040ad2062a -->|calls| be7a0843_7490_00b8_ff59_a27552035f10
  7a3007c6_d56a_70bb_5273_042b0b3e31d5["clearNamespace()"]
  7a3007c6_d56a_70bb_5273_042b0b3e31d5 -->|calls| be7a0843_7490_00b8_ff59_a27552035f10
  03501eb1_e642_df92_15b1_af590e3332fb["unescape()"]
  be7a0843_7490_00b8_ff59_a27552035f10 -->|calls| 03501eb1_e642_df92_15b1_af590e3332fb
  060c1795_30ba_0381_42f1_be224df086e8["get()"]
  be7a0843_7490_00b8_ff59_a27552035f10 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  style be7a0843_7490_00b8_ff59_a27552035f10 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/theme.ts lines 125–128

  getOptions(key: string) {
    key = unescape(this.#unprefixKey(key))
    return this.values.get(key)?.options ?? ThemeOptions.NONE
  }

Subdomains

Frequently Asked Questions

What does getOptions() do?
getOptions() is a function in the tailwindcss codebase.
What does getOptions() call?
getOptions() calls 2 function(s): get, unescape.
What calls getOptions()?
getOptions() is called by 4 function(s): clearNamespace, hasDefault, isVariableUsed, readFromCss.

Analyze Your Own Codebase

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

Try Supermodel Free