SASS variable overrides
See original GitHub issueFirst off, thanks for creating this project! I am beginning to use it and it has been very easy to integrate. I was wondering if you’ve thought about a way to implement overrides for any of the SASS variables in Bulma? What comes to mind is overriding what the primary
color is or the default font-family
.
I’d be happy to help with this, but I don’t know what that implementation would look like.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
How to overwrite SCSS variables when compiling to CSS
Override variables $base-color: #fe892a;/* The default base which is later used for toolbar, list, and button backgrounds.
Read more >A story about overriding SASS variables and the '!default ...
This article describes how to use the !default keyword in SCSS when overriding variables. It will also save you a few hours of...
Read more >How To Override Bootstrap-Sass Using Sass Variables?
Bootstrap has its own “_variables.scss” in the “scss” folder, which contains all variables used in Bootstrap. Now, add the “abstracts” name ...
Read more >Variables - Sass
The configured values will override the variables' default values. Only variables written at the top level of the stylesheet with a !default flag...
Read more >Theming Bootstrap
Variable overrides within the same Sass file can come before or after the default variables. However, when overriding across Sass files, your overrides...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
^ I realized after thinking about this that it wouldn’t be realistic to add a buildstep/api to consume the sass version of bulma. Instead I think that the
bulma
dependecy should be a peer to this project and users should install it and customize it how ever they want. Or they could just add the css through a link tag.react-bulma
could then just consume the classnames. Then if they want to use a newer version of bulma they can just install it and work with it. As it is now if the library ever falls behind and I want to use the new one I would have 2 versions installed and the react bulma wouldn’t have the same styles.You can build CSS with custom variables. And then you can create custom index file in your project like this: