Toggle theme

Responsive design and media queries🔗

Web experiences should be built mobile first, customizing the experience for non-mobile users with media queries.

A simple media query🔗

You can specify any CSS valid media query as an object key, like this:

Included media queries and breakpoints🔗

The default media queries are available as keys on any extend style block:

They are also available on the theme:

For the common use case of setting a layout property to different values depending on the breakpoint, you can use an object with breakpoints as a value, or an array representing the same breakpoints.

The following CSS properties accept responsive object or array values:

All media queries🔗

key
media query
onlyS@media (max-width: 479px)
untilM@media (max-width: 479px)
fromM@media (min-width: 480px)
onlyM@media (min-width: 480px) and (max-width: 1023px)
untilL@media (max-width: 1023px)
fromL@media (min-width: 1024px)
onlyL@media (min-width: 1024px) and (max-width: 1599px)
untilXL@media (max-width: 1599px)
fromXL@media (min-width: 1600px)
onlyXL@media (min-width: 1600px)
2022 © Volvo Car Corporation