0.1.1 • Published 3 years ago
@andevjs/palette v0.1.1
Color Palette
Install
npm i @andevjs/paletteHow to use
import createPalette from "@andevjs/palette";
const primaryColor = createPalette("#9e8cfc");Type
typesare also available to importimport { CreatePalette, Palette } from "@andevjs/palette";type CreatePalette = (color: string, altColor?: string) => Palette;
color- Main ColoraltColor- Alternative to the main color, for example, if the main color is too light or too dark, alternate a color with a darker tone to the light color, or a lighter tone to the dark color.
Return
type Palette = {
  light: string;
  main: string;
  hover: string;
  alt: string;
  dark: string;
  shad: string;
  over: string;
};