materialifier
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

codecov npm bundle size

Materialifier

Generates color palettes based on the Material design color system

Usage example:

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: Material Color Tool

License

Released under the MIT License

Package Sidebar

Install

npm i materialifier

Weekly Downloads

6

Version

2.0.3

License

MIT

Unpacked Size

63.5 kB

Total Files

21

Last publish

Collaborators

  • amir.asghary