Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not handle Variables defined with in context #19

Closed
changfuguo opened this issue Apr 8, 2017 · 2 comments
Closed

can not handle Variables defined with in context #19

changfuguo opened this issue Apr 8, 2017 · 2 comments

Comments

@changfuguo
Copy link

here i defined a variable in setting.css
use just like below

:root { 
	--baseGap: 10;
}

the code below can work well


width: rem(750);

but the code below can not work

width:rem(var(--baseGap))

the param is var(--baseGap)? how can solve it ,and change var(--baseGap) to real value ?

@andyjansson
Copy link
Owner

Change your plugin order so that postcss-css-variables executes before postcss-functions.

@afcsantos
Copy link

how can I setup postcss-css-variables on nuxt.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants