Font_awesome5_rails

screenshot of Font_awesome5_rails
rails

font_awesome_5_rails is font awesome 5 gem bundled for rails asset pipeline

Overview

The Font Awesome 5 RailsGem provides Font-Awesome 5 web fonts, stylesheets, and javascripts as a Rails engine, compatible with the asset pipeline and offering Free icons from Font-Awesome. The gem allows for easy installation and usage of these icons within Rails applications.

Features

  • Webfont with CSS: Option to install icons as a webfont with CSS.
  • SVG with JS Installation: Provides the option to install icons as SVG with JS.
  • Webpack Integration: Ability to install Font Awesome with webpack while still using helper functions from the gem.
  • Helper Functions: Offers helper functions for easy integration of FontAwesome icons in Rails views.
  • Multiple Icon Types: Supports different icon types like Solid, Regular, Light, Brand, Duotone, and Uploaded icons.
  • New FA5 Features: Access to new features like animations and layered icons provided by Font Awesome 5.
  • Backwards Compatibility: Maintains compatibility with the font-awesome-rails gem for seamless transition.

Install as webfont with CSS

Add the following line to your Gemfile:

gem 'font_awesome5_rails'

In your application.css, include the CSS file.

rails
Ruby on Rails

Ruby on Rails, often referred to as Rails, is an open-source web application framework written in Ruby. Known for its convention over configuration and don't repeat yourself (DRY) principles, Rails simplifies and accelerates the development of database-backed web applications.