Skip to main content

Media Queries

Media Queries work the same way as plain CSS. They allow you to define styles for different sizes, allowing responsive designs. You can also define platform-specific styles!

@seehttps://developer.mozilla.org/en-US/docs/Web/CSS/@media

Syntax:

'@media not|only platform and (mediafeature and|or|not mediafeature)': {
styles,
}
// Example
'@media ios,android and (max-width: 600) or (orientation: portrait)': {
backgroundColor: 'red',
}
QueryPossible values
platformall ios android web windows macos androidtv
mediafeaturewidth height max-width max-height orientation
device-width device-height aspect-ratio direction, prefers-color-scheme