Skip to main content

Color

import { color } from "@desygna/desygna";

A system that enables color and backgroundColor props.

PropCSS Property
background, bgbackgroundColor
colorcolor
// examples
// picks the value defined in `theme.colors.blue`
<Box color='blue' />

// picks up a nested color value using dot notation
// `theme.colors.gray[0]`
<Box color='gray.0' />

// raw CSS color value
<Box color='#f00' />

// background colors
<Box bg='blue' />

// verbose prop
<Box backgroundColor='blue' />