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)0
untilM@media (max-width: 479px)1
fromM@media (min-width: 480px)2
onlyM@media (min-width: 480px) and (max-width: 1023px)3
untilL@media (max-width: 1023px)4
fromL@media (min-width: 1024px)5
onlyL@media (min-width: 1024px) and (max-width: 1599px)6
untilXL@media (max-width: 1599px)7
fromXL@media (min-width: 1600px)8
onlyXL@media (min-width: 1600px)9
2022 © Volvo Car Corporation