README
Bulma CSS Vars
Bulma CSS Vars extends Bulma to use CSS variables, that can be set to arbitrary values at runtime on the website and installs fallbacks for browsers without CSS variables capabilities.
This is an extension and a kind of "sass-pre-post-processor" that tries to be as least intrusive as possible to Bulma, while making arbitrary color changes in the bulma color schemes automated, as easy as possible.
There is quite some setup and configuration to be done, but once it is setup, it works like a charm. Read the section What is the difficulty, to learn why this setup is required.
Usage
npm i -S bulma bulma-css-vars
npm i -D sass
node ./node_modules/.bin/bulma-css-vars --init
To use this package, you have to use the dart implementation of sass, the sass
package, version 1.23
or higher. If you use webpack and the sass-loader
, you have to make sure you do not have node-sass
installed, or configure options: { implementation: require('sass') }
for the sass-loader
.
// bulma-css-vars.config.js
const { hsl, rgb } = require('bulma-css-vars')
// color names have to match bulma's $variable-name, without '