You only need 2 packages to customize Bulma: node-sass
and bulma
itself.
--- title: With node-sass layout: documentation doc-tab: customize doc-subtab: node-sass breadcrumb: - home - documentation - customize - customize-node-sass --- {% capture dependencies %} npm install node-sass --save-dev npm install bulma --save-dev {% endcapture %} {% capture package %} { "name": "mybulma", "version": "1.0.0", "main": "sass/mystyles.scss", "license": "MIT", "devDependencies": { "bulma": "^0.7.2", "node-sass": "^4.9.2" } } {% endcapture %} {% capture step_2 %}
You only need 2 packages to customize Bulma: node-sass
and bulma
itself.
Your package.json
should look like this at this point.
To build a CSS file from a Sass file, we can use node scripts. In package.json
, add the following:
css-build
takes sass/mystyles.scss
as an input, and outputs css/mystyles.css
, while omitting the source map
css-watch
builds the CSS and watches for changes
start
is simply a shortcut for css-watch
To test it out, go in your terminal and run the following command:
If set up correctly, you will see the following message:
Reload the page and it should be styled like this:
To watch for changes, just launch the following command: