You can import only what you need from Bulma, and customize it with your own Sass values.
To achieve this:
- set your own Sass variables
- import
bulma/sass/utilities
- override Bulma’s variables by providing the
with
keyword with your own Sass map
- if you need to, do the same for the
bulma/sass/form
folder
- import the Bulma components you need with either
@use
or @forward
- finally, import the Bulma themes from
bulma/sass/themes
This allows you to override Bulma’s:
- global variables from the
utilities
folder
- form variables from the
form
folder
If you wanted to import a component and customize it, do the same when importing it: