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

How to use CSS Variables and CSS Modules together, canonically ? #4933

Closed
fxfactorial opened this issue Apr 11, 2018 · 2 comments
Closed

How to use CSS Variables and CSS Modules together, canonically ? #4933

fxfactorial opened this issue Apr 11, 2018 · 2 comments
Labels
type: question or discussion Issue discussing or asking a question about Gatsby

Comments

@fxfactorial
Copy link
Contributor

I want to use CSS variables,

:root {
  --foo-bar: orange;
}

But in my CSS modules, I get errors about undefined variables because I assume PostCSS implements its own layer for that.

I found this plugin, but I am not sure how to integrate it into a gatsby project, guidance appreciated.

https://github.com/postcss/postcss-custom-properties

@m-allanson
Copy link
Contributor

@fxfactorial Does issue #2773 help? If not, can you provide some more details on your setup and the errors you're seeing?

@m-allanson m-allanson added the type: question or discussion Issue discussing or asking a question about Gatsby label Apr 16, 2018
@KyleAMathews
Copy link
Contributor

Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Issue discussing or asking a question about Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants