Your palette

Drag to reorder — the number is its hotkey (press it to filter by that color).

{#each items as c, i (c.id)}
{i + 1} commitName(c.id, (e.currentTarget as HTMLInputElement).value)} />
{/each}
Add color
{#if full}

Palette is full (9 colors) — remove one to add another.

{/if}