
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
bulma-variables-export
Advanced tools
Library exporting Bulma sass variables which can be used in Webpack project.
Library exporting Bulma sass variables which can be used in Webpack project. Bulma variables can be imported into any Javascript/Typescript project.
npm install bulma-variables-export
When working with Javascript/Typescript and Sass, sometimes you want to be able to share variables defined in stylesheets with your code. This is actually pretty simple with Webpack.
First make sure webpack is set up to import scss:
// webpack.config.js
module.exports = {
...
module: {
rules: [{
test: /\.scss$/,
use: [{
loader: "style-loader" // creates style nodes from JS strings
}, {
loader: "css-loader" // translates CSS into CommonJS
}, {
loader: "sass-loader" // compiles Sass to CSS
}]
}]
}
};
Now you can import any Bulma variables in your project.
You can import every variables using:
import variables from 'bulma-variables-export'
You can also import specific set of variables using:
import initialVariables from 'bulma-variables-export/sass/initial-variables'
import derivedVariables from 'bulma-variables-export/sass/derived-variables'
import controlsVariables from 'bulma-variables-export/sass/controls-variables'
Usage in your code is very simple. The variables name are exactly defined as Bulma but in camelCase.
import variables from 'bulma-variables-export'
// *OR*
// variables = require('bulma-variables-export');
console.log(variables.black)
console.log(variables.familyMonospace)
console.log(variables.weightMedium)
FAQs
Library exporting Bulma sass variables which can be used in Webpack project.
The npm package bulma-variables-export receives a total of 0 weekly downloads. As such, bulma-variables-export popularity was classified as not popular.
We found that bulma-variables-export demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.