Skip to content

Shades is a web application that generates shades of your brand colors.

Notifications You must be signed in to change notification settings

nathsimpson/shades

Repository files navigation

Shades 😎

Shades is a web application that generates shades of your brand colors.

Simply enter in a hex code of your favourite color, and Shades will generate as many tints of that colour as you like.

The algorithm

Behind the scenes, Shades converts the input HEX color into HSL syntax, before generating a range of colors based on the brightness difference and the intended amount of shades returned.

The shades are generated in a linear progression, meaning that the 'gaps' between each shade are equal.

Note that the algorithm filters out any generated colors which are darker than 0 (black) or 255 (white), therefore the algorithm may return less shades than you were expecting.

It's a relatively simple algoritm, but it is definitely not perfect. If you have more advanced needs, I highly recommend 'colorbox.io'.

There is a more detailed description of the algorithm here.

The app

The app is built in React, using create-react-app as a starter.

Meetup Talk

I gave a talk at the SydJS meetup about how I built Shades. Check it out on my website.

Acknowledgements

Thanks to Timl for your help with understanding the algorithms involved with generating the shades, and to simonswiss, Dominik Wilkowski and Thinkmill for your support.

Resources

Here are some handy articles and posts that I referenced while developing this project.

About

Shades is a web application that generates shades of your brand colors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published