Watch
0
0
Fork
You've already forked hyperhive
0

frontend: one tone vocabulary for badges, hints, banners and toasts

Part of the unification order in the UI sweep issue (step b).

A badge named its tones positive/warning/negative, a hint muted/warn/error/ok,
a banner info/warning/error and a toast info/ok/error. They now all take the
shared Tone: neutral, info, ok, warn, error (a badge adds accent for a selected
choice). Warn is amber everywhere (a hint used yellow), info is cyan everywhere
(a toast used purple). A test pins the list against each component's CSS.
This commit is contained in:
iris 2026-11-25 21:43:23 +01:00
commit 25965341e0

View file

@ -42,6 +42,7 @@
"./warn-banner.css": "./src/warn-banner/WarnBanner.css",
"./icon-button.js": "./src/icon-button/IconButton.tsx",
"./icon-button.css": "./src/icon-button/IconButton.css",
"./tone.js": "./src/tone.ts",
"./badge.js": "./src/badge/Badge.tsx",
"./badge.css": "./src/badge/Badge.css",
"./button.css": "./src/button/Button.css",