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

Variables imported after bootstrap.scss #8

Open
derykmarl opened this issue May 20, 2020 · 0 comments
Open

Variables imported after bootstrap.scss #8

derykmarl opened this issue May 20, 2020 · 0 comments

Comments

@derykmarl
Copy link

I noticed that in /src/styles/style.scss the variables are imported after bootstrap.scss. This seems to work fine for the included color-primary, but once you start trying to customise other Bootstrap variables like say "navbar-dark-color" for the foreground text, it doesn't work. I had to switch it around so that the variables are imported first.

I'm new to this way of doing things (coming from CMS and PHP and never having expected to be back to static site generation) so not sure if I'm just misunderstanding something or if it's genuinely the wrong way round.

P.s. thanks for this useful starter! I'm finding it invaluable for learning how to create an efficient Gatsby+Bootstrap site, and am preferring it to the more popular Bootstrap starter which appears to just import the whole Bootstrap library and use a bunch of classNames the "old fashioned" way. If we're going to use React we may as well do it properly, which react-bootstrap allows us to do.

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

1 participant