You need to import the variables firs before you can do that. Check this out: https://versions.bulma.io/0.7.0/documentation/overview/customize/
May 22, 2020
7
Level 6
Variables and Bulma-Extension
Anybody know how to customize Bulma-Extensions? While I'm not very proficient at scss I did try to follow the docs and I still can't make sense of this:
I'm trying to change the bulma-switch background color. I have this:
//app.scss
$switch-background: pink;
@import '~bulma/bulma';
@import '~bulma-switch';
According to the docs: https://wikiki.github.io/form/switch/ I can hook into these variables, but it doesn't seem to work. Bulma and the switch works fine, but the variable doesn't seem to be applied.
For a sanity test, I tried playing around with variables in the regular Bulma library and that worked no problem.
Have any experience/ideas with this?
Thanks
Please or to participate in this conversation.