Low commit activity in last 3 years
A long-lived project that still receives updates
A Rails engine that outputs favicons through the assets pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 6.1.0
~> 2.2, >= 2.2.1
 Project Readme

All The Favicons

The favicon sitation is getting out of hand. 25+ variants? browserconfig.xml? manifest.json?

This gem handles the Rails stuff, all you need to do is generate the images.

Usage

Add all-the-favicons to your Gemfile:

gem "all-the-favicons"

Generate all your icons using something like the Real Favicon Generator, and put the files in app/assets/favicons.

Add the helper to your layout somewhere in the <head> tag:

<%= all_the_favicons %>

Configuration

You can configure colors by adding an initializer (ie app/config/initializers/favicons.rb).

AllTheFavicons.name = "MyApp" # For the Android Chrome manifest
AllTheFavicons.short_name = "MyApp"
AllTheFavicons.ms_tile_color = "#2d89ef"
AllTheFavicons.pinned_tab_color = "#000000"
AllTheFavicons.background_color = "#ffffff"
AllTheFavicons.theme_color = "#ffffff"

License

all-the-favicons is licensed under the MIT License.