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
2025
2026
 Dependencies

Runtime

>= 6.1.0
>= 2.2.1, < 4.0
 Project Readme

Version Build

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"

Contributing

Bug reports, feature requests, and pull requests are welcome. Read CONTRIBUTING.md first. Report security vulnerabilities privately as described in SECURITY.md.

CONTRIBUTING.md also covers how to get set up and how commits are formatted. This project ships with a code of conduct.

License

Released under the MIT License.