DEV Community

Cover image for Installing Font Awesome on Ionic in 3 steps
Fersho Pls
Fersho Pls

Posted on

3 3

Installing Font Awesome on Ionic in 3 steps

1. Install it via npm:

  npm i @fortawesome/fontawesome-free
Enter fullscreen mode Exit fullscreen mode

2. Add this to your main.ts:

  /* Fontawesome */
  import "@fortawesome/fontawesome-free/css/solid.css";
  import "@fortawesome/fontawesome-free/css/regular.css";
  import "@fortawesome/fontawesome-free/css/fontawesome.css";
Enter fullscreen mode Exit fullscreen mode

3. Done!

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay