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
  b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c["barePercentages()"]
  ad3a42df_eca9_aedd_0e57_11ba3a18e16c["bareValues()"]
  b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c -->|calls| ad3a42df_eca9_aedd_0e57_11ba3a18e16c
  4eec17e9_9a96_168a_2273_b6e64e229816["isPositiveInteger()"]
  b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816
  style b6d0c03e_d4d3_d8e2_c18a_81dbd20e2d9c 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.
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