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

Importing bulma css causes postcss-custom-properties error #2354

Closed
rchaubey opened this issue Oct 5, 2017 · 7 comments
Closed

Importing bulma css causes postcss-custom-properties error #2354

rchaubey opened this issue Oct 5, 2017 · 7 comments

Comments

@rchaubey
Copy link

rchaubey commented Oct 5, 2017

All I did was installed bulma

yarn add bulma

Then imported bulma css

import "bulma/css/bulma.css"

And this is the error I get

image

@jquense
Copy link
Contributor

jquense commented Oct 5, 2017

does bulma rely on css properties?

@rchaubey
Copy link
Author

rchaubey commented Oct 6, 2017

@jquense Yes, they do use custom css properties. Is that a problem ?

@jquense
Copy link
Contributor

jquense commented Oct 6, 2017

No, just trying to understand the issue a bit. I think the problem is here that the default css setup adds a bunch of cssNext setup along with it, which isn't a great default..

@mikewesthad
Copy link

I just ran into the same issue. I created a local copy of the gatsby postcss sass plugin and ripped out the postcss (since I don't need it).

@jquense jquense mentioned this issue Oct 26, 2017
13 tasks
@mbfisher
Copy link

Posting my solution to this for others:

  • Install gatsby-plugin-sass (see here)
  • Create layouts/index.scss (see here)
$variable-columns: false;
@import "~bulma/bulma";
  • Import index.scss in layouts/index.js

@marcelkooi
Copy link

@mbfisher had to add one more step to get that to work:

  • Add "gatsby-plugin-sass" to plugins: in gatsby-config.js

@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
None yet
Projects
None yet
Development

No branches or pull requests

6 participants