Aspect Ratio
The Aspect Ratio utilities maintain consistent aspect ratios for elements, ensuring proper proportions across different screen sizes and contexts. This component is essential for responsive images, video containers, cards, and any content that needs to maintain specific width-to-height relationships regardless of the container size.
Example
<div class="ratio --16x9">
<img src="video-thumbnail.jpg" alt="Video thumbnail" />
</div>
<div class="ratio --1x1">
<iframe src="https://example.com/embed" title="Embedded content"></iframe>
</div>
Custom Properties
Class Utilities