Material color hashing
Hash strings to Material UI colors
A dead-simple library to hash a string to a {backgroundColor, textColor} tuple from the official Material Design palette.
Great for dynamically coloring your UI elements (badges, list icons, ..) with good-looking, vibrant colors and ensured text legibility.
Live Demo
http://code.belka.us/material-color-hash/
Usage
The return object can be fed directly as a style prop to React components:
For more information about Material Design colors and how to use them, check out the official Material Design docs by Google
Contributors
Giovanni Frigo, Developer @Belka
License
material-color-hash is Copyright (c) 2016 Belka, srl. It is free software, and may be redistributed under the terms specified in the LICENSE file. (TL;DR: MIT license)