Home / Function/ bareValues() — tailwindcss Function Reference

bareValues() — tailwindcss Function Reference

Architecture documentation for the bareValues() function in default-theme.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4["bareValues()"]
  1b5321a5_0fcc_2351_1f22_0d4bed4c097e["default-theme.ts"]
  6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4 -->|defined in| 1b5321a5_0fcc_2351_1f22_0d4bed4c097e
  cab0078b_e100_9b6d_7fb5_0d1f7149df87["bareIntegers()"]
  cab0078b_e100_9b6d_7fb5_0d1f7149df87 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f["barePercentages()"]
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  cb8409cb_73c6_ea47_d2ae_416489056a05["barePixels()"]
  cb8409cb_73c6_ea47_d2ae_416489056a05 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  7cec0059_f7d5_930f_60ee_a6737012d9d4["bareMilliseconds()"]
  7cec0059_f7d5_930f_60ee_a6737012d9d4 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  b230f465_37cb_971a_0426_37bb7e311c08["bareDegrees()"]
  b230f465_37cb_971a_0426_37bb7e311c08 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  b73c5395_40c1_3e76_54b4_fe5a4f84c4d1["bareAspectRatio()"]
  b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  6befe538_a135_4b30_7357_7f464e5a8bf5["bareRepeatValues()"]
  6befe538_a135_4b30_7357_7f464e5a8bf5 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  style 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/compat/default-theme.ts lines 7–14

function bareValues(fn: (value: NamedUtilityValue) => string | undefined) {
  return {
    // Ideally this would be a Symbol but some of the ecosystem assumes object with
    // string / number keys for example by using `Object.entries()` which means that
    // the function that handles the bare value would be lost
    __BARE_VALUE__: fn,
  }
}

Domain

Subdomains

Frequently Asked Questions

What does bareValues() do?
bareValues() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/default-theme.ts.
Where is bareValues() defined?
bareValues() is defined in packages/tailwindcss/src/compat/default-theme.ts at line 7.
What calls bareValues()?
bareValues() is called by 7 function(s): bareAspectRatio, bareDegrees, bareIntegers, bareMilliseconds, barePercentages, barePixels, bareRepeatValues.

Analyze Your Own Codebase

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

Try Supermodel Free