Project

coloris

0.0
No release in over 3 years
A gem to make using the coloris color picker with Ruby on Rails easier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 6.0
>= 0.20.0

Runtime

>= 6.0
 Project Readme

Coloris gem for Ruby on Rails

An alternative color picker for your website which offers some helpful features including

  • 3 different UI modes (default, polaroid, pill)
  • light/dark mode
  • force color picker to only use a single format (hsl, rgb, hex) or allow all color formats.

And so many more customization options see more information on the Coloris github page

Installation guide

Step 1. Install the gem

bundle add coloris

Step 2. Run the install command

rails g coloris:install

Add a data-coloris attribute on any text field

   <%= form.text_field :favorite_color, data_coloris: true %>