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.

object breakpoints

array breakpoints

The following CSS properties accept responsive object or array values:

All media queries🔗

key
media query