Add two-stop shadow scale tokens #10
- MA
Four `--shadow-*` tokens, replacing three `box-shadow` values written by hand at three call sites โ 8% at 2px, 12% at 3px, 12% at 8px, which is three answers to a question nobody meant to ask twice.
Two stops from `sm` up: a tight contact shadow where the surface meets the page, and a wide ambient fall-off around it. One stop has to choose between them, and either choice reads as a blurred border.
Mixed from `foreground` rather than black, since the page is warm-neutral and a black shadow greys toward a different hue than the borders it runs into.
Declared under Tailwind's `--shadow-*` namespace, so the two `shadow-md` utility sites in the toolbar and the slash menu pick the scale up without being touched.
`--shadow-*: initial` comes first. `@theme` merges with Tailwind's theme rather than replacing it, so a rung we do not declare goes on resolving to a different design system's โ `shadow-xl` hardcodes `#0000001a`, pure black, with no reference to the theme at all. Deleting the namespace first means reaching for a rung we do not own draws nothing rather than something plausible. That syntax needs malva 0.16 to parse, hence the dprint plugin bump.
๐ค Generated with [Claude Code](https://claude.com/claude-code)
---
### Stack
Merge bottom-up. Each PR targets the one below it, so every diff reads in isolation; GitHub retargets the child automatically as each parent merges.
1. #9 โ Emit all theme tokens, fix callout colours, load Inter โ `main` 2. #10 โ Add two-stop shadow scale tokens 3. #11 โ Add radius tokens and replace bare rounded classes 4. #12 โ Add type scale tokens, replace arbitrary font sizes 5. #13 โ Add easing and duration tokens, set transition defaults 6. #15 โ Add one focus-visible outline rule for all controls 7. #16 โ Scale buttons down on press 8. #17 โ Add tabular-nums to figures and balance plan headings 9. #18 โ Shorten empty states and composer status copy 10. #19 โ Add entrance animation for newly arrived items
Plan: `docs/superpowers/plans/2026-08-04-design-token-foundation.md`
MaggieAppletonreferenced this in Emit all theme tokens, fix callout colours, load Inter #93 months ago on GitHub
MaggieAppletonreferenced this in Add radius tokens and replace bare rounded classes #113 months ago on GitHub
MaggieAppletonreferenced this in Add type scale tokens, replace arbitrary font sizes #123 months ago on GitHub
MaggieAppletonreferenced this in Add easing and duration tokens, set transition defaults #133 months ago on GitHub
MaggieAppletonreferenced this in Add one focus-visible outline rule for all controls #153 months ago on GitHub
MaggieAppletonreferenced this in Scale buttons down on press #163 months ago on GitHub
MaggieAppletonreferenced this in Add tabular-nums to figures and balance plan headings #173 months ago on GitHub
MaggieAppletonreferenced this in Shorten empty states and composer status copy #183 months ago on GitHub
MaggieAppletonreferenced this in Animate newly received messages and status indicators #193 months ago on GitHub
MaggieAppletonbase-ref-force-pushed3 months ago on GitHub
MaggieAppletonhead-ref-force-pushed b938c719161b3 months ago on GitHub
MaggieAppletonrenamed Cast a shadow in two stops rather than one to Add two-stop shadow scale tokens3 months ago on GitHub
MaggieAppletonbase-ref-force-pushed3 months ago on GitHub
MaggieAppletonhead-ref-force-pushed ca64f2448f3f3 months ago on GitHub
MaggieAppletonbase-ref-force-pushed3 months ago on GitHub
MaggieAppletonhead-ref-force-pushed 563ef1e89ca23 months ago on GitHub
MaggieAppletonautomatic-base-change-succeeded3 months ago on GitHub
MaggieAppletonhead-ref-force-pushed faf9aa4fe27c3 months ago on GitHub
MaggieAppletonmerged da14053f67fa3 months ago on GitHub
MaggieAppletonhead-ref-deleted3 months ago on GitHub