question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SASS variable overrides

See original GitHub issue

First 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:open
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
skboltoncommented, Jan 19, 2018

^ 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.

1reaction
kulakowkacommented, Oct 24, 2017

You can build CSS with custom variables. And then you can create custom index file in your project like this:

import './css/bulma.css'

export { default as Box } from 'reactbulma/Box/Box'
export { default as Button } from 'reactbulma/Button/Button'
//...
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found