@linktime/palette
JavaScript Util library to convert color and generate color.
Install
$ npm install @linktime/palette
Usage
// Generate 20 colors from default colorsconst colors =
Examples
$ npm run example
Open http://127.0.0.1:8080/example/
Generate colors, convert hex color to hsl color
// Generate 20 colors from default colorsconst colors = const hslColor = // Output hsl(0, 0%, 100%)
Generate colors from default colors, control color lightness
// Generate 30 lighter colors from default colorsconst colors = // Generate 30 darker colors from default colorsconst colors =
Generate colors from your colors
// Generate 20 colors from default colorsconst colors =
check Test folder for more examples.
Test
$ npm run test
TODO
Use alogrithm to generate color scheme