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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
palette |
| AssetPalette | null | undefined |
Returns
Section titled “Returns”{
hex: string;
key: keyof AssetPalette;
label: string;
}[]