bareAspectRatio() — tailwindcss Function Reference
Architecture documentation for the bareAspectRatio() function in default-theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD b73c5395_40c1_3e76_54b4_fe5a4f84c4d1["bareAspectRatio()"] 1b5321a5_0fcc_2351_1f22_0d4bed4c097e["default-theme.ts"] b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 -->|defined in| 1b5321a5_0fcc_2351_1f22_0d4bed4c097e 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4["bareValues()"] b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 -->|calls| 6cbf3df8_6af3_fb9a_8aa8_d2a1b6bd6fd4 f712ed47_45d4_4e5a_dd73_fdefa1da71da["segment()"] b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 -->|calls| f712ed47_45d4_4e5a_dd73_fdefa1da71da 4e39f1e7_ebcb_7f62_4a59_b645e71d50fd["isPositiveInteger()"] b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 -->|calls| 4e39f1e7_ebcb_7f62_4a59_b645e71d50fd style b73c5395_40c1_3e76_54b4_fe5a4f84c4d1 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, defined in packages/tailwindcss/src/compat/default-theme.ts.
Where is bareAspectRatio() defined?
bareAspectRatio() is defined in packages/tailwindcss/src/compat/default-theme.ts at line 46.
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