@mocanvas/editor · constant
declare const DEFAULT_FILL_TOKENS: Record<DefaultFillStyle$1, TLDefaultColorVariant | "paper" | "none">Which palette token each fill *style* paints with.
The style names and the token names overlap without lining up, which is the
easiest thing here to get wrong: semi paints the paper with barely a tint,
solid paints the hue's pale tint (the semi token), and only fill paints
the hue at full strength. Reading the token whose name matches the style
makes every filled shape a step too saturated. Stated once, here, so a
renderer and an exporter cannot disagree about it.
"paper" means the ramp's own solid surface colour, not a palette entry.
A swatch UI that previews the fill styles reads *tokens* by name instead
(getColorValue(colors, "black", "semi")) — that is a UI decision about what
to show, and it is deliberately not routed through this table.
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.