小编loo*_*eym的帖子

如何在rails中自定义bulma变量

我正在使用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)

css ruby-on-rails bulma

5
推荐指数
2
解决办法
2527
查看次数

标签 统计

bulma ×1

css ×1

ruby-on-rails ×1