New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

all-the-favicons

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-the-favicons

  • 0.6.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 17 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc