Home / Function/ barePercentages() — tailwindcss Function Reference

barePercentages() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f["barePercentages()"]
  1b5321a5_0fcc_2351_1f22_0d4bed4c097e["default-theme.ts"]
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f -->|defined in| 1b5321a5_0fcc_2351_1f22_0d4bed4c097e
  6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4["bareValues()"]
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4
  4e39f1e7_ebcb_7f62_4a59_b645e71d50fd["isPositiveInteger()"]
  13989a7d_adcf_4a05_988b_d7cc13b5fc7f -->|calls| 4e39f1e7_ebcb_7f62_4a59_b645e71d50fd
  style 13989a7d_adcf_4a05_988b_d7cc13b5fc7f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/tailwindcss/src/compat/default-theme.ts lines 22–26

let barePercentages = bareValues((value: NamedUtilityValue) => {
  if (isPositiveInteger(value.value)) {
    return `${value.value}%`
  }
})

Domain

Subdomains

Frequently Asked Questions

What does barePercentages() do?
barePercentages() is a function in the tailwindcss codebase, defined in packages/tailwindcss/src/compat/default-theme.ts.
Where is barePercentages() defined?
barePercentages() is defined in packages/tailwindcss/src/compat/default-theme.ts at line 22.
What does barePercentages() call?
barePercentages() calls 2 function(s): bareValues, isPositiveInteger.

Analyze Your Own Codebase

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

Try Supermodel Free