bulma-rails icon indicating copy to clipboard operation
bulma-rails copied to clipboard

How to import modules

Open jrmhaig opened this issue 5 years ago • 3 comments

Thanks for this gem. What is the correct way to import individual modules rather than the whole of bulma? Would it be possible to add a note to this effect into the README.rb?

jrmhaig avatar Mar 31 '19 21:03 jrmhaig

Works for me:

// Bulma Base
@import "sass/utilities/_all";

// +Bulma Overrides
@import "overrides";

// Bulma Framework
@import "sass/base/_all";
@import "sass/elements/_all";
@import "sass/form/_all";
@import "sass/components/_all";
@import "sass/grid/_all";
@import "sass/layout/_all";

missinglink avatar Oct 25 '19 12:10 missinglink

@import "overrides"; what does this does ?

Sayantansinharay451 avatar Jun 29 '23 07:06 Sayantansinharay451

The "overrides" file in the example is where you change builtin variables in Bulma. When you put your overrides in this location then they are adopted by subsequent code.

For instance you could add:

$primary: rgb(45, 51, 57);

Which would change the primary colour of everything in the library.

missinglink avatar Jul 03 '23 10:07 missinglink