From c19c349fc6a770c025826fc35076b28bb34aeff7 Mon Sep 17 00:00:00 2001 From: Abdul Wahab Date: Thu, 23 Jul 2026 08:00:53 +0500 Subject: [PATCH] Add screen 02 palette picker: cue deck, sampling rings, band tools Deck of cue cards + seed palettes with scroll-snap browsing, draggable color-sampling rings with loupe, four-band panel (copy hex+OKLCH, tint strip, native custom color, card-local reset), /palettes.json route. AI-assisted (agent-implemented, maintainer-directed). Co-authored-by: Cursor --- picker/pages/index.astro | 291 +++++++-- picker/scripts/color.js | 64 ++ picker/scripts/palette-picker.js | 342 +++++++++++ picker/styles/picker.css | 987 +++++++++++++++++++++++++++++++ skill/scripts/palette.mjs | 229 +++---- skill/scripts/picker-server.mjs | 20 + tests/picker-server.test.mjs | 78 ++- 7 files changed, 1839 insertions(+), 172 deletions(-) create mode 100644 picker/scripts/color.js create mode 100644 picker/scripts/palette-picker.js diff --git a/picker/pages/index.astro b/picker/pages/index.astro index b01a7da31..3214758bb 100644 --- a/picker/pages/index.astro +++ b/picker/pages/index.astro @@ -1,5 +1,12 @@ --- import Picker from '../layouts/Picker.astro'; + +const roles = [ + ['primary', 'Primary'], + ['secondary', 'Secondary'], + ['tertiary', 'Tertiary'], + ['neutral', 'Neutral'], +]; --- @@ -40,15 +47,179 @@ import Picker from '../layouts/Picker.astro'; - -