Skip to content
Design System
  • Documentation
  • Prototypes
Branding
  • Voice & tone
  • Logo
  • Farben
  • Typographie
  • Visuelle Elemente
Foundations
  • Usage
  • Global styles
  • Themes
  • Spacing
  • Viewports
  • Colors
  • Typography
  • Core utilities
Layouts
  • Usage
  • Aspect ratio
  • Auto grid
  • Content grid
  • Flex group
  • Flow
  • Multicol
  • Pile
  • Reel
  • Region
  • Repel
  • Sidebar
  • Switcher
  • Wrapper
Patterns
  • Accordion
  • Avatar
  • Avatar Group
  • Book pile
  • Brand shapes
  • Button
  • Calendar Date
  • Callout
  • Card
  • Context Switcher
  • Figure
  • Forms
  • Hero
  • Icon
  • Icon link
  • Image Bento
  • Image Grid
  • List Icon
  • Marquee
  • Modal
  • More Link
  • Pagination
  • Pill
  • Promo Card
  • Prose
  • Section Divider
  • Section Heading
  • Section Illustration
  • Show More
  • Slideout
  • Submenu bar
  • Table
  • Tabs

Aspect ratio

The aspect ratio utilities ensure that elements maintain consistent proportions across different screen sizes and contexts.

This layout is essential for responsive images, video containers, cards, and any other content that requires a specific width-to-height ratio, regardless of the container size.

The following aspect ratio can be set:

  • .aspect-ratio-1-1
  • .aspect-ratio-4-3
  • .aspect-ratio-10-15
  • .aspect-ratio-16-9
  • .aspect-ratio-21-9

Configuration #

PropertyDefault valueDescription
--aspect-ratioSet through the utility classThis CSS custom property is useful for overwriting the default aspect ratio of a component at certain breakpoints. For example, it can be used to switch from a square to a landscape format.

Examples #

View full screen
Theme