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
  02783c79_4478_595a_1c54_7b850e8ec942["barePercentages()"]
  bb2a9a3a_2305_0e75_af7a_39d8b8492721["bareValues()"]
  02783c79_4478_595a_1c54_7b850e8ec942 -->|calls| bb2a9a3a_2305_0e75_af7a_39d8b8492721
  559275a8_927e_3002_3298_4cbb685cc92a["isPositiveInteger()"]
  02783c79_4478_595a_1c54_7b850e8ec942 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a
  style 02783c79_4478_595a_1c54_7b850e8ec942 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}%`
  }
})

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