bareAspectRatio() — tailwindcss Function Reference
Architecture documentation for the bareAspectRatio() function in default-theme.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD bc208666_57e8_943c_99bd_06a482111eb4["bareAspectRatio()"] 4b9fb355_7055_4825_6db8_a5dd6f45c06e["default-theme.ts"] bc208666_57e8_943c_99bd_06a482111eb4 -->|defined in| 4b9fb355_7055_4825_6db8_a5dd6f45c06e 4dae63fd_2d16_55d7_6f48_8281bdc59894["bareValues()"] bc208666_57e8_943c_99bd_06a482111eb4 -->|calls| 4dae63fd_2d16_55d7_6f48_8281bdc59894 c58cbb33_f3cc_0b4f_844a_15bf66a1dc61["segment()"] bc208666_57e8_943c_99bd_06a482111eb4 -->|calls| c58cbb33_f3cc_0b4f_844a_15bf66a1dc61 2b202e81_c79a_bf7e_74f9_fe9a98bbea87["isPositiveInteger()"] bc208666_57e8_943c_99bd_06a482111eb4 -->|calls| 2b202e81_c79a_bf7e_74f9_fe9a98bbea87 style bc208666_57e8_943c_99bd_06a482111eb4 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