argyleink / open-props

CSS custom properties to help accelerate adaptive and consistent design.

Home Page:https://open-props.style

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

media queries not working

7flash opened this issue · comments

I added postcss.config.js - but still no effect, any more configuration steps are required?

yeah, once you have a config you can pass it plugins, this one will recognize the media queries and transform them 👍🏻 you're almost there!

yeah, once you have a config you can pass it plugins, this one will recognize the media queries and transform them 👍🏻 you're almost there!

Well, It comes by default on postcss-preset-env and even so, it is not working for me!

i'm back from vacation, did you find a solution to this? it can be tricky as the plugin needs to have the media queries at build time for many configurations, as they show here.

too bad we dont just have this in CSS yet!

i'm back from vacation, did you find a solution to this? it can be tricky as the plugin needs to have the media queries at build time for many configurations, as they show here.

too bad we dont just have this in CSS yet!

Solved by using postcss-globals.