LoginSignup
0
0

More than 3 years have passed since last update.

Font Awesomeの導入手順について

Last updated at Posted at 2020-04-22

背景

アイコンをすぐに導入できるため使ってみたくなり調べた手順内容を記載。

手順

1.Gemfileに、以下を記述。

gem "font-awesome-sass"

こちらも忘れずに。。

bundle install

3.application.scssに、以下を記述。      

application.scss
@import "font-awesome-sprockets";
@import "font-awesome";

おまけ知識

icon('接頭辞名', 'アイコン名')
[例]
icon('far', 'clock')

0
0
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
0
0