我正在使用bulma rails gem,我想自定义它使用的一些变量,特别是字体颜色.
根据bulma docs http://bulma.io/documentation/overview/customize/我应该这样做:
// 1. Import the initial variables
@import "../sass/utilities/initial-variables"
// 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 …Run Code Online (Sandbox Code Playgroud)