Olian04 / Pelle

MIT License
1 stars 0 forks source link

Add more color util functions #1

Open Olian04 opened 2 years ago

Olian04 commented 2 years ago

For example, mix and complement.

import { Palette } from 'pelle';
import { mix, complement } from 'pelle/util';

const palette = Palette({
  primary: mix(red[200], white, 0.7),
  secondary: complement(`#55ddff`),
});