Reshaped is following a mobile-first approach. This means that we treat the smallest viewport size as a default one. Other viewports are used to override the mobile styles.

There is no native support for custom media queries in CSS, so we expose them using the PostCSS custom media plugin.


/* Usage */
.element {
  background: var(--rs-color-background-neutral);

@media (--rs-viewport-m) {
  .element {
    background: var(--rs-color-background-primary);

If you still want to make an exception for the mobile viewport, we still expose the small screen media query.


Some of the components support responsive properties syntax in JSX code. For example, you can check View utility with multiple responsive properties supported.