@mocanvas/editor · interface
interface TLThemeColors extends TLThemeDefaultColorsA 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: stringThe page behind everything.
grid: stringThe grid lattice.
hint: stringSnap lines and drop-target hints.
selectFill: stringInterior of a selection brush / selection box.
selectStroke: stringSelection and indicator outlines.
solid: stringThe "paper" a shape is drawn on: an interior with no colour of its own.
text: stringDefault 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.