1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

(Mac)Bourbonのインストール〜使用方法

Last updated at Posted at 2019-10-15

環境

Visual Studio Code

/homeでbourbonのgemをインストールする(home以外でインストールすると、パスを通す必要があるらしい)

$ cd /home
$ gem install bourbon

Bourbonを配置したいディレクトリ(scssファイルを配置しているフォルダ等)に移動して、下記コマンド実行

$ cd xxxxx  // scssを配置しているフォルダ等
$ bourbon install
  • コマンド実行すると、bourbonフォルダが作成される

Bourbonを使う

  • 使いたいscssファイルでインポートする
xxxxx.scss
@import "bourbon/bourbon";
  • scssファイル保存時(cssファイル生成時)エラーになって、cssが生成されない

  • 下記に修正すると解消された

xxxxx.scss
@import "bourbon/_bourbon.scss";
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?