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 2e575c10_95fb_8398_4a75_13426712ebeb["isPercentage()"] 64006611_5340_1d0a_50e7_914f88e57fe0["isBackgroundPosition()"] 64006611_5340_1d0a_50e7_914f88e57fe0 -->|calls| 2e575c10_95fb_8398_4a75_13426712ebeb 9bc62260_0f13_3c0e_30ff_4b4a5aa85a0c["isBackgroundSize()"] 9bc62260_0f13_3c0e_30ff_4b4a5aa85a0c -->|calls| 2e575c10_95fb_8398_4a75_13426712ebeb 114414be_c3a5_962f_2457_d506e19d5c72["hasMathFn()"] 2e575c10_95fb_8398_4a75_13426712ebeb -->|calls| 114414be_c3a5_962f_2457_d506e19d5c72 style 2e575c10_95fb_8398_4a75_13426712ebeb 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