rfs-random-colors
v0.0.2
Published
Get random material colors or shades of a particular color
Downloads
2
Maintainers
Readme
rfs-random-colors
Get random colors (material colors) or random shades of a particular color.
How to use
Include the module in your code:
const { getRandomColor, getRandomShade, colors } = require("rfs-random-colors");
To get a random color:
console.log(getRandomColor()); // #388e3c
To get a random shade of a particular color:
console.log(getRandomShade(colors.Indigo)); // #5c6bc0
Supported Colors
For easy of use, you can use the predefined supported colors
- Red
- Pink
- Purple
- DeepPurple
- Indigo
- Blue
- LightBlue
- Cyan
- Teal
- Green
- LightGreen
- Lime
- Yellow
- Amber
- Orange
- DeepOrange
- Brown
- Grey