@mocanvas/editor · interface

TLDefaultColor

interface TLDefaultColor

One palette entry — every way a single colour name can be painted.

All values are CSS colour strings so a consumer never has to branch on the shape of a token (this is what lets getColorValue return string).


Properties · 13

fill: string

The hue as an opaque interior.

frameFill: string

Body of a frame.

frameHeadingFill: string

Body of the strip a frame's name sits in.

frameHeadingStroke: string

Border of that strip.

frameStroke: string

Border of a frame.

frameText: string

The frame's name.

highlightP3: string

Highlighter ink in Display P3, for wide-gamut screens.

highlightSrgb: string

Highlighter ink, sRGB — the fallback everywhere.

noteFill: string

Body of a sticky note.

noteText: string

Text drawn on a sticky note.

pattern: string

Stroke colour of the hatch pattern used by pattern fills.

semi: string

A pale tint of the hue, for lightly filled interiors.

solid: string

Ink: strokes, text, arrowheads — the hue at full strength.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.