Put one PaletteStripColor for each color. A weight sets its share of the strip, so a 60-30-10 brand palette reads at a glance.
brand-palette.tsx
PaletteStrip
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm" | — | |
| palette | — | The palette: its colors, weights, and name. colors wins when both are set. | |
| colors | readonly string[] | — | The colors, any CSS colors, when there is no palette. |
| orientation | "horizontal""vertical" | "horizontal" | horizontal (default) fills the width; vertical stacks the parts. |
| gap | boolean | false | 2px gaps between the parts; each part keeps 2px corners and its own edge. |
| children | — | Custom parts: PaletteStripColor elements, or a function that renders each color (({ color, weight, index }) => <PaletteStripColor … />). Default: one part per color. | |
| labels | Partial<{ empty: string; }> | — | The words (PALETTE_STRIP_LABELS), to translate them. Keep the object stable. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
PaletteStripColor
<span>










