bulma_sass 0.6.2 copy "bulma_sass: ^0.6.2" to clipboard
bulma_sass: ^0.6.2 copied to clipboard

outdatedDart 1 only

Bulma flexbox CSS framework and its scss components

bulma_sass #

Bulma is a modern SCSS framework based on Flexbox.

Usage #

Add Sass and Builder runner to the project pubspec.yaml:

dev_dependencies:
  build_runner: ^0.7.10+1
  sass_builder: ^1.1.2

Create a SCSS file and import bulma and edit any variable you need:

// 1. Import the initial variables
@import "packages/bulma_sass/scss/utilities/initial-variables";
@import "packages/bulma_sass/scss/utilities/functions";

// 2. Set your own initial variables
// Update blue
$blue: #72d0eb;
// Add pink and its invert
$pink: #ffb3b3;
$pink-invert: #fff;
// Add a serif family
$family-serif: "Merriweather", "Georgia", serif;

// 3. Set the derived variables
// Use the new pink as the primary color
$primary: $pink;
$primary-invert: $pink-invert;
// Use the existing orange as the danger color
$danger: $orange;
// Use the new serif family
$family-primary: $family-serif;

// 4. Setup your Custom Colors
$linkedin: #0077b5;
$linkedin-invert: findColorInvert($linkedin);
$twitter: #55acee;
$twitter-invert: findColorInvert($twitter);
$github: #333;
$github-invert: findColorInvert($github);

// 5. Add new color variables to the color map.
@import "packages/bulma_sass/scss/utilities/derived-variables";
$addColors: (
  "twitter":($twitter, $twitter-invert),
  "linkedin": ($linkedin, $linkedin-invert),
  "github": ($github, $github-invert)
);
$colors: map-merge($colors, $addColors);

// 6. Import the rest of Bulma
@import "packages/bulma_sass/scss/bulma";

Documentation #

Documentation for the Bulma framework can be found here Bulma Documentation

Bugs and Features #

Report problems with this package to https://github.com/indiealexh/dart_bulma_sass

Report problems with the core framework to https://github.com/jgthms/bulma

Dart package is released under MIT license.

Original Code copyright 2017 Jeremy Thomas and released under the MIT license.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Bulma flexbox CSS framework and its scss components

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

font_awesome

More

Packages that depend on bulma_sass