Responsive Styles
Often when working on responsive layouts, it's useful to adjust styles along a singular dimension – such as font-size, margin, padding, and width. Instead of manually managing media queries and adding nested style objects throughout a code base, styled-system offers a convenient shorthand syntax for adding responsive styles with a mobile-first approach. While this syntax can seem odd at first, it can become a powerful way to manage responsive typography and layouts.
All style utilities add props that accept arrays as values for mobile-first responsive styles.
#
What it doesThis shortcut is an alternative to writing media queries out by hand. Given the following: