isPercentage() — tailwindcss Function Reference
Architecture documentation for the isPercentage() function in infer-data-type.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 94b3e523_3675_a597_3668_598a53b432d1["isPercentage()"] e33fde8c_3981_b99b_dd14_da5b61b9d781["isBackgroundPosition()"] e33fde8c_3981_b99b_dd14_da5b61b9d781 -->|calls| 94b3e523_3675_a597_3668_598a53b432d1 0b3f6487_075d_40cd_b117_5087a3b5c6e6["isBackgroundSize()"] 0b3f6487_075d_40cd_b117_5087a3b5c6e6 -->|calls| 94b3e523_3675_a597_3668_598a53b432d1 5132a03f_9cf9_9bd0_f54c_d0754bee76a1["hasMathFn()"] 94b3e523_3675_a597_3668_598a53b432d1 -->|calls| 5132a03f_9cf9_9bd0_f54c_d0754bee76a1 style 94b3e523_3675_a597_3668_598a53b432d1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/utils/infer-data-type.ts lines 181–183
function isPercentage(value: string): boolean {
return IS_PERCENTAGE.test(value) || hasMathFn(value)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does isPercentage() do?
isPercentage() is a function in the tailwindcss codebase.
What does isPercentage() call?
isPercentage() calls 1 function(s): hasMathFn.
What calls isPercentage()?
isPercentage() is called by 2 function(s): isBackgroundPosition, isBackgroundSize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free