paintTypeSpecs
The compiler's declarations of the colour types: HUE_TYPE and PAINT_TYPE, and their surface twins.
@internote/canvas-sdkOn this page
import { paintTypeSpecs } from '@internote/canvas-sdk';The language has a colour base of its own since D66 — rgb(r, g, b) and hex(RRGGBB), compiled to { r, g, b } — and leaves names to a library, because a name has no fixed value: here it resolves by theme. So a name is an enum, and a colour as an attribute takes it is the union of the two. The compiler names the vocabulary back to an author who misspells one.
An attribute declares type: 'paint'; the library builder folds these into the base library. A literal reaches the refiners as { r, g, b } and is stored as its written form (writtenPaint).
#Signature
(): Record<string, TypeSpec>Declared in packages/canvas-sdk/src/paint/colour.ts:186.