Files
buzz/desktop-new
morgmart 16b8dd3464 desktop-new: document the decision path from context to token
A shared role that fails in a real context is a defect in the shared decision,
not a reason to name a nearby ramp step locally. The specimen frames exposed
this with border-primary: neutral-4 was visible enough in light mode and 1.08:1
against a dark panel. The first response bypassed it with neutral-6 just for the
documentation. The correct response was to measure every reader, repair the role
to neutral-4 light / neutral-6 dark, and return every caller to the same role.

DESIGN.md now gives the complete decision order: use a component first; add a
variant if the background changes; choose a surface by its spatial job; use the
shared boundary role; choose ramp steps directly for a hue decision; add a
proposed role only when one step cannot express both modes; and stop and ask
rather than making a local exception. It also records why the border uses two
different steps and why neutral-5 could not be the one-step dark adjustment.

Signed-off-by: Morgan Martin <morganmartin@squareup.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
2026-09-07 17:10:36 -07:00
..