feat(dev): add live theme adapter panel for color customization

Floating panel in bottom-right of all dev targets lets you:
- Switch presets (Purple, Blue, Neutral, Warm, Rose, Emerald)
- Adjust gray hue/saturation and accent hue/saturation with sliders
- Preview color swatches in real-time
- Copy EDN config to paste into tokens.edn

State persists in localStorage. Panel collapses to a small toggle button.
Hiccup handler changed to use #'handler var for hot-reload.
This commit is contained in:
Florian Schroedl
2026-03-11 11:51:59 +01:00
parent 07f18872cf
commit 41811dba88
5 changed files with 428 additions and 2 deletions

6
bb.edn
View File

@@ -12,7 +12,11 @@
(spit "dev/replicant/public/theme.css" css)
(io/make-parents "dev/squint/public/theme.css")
(spit "dev/squint/public/theme.css" css)
(println "Copied theme.css to dev targets")))}
(println "Copied theme.css to dev targets"))
(let [adapter (slurp "dev/theme-adapter.js")]
(spit "dev/replicant/public/theme-adapter.js" adapter)
(spit "dev/squint/public/theme-adapter.js" adapter)
(println "Copied theme-adapter.js to dev targets")))}
test
{:doc "Run all unit tests"