materialifier
Version:
Material design palette generator
30 lines (22 loc) • 984 B
Markdown
[](https://codecov.io/gh/AmirAsghary/materialifier)

Generates color palettes based on the Material design color system
Usage example:
```ts
import {
generateAccentPalette,
generateDarkPalette,
generateLightPalette,
RGBColor
} from 'materialifier';
// You can use colors in hex form as the base color for the palette
const colors1 = generateAccentPalette('#ce1b1b');
// ... or pass in a color in RGB form:
const colors2 = generateAccentPalette(new RGBColor(0.4, 0.6, 0.2));
// An array of 10 colors will be returned, from color-50 to color-900
```
References:
[ ](https://material.io/resources/color/#!/?view.left=0&view.right=0)
Released under the [MIT License](./LICENSE)