Generating CSS breakpoints from props with CSS-in-JS and TypeScript

Mandy Michael
Apr 10, 2020 · 5 min read

One of the things I love about CSS is how easy it is to change things at different breakpoints. Maybe you want to drop text, images, or even change the layout.

You might do this for a number of reasons, maybe it’s to simplify a design on a smaller screen, or in the case I hit recently, to make things look more consistent when it’s stacked in a list…