2.0.0 • Published 3 years ago

@whalue-design/colors v2.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

:art: Color palette calculator of Whalue Design.

NPM version NPM downloads

Install

$ yarn add @whalue-design/colors

Usage

import {
  generate,
  presetPalettes,
  presetDarkPalettes,
  presetPrimaryColors,
  red,
  orange,
  yellow,
  lime,
  green,
  cyan,
  blue,
  purple,
  pink,
  grey,
} from "@whalue-design/colors";

console.log(blue);
console.log(blue.primary);

const colors = generate('#2196f3');
console.log(colors);
console.log(presetPalettes);

const darkColors = generate('#2196f3', {
  theme: 'dark',
  backgroundColor: '#141414'
});
console.log(darkColors);
console.log(presetDarkPalettes);