bareAspectRatio() — tailwindcss Function Reference
Architecture documentation for the bareAspectRatio() function in default-theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 17347bdd_a21c_0b8d_421a_eb1316077672["bareAspectRatio()"] bb2a9a3a_2305_0e75_af7a_39d8b8492721["bareValues()"] 17347bdd_a21c_0b8d_421a_eb1316077672 -->|calls| bb2a9a3a_2305_0e75_af7a_39d8b8492721 2a20ea29_c850_cd61_5600_aeebbe3dda66["segment()"] 17347bdd_a21c_0b8d_421a_eb1316077672 -->|calls| 2a20ea29_c850_cd61_5600_aeebbe3dda66 559275a8_927e_3002_3298_4cbb685cc92a["isPositiveInteger()"] 17347bdd_a21c_0b8d_421a_eb1316077672 -->|calls| 559275a8_927e_3002_3298_4cbb685cc92a style 17347bdd_a21c_0b8d_421a_eb1316077672 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/tailwindcss/src/compat/default-theme.ts lines 46–51
let bareAspectRatio = bareValues((value) => {
if (value.fraction === null) return
let [lhs, rhs] = segment(value.fraction, '/')
if (!isPositiveInteger(lhs) || !isPositiveInteger(rhs)) return
return value.fraction
})
Domain
Subdomains
Source
Frequently Asked Questions
What does bareAspectRatio() do?
bareAspectRatio() is a function in the tailwindcss codebase.
What does bareAspectRatio() call?
bareAspectRatio() calls 3 function(s): bareValues, isPositiveInteger, segment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free