Toggle theme
Web experiences should be built mobile first, customizing the experience for non-mobile users with media queries.
You can specify any CSS valid media query as an object key, like this:
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:
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) |