Skip to content

@vaguevoid/fiasco / color / Colors

Colors

Colors provides utility function around manipulating color and also a Color Palette.

Construct colors from rgb, hsl, hsv, hex, etc.

ts
import { Colors } from '@vaguevoid/fiasco'

Colors.Palette.ALICE_BLUE // 0, 1, 1, 1
Colors.alpha(Colors.Palette.ALICE_BLUE, 0.5) // 0, 1, 1, 0.5
Colors.rgb(255, 255, 255) // 1, 1, 1, 1
Colors.rgba(255, 255, 255, 0) // 1, 1, 1, 0

Variables

Functions