@mocanvas/editor · interface

TLThemeColors

interface TLThemeColors extends TLThemeDefaultColors

A full ramp: the palette plus the handful of colours that belong to the surface rather than to any one shape.

The two halves are told apart by shape, not by a list — palette entries are objects, surface colours are strings — which is what lets a consumer iterate the ramp without knowing the built-in names.


Properties · 7

background: string

The page behind everything.

grid: string

The grid lattice.

hint: string

Snap lines and drop-target hints.

selectFill: string

Interior of a selection brush / selection box.

selectStroke: string

Selection and indicator outlines.

solid: string

The "paper" a shape is drawn on: an interior with no colour of its own.

text: string

Default text colour on that paper.

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.