-
Notifications
You must be signed in to change notification settings - Fork 62
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
Priority of js defined variables over css defined variables #86
Comments
@2beers JS-defined variables just get put in a You can add the cssvariables({
variables: {
"--first-color": {
value: "green",
isImportant: true
}
}
}) |
Thanks @MadLittleMods . I've tried using isImportant but it returns an error. I tried with both postcss 7.0.5 and 6.0.23 and is the same error.
|
|
@MadLittleMods Thanks Eric for your help. Just tested and works great now. |
Is there an option that will enable priority for js defined variables over css ones?
For example in this css
will output
#box{background-color:red}
and I expected to change the color to green as provided from js optionsThanks
The text was updated successfully, but these errors were encountered: