buefy-next-bulma-v1-scss v1.0.2
:warning: WIP: needs testing and storyboard of bulma components
Before you start
Please look at Bulma With Sass Example this repo is just an extension to how that works.
Importing the scss files directly will likely cause wierd/broken behaviour
Install
- pnpm add bulma
- pnpm add buefy-next-bulma-v1-scss
- where you import bulma after the import add buefy-next-bulma-v1-scss eg.
@use "bulma/sass" with (
$family-primary: '"Nunito", sans-serif',
$grey-dark: $brown,
$grey-light: $beige-light,
$primary: $purple,
$link: $pink,
$control-border-width: 2px,
$input-shadow: none
);
// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");
// Import buefy-next-bulma-v1-scss
@import 'buefy-next-bulma-v1-scss';
- follow Bulma With Sass Example instructions
Local Development
- pnpm add bulma
- clone this repo
- pnpm link -g from this cloned repo (might eventually get on NPM)
- pnpm link -g buefy-next-bulma-v1-scss in your repo
add bulma scripts to your package json in your repo
"build-bulma": "sass --load-path=node_modules my-bulma-project.scss my-bulma-project.css",
"start": "npm run build-bulma -- --watch"
add a my-bulma-project.scss file with the following (rename it. i just want a consistant example)
@use "sass:color";
// Set your brand colors
$purple: #8a4d76;
$pink: #fa7c91;
$brown: #757763;
$beige-light: #d0d1cd;
$beige-lighter: #eff0eb;
// Path to Bulma's sass folder
@use "bulma/sass" with (
$family-primary: '"Nunito", sans-serif',
$grey-dark: $brown,
$grey-light: $beige-light,
$primary: $purple,
$link: $pink,
$control-border-width: 2px,
$input-shadow: none
);
// Import the Google Font
@import url("https://fonts.googleapis.com/css?family=Nunito:400,700");
// Import buefy-next-bulma-v1-scss
@import 'buefy-next-bulma-v1-scss';
- run
pnpm build-bulma
with the above import and it should spit out a good css file - include that css file in your project
Bulma sass starting point here Bulma With Sass Example
DEV Notes
breakpoints are now include mx.breakpoint (mx is aliased - bulma does this)
@include tablet
becomes -> @include mx.breakpoint("tablet")
Color pairs no longer work. Instead i've used fn.bulmaFindLightColor($color); fn.bulmaFindDarkColor($color); fn.bulmaFindColorInvert($color);
Need to test above with tags or tooltip. maybe button