LiteralColour

A parsed hex(…) or rgb(…) colour, which is drawn exactly as written in both themes.

@internote/canvas-sdkInterface
On this page
import { LiteralColour } from '@internote/canvas-sdk';

#Fields

cssRequired
The colour as CSS: hex(0064FA) becomes '#0064fa', rgb(1,2,3) becomes 'rgb(1, 2, 3)'.
string
kindRequired
Always 'literal'; tells the three Colour forms apart.
'literal'

Declared in packages/canvas-sdk/src/paint/colour.ts:377.

Last updated