Skip to content
scroll to zoom · drag to pan

iteratePaletteSwatches

function iteratePaletteSwatches(palette): {
hex: string;
key: keyof AssetPalette;
label: string;
}[];

Defined in: packages/asset-client/src/palette.ts:190

Iterate the palette in display order (dominant first, then vibrant + muted families). Useful for rendering a swatch strip in admin UIs.

Parameter Type
palette | AssetPalette | null | undefined

{ hex: string; key: keyof AssetPalette; label: string; }[]