This is about the Bulma CSS framework
This is about the Bulma Docs
I'm using Bulma version [0.4.4]
My browser is: Chrome
I am sure this issue is not a duplicate?
I installed Bulma in my Vue Webpack project and attempted to customize it in the App.vue root component. My code is as follows:
<style lang="sass-loader">
@import '~bulma/sass/utilities/initial-variables'
/* override initial variables */
$blue: #7dc2af
$turquoise: #41b3a3
@import '~bulma/bulma';
</style>
This does not work, even though (as far as I am concerned) it conforms to the instructions provided by Bulma's Docs. I've looked into some relevant discussions but none of them was helpful. I would highly appreciate any timely reply.
All customized colors should change accordingly.
The weird thing is that only $turquoise (and $primary as a result) changes as expected, any other color will stay the same as the default one.
I have come to realize that bulma's variables are only for customizing bulma's styles, and they are not supposed to be accessed directly in css.
This is old but it's misleading. You can override bulma variables and you have to do it before importing bulma.
<style lang="scss">
$blue: #72d0eb;
@import '~bulma';
</style>
This is because Bulma uses Sass' default functionality.
Most helpful comment
This is old but it's misleading. You can override bulma variables and you have to do it before importing bulma.
This is because Bulma uses Sass'
defaultfunctionality.