githubnext/chopinPublic

Let's compose rich plans together

Add two-stop shadow scale tokens #10

MergedMaggieAppletonmerged 1 commit intomainfromrefs/pull/10/head
  1. 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`

  2. MaggieAppletonreferenced this in Emit all theme tokens, fix callout colours, load Inter #93 months ago on GitHub

  3. MaggieAppletonreferenced this in Add radius tokens and replace bare rounded classes #113 months ago on GitHub

  4. MaggieAppletonreferenced this in Add type scale tokens, replace arbitrary font sizes #123 months ago on GitHub

  5. MaggieAppletonreferenced this in Add easing and duration tokens, set transition defaults #133 months ago on GitHub

  6. MaggieAppletonreferenced this in Add one focus-visible outline rule for all controls #153 months ago on GitHub

  7. MaggieAppletonreferenced this in Scale buttons down on press #163 months ago on GitHub

  8. MaggieAppletonreferenced this in Add tabular-nums to figures and balance plan headings #173 months ago on GitHub

  9. MaggieAppletonreferenced this in Shorten empty states and composer status copy #183 months ago on GitHub

  10. MaggieAppletonreferenced this in Animate newly received messages and status indicators #193 months ago on GitHub

  11. MaggieAppletonbase-ref-force-pushed3 months ago on GitHub

  12. MaggieAppletonhead-ref-force-pushed b938c719161b3 months ago on GitHub

  13. MaggieAppletonrenamed Cast a shadow in two stops rather than one to Add two-stop shadow scale tokens3 months ago on GitHub

  14. MaggieAppletonbase-ref-force-pushed3 months ago on GitHub

  15. MaggieAppletonhead-ref-force-pushed ca64f2448f3f3 months ago on GitHub

  16. MaggieAppletonbase-ref-force-pushed3 months ago on GitHub

  17. MaggieAppletonhead-ref-force-pushed 563ef1e89ca23 months ago on GitHub

  18. MaggieAppletonautomatic-base-change-succeeded3 months ago on GitHub

  19. MaggieAppletonhead-ref-force-pushed faf9aa4fe27c3 months ago on GitHub

  20. MaggieAppletonmerged da14053f67fa3 months ago on GitHub

  21. MaggieAppletonclosed3 months ago on GitHub

  22. MaggieAppletonhead-ref-deleted3 months ago on GitHub