Skip to content

iteratePaletteSwatches

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

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

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; }[]