Home / Function/ bareAspectRatio() — tailwindcss Function Reference

bareAspectRatio() — tailwindcss Function Reference

Architecture documentation for the bareAspectRatio() function in default-theme.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  a5c3eb39_bfdf_f90c_e8ae_71716e43fca3["bareAspectRatio()"]
  ad3a42df_eca9_aedd_0e57_11ba3a18e16c["bareValues()"]
  a5c3eb39_bfdf_f90c_e8ae_71716e43fca3 -->|calls| ad3a42df_eca9_aedd_0e57_11ba3a18e16c
  03b8d706_a876_a776_0056_186ced5d6067["segment()"]
  a5c3eb39_bfdf_f90c_e8ae_71716e43fca3 -->|calls| 03b8d706_a876_a776_0056_186ced5d6067
  4eec17e9_9a96_168a_2273_b6e64e229816["isPositiveInteger()"]
  a5c3eb39_bfdf_f90c_e8ae_71716e43fca3 -->|calls| 4eec17e9_9a96_168a_2273_b6e64e229816
  style a5c3eb39_bfdf_f90c_e8ae_71716e43fca3 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

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