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

Overriding bootstrap variables #210

Open
veekram opened this issue Mar 30, 2021 · 3 comments
Open

Overriding bootstrap variables #210

veekram opened this issue Mar 30, 2021 · 3 comments

Comments

@veekram
Copy link

veekram commented Mar 30, 2021

I was wondering if we have a neat way to override bootstrap variables? Any help is appreciated. Thank you

@luccasmaso
Copy link

Hi @veekram

I saw your question here at same time that was making a customisation for my project. If it helps, I will share how I'm doing:

Instead of copying all content from bootstrap default variables file and changing what is needed there, I'm just creating an import with only sass variables that I want to have changed @import "customize/variables";

application.scss

Screenshot 2021-04-20 at 17 22 25

customize/_variables.scss

Screenshot 2021-04-20 at 17 22 57

@veekram
Copy link
Author

veekram commented Apr 21, 2021

@luccasmaso thank you very much 😊

@WilfriedPaillot
Copy link

If it can helps, I had written an article hosted on Medium on how to do it on Rails 5 keeping Asset Pipeline profits

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