DEV Community

Discussion on: You Probably Don't Need Media Queries Anymore

Collapse
 
yodasoda profile image
Jan Claasen

If you into clamp or not keen of the extra mental load of using clamp then check out github.com/bglw/postcss-fluidvars
It's a simple postcss package that takes your design max and min and applies fluid styles to it via css variables. For example "font-size: var(--s-18-32)" gives you a fluid font size between 18px and 32px for your design min and Max.

Some comments have been hidden by the post's author - find out more