Skip to content

Add signal-color variants to Badge, rename destructive to danger - #172

Merged
oharsta merged 2 commits into
mainfrom
feature/badge-colors
Sep 10, 2026
Merged

oharsta merged 2 commits into
mainfrom
feature/badge-colors

Conversation

@oharsta

@oharsta oharsta commented Sep 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Mirrors the Alert component's signal-color work: info/success/warning/danger variants added to Badge, styled as a subtle tint (bg-<name>-subtle / text-<name>-subtle-foreground), per the Figma Badge spec (node 29163:153619, "Subtle=True" state).
  • destructive is renamed to danger for naming parity with Alert's earlier rename.
  • Existing variants not in the Figma spec (secondary, outline, ghost, link) are left untouched, per instruction.
  • Includes an unrelated small Figma token resync (border-subtle opacity 0.08 → 0.06 across several brand themes) that was already on this branch.
  • Added a minor changeset for @surfnet/curve-react, @surfnet/curve-angular, @surfnet/curve-contracts.

Test plan

  • pnpm lint / pnpm build pass in both packages.
  • Verified visually in both Storybooks (Variants, Status List stories) — colors match the Figma spec exactly, in both React and Angular.
  • No client/ usages of Badge's destructive variant found (repo-wide grep), so no consumer follow-up needed

@oharsta
oharsta marked this pull request as draft September 10, 2026 09:45
@oharsta oharsta self-assigned this Sep 10, 2026
Mirrors the Alert component's signal-color work: info/success/warning/
danger variants styled as a subtle tint (bg-<name>-subtle /
text-<name>-subtle-foreground), per the Figma Badge spec
(node 29163:153619). destructive is renamed to danger for naming
parity with Alert; other existing variants (secondary/outline/ghost/
link) are untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@oharsta oharsta changed the title Synced Figma variables Add signal-color variants to Badge, rename destructive to danger Sep 10, 2026
@oharsta
oharsta marked this pull request as ready for review September 10, 2026 12:25
@oharsta
oharsta merged commit 03b9a96 into main Sep 10, 2026
1 check passed
@oharsta
oharsta deleted the feature/badge-colors branch September 10, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant