While this will correctly load the target file's styles, most Bulma components rely on base styles and CSS variables defined by the default themes.
That is why it's preferable to also load the sass/base folder and the sass/themes folder:
// Load Bulma's base styles and themes (including the minireset)@use"bulma/sass/base";@use"bulma/sass/themes";// Load other Bulma components@use"bulma/sass/elements/button";@use"bulma/sass/components/message";
Layout features like Bulma's columns don't rely on CSS variables defined by Bulma themes. As a result, you can load them directly without requiring any additional file.
For example, importing Bulma columns only requires to load the file located in the bulma/sass/grid folder.
Simply load the columns.scss file with the @use keyword
// Only load the columns@use"bulma/sass/grid/columns";
Now you can use the classes .columns (for the container) and
.column directly:
To load Bulma elements like the .button and components like the .message, it's preferable to also load the base styles and default themes.
// Load Bulma's base styles and themes (including the minireset)@use"bulma/sass/base";@use"bulma/sass/themes";// Load the button and title elements and components@use"bulma/sass/elements/button";@use"bulma/sass/elements/title";@use"bulma/sass/components/message";
You can now use the .button class, and all its modifiers: