Home / Function/ get() — tailwindcss Function Reference

get() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  060c1795_30ba_0381_42f1_be224df086e8["get()"]
  f2c40930_6a99_f9d8_d175_a2d0244b3fec["createCompatConfig()"]
  f2c40930_6a99_f9d8_d175_a2d0244b3fec -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  678fff87_ea5f_81ce_f4c8_aba1e92f475b["isIgnoredThemeKey()"]
  678fff87_ea5f_81ce_f4c8_aba1e92f475b -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  3ba19013_498f_3c9b_5c44_0eb24efc4394["add()"]
  3ba19013_498f_3c9b_5c44_0eb24efc4394 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  be7a0843_7490_00b8_ff59_a27552035f10["getOptions()"]
  be7a0843_7490_00b8_ff59_a27552035f10 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  7a3007c6_d56a_70bb_5273_042b0b3e31d5["clearNamespace()"]
  7a3007c6_d56a_70bb_5273_042b0b3e31d5 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  63d678ab_e176_afe3_714c_c0d55120dc20["themeKey()"]
  63d678ab_e176_afe3_714c_c0d55120dc20 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  f4b2481e_23ea_2f5c_fdf6_9834ac412e37["markUsedVariable()"]
  f4b2481e_23ea_2f5c_fdf6_9834ac412e37 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  fb0edc12_e3ff_ec56_83b9_8cf4f1b5f8e5["resolve()"]
  fb0edc12_e3ff_ec56_83b9_8cf4f1b5f8e5 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  fedba2ef_0b11_0dd0_fc72_1873b2b9e509["resolveValue()"]
  fedba2ef_0b11_0dd0_fc72_1873b2b9e509 -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  50b26c27_6fae_3a51_c382_756098b9ce8a["resolveWith()"]
  50b26c27_6fae_3a51_c382_756098b9ce8a -->|calls| 060c1795_30ba_0381_42f1_be224df086e8
  style 060c1795_30ba_0381_42f1_be224df086e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/theme.ts lines 110–119

  get(themeKeys: ThemeKey[]): string | null {
    for (let key of themeKeys) {
      let value = this.values.get(key)
      if (value) {
        return value.value
      }
    }

    return null
  }

Subdomains

Frequently Asked Questions

What does get() do?
get() is a function in the tailwindcss codebase.
What calls get()?
get() is called by 10 function(s): add, clearNamespace, createCompatConfig, getOptions, isIgnoredThemeKey, markUsedVariable, resolve, resolveValue, and 2 more.

Analyze Your Own Codebase

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

Try Supermodel Free