DEV Community

loading...

Discussion on: How to use CSS Media Query Breakpoint in Styled-Components

Collapse
jordanfinners profile image
Jordan Finneran

You could also achieve this using CSS Variables which would mean you could ship less Javascript. 🎉
developer.mozilla.org/en-US/docs/W...

Collapse
cagatayunal profile image
Cagatay Unal Author

Yes, but some browsers do not support the css variable.
caniuse.com/css-variables

Collapse
jordanfinners profile image
Jordan Finneran

Only really IE11, which is a security risk for anyone using it. 🙈

Forem Open with the Forem app