Skip to content

fix(theme-neutral): match StatusDot fills to filled Badge colors - #4047

Merged
ernestt merged 1 commit into
mainfrom
fix/statusdot-neutral-colors
Jul 17, 2026
Merged

ernestt merged 1 commit into
mainfrom
fix/statusdot-neutral-colors

Conversation

@ernestt

@ernestt ernestt commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

What

In the neutral theme, StatusDot now uses the same vivid fills as the filled semantic Badge, so a dot and its matching badge read as one status color language.

Why

StatusDot.tsx maps each variant straight to a raw semantic token:

variant token light
success --color-success #007004
warning --color-warning #745b00
error --color-error #a50c25
accent --color-accent #262626

In light mode those are the dark T30/T40 stops designed to sit as text on a pastel surface. Rendered as an 8px solid dot they read muddy — dark green, brown (not yellow), maroon, and near-black. Meanwhile the filled Badge uses vivid saturated stops.

Change

Adds a statusdot: component override to neutralTheme.ts pointing the four saturated variants at the exact Badge fills (same values the progressbar: override already reuses):

  • success → light-dark(#198100, #64af4c)
  • warning → #ffce2f
  • error → light-dark(#e33f4a, #ff705d)
  • accent → light-dark(#0074e2, #6d9cfe) (StatusDot's accent is the info/attention color, so it pairs with the info badge)

neutral is intentionally left on the component default (--color-icon-secondary, a visible mid-gray). The neutral badge bg is a near-invisible light gray that works as a pill but would disappear as a dot — and it isn't one of the "too dark" cases.

Generated CSS (.astryx-statusdot.*) verified to match .astryx-badge.* exactly; theme package builds and 285 theme/StatusDot tests pass.

@vercel

vercel Bot commented Jul 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 17, 2026 11:40pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 17, 2026
github-actions Bot added a commit that referenced this pull request Jul 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.7KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@ernestt
ernestt merged commit 0121ab3 into main Jul 17, 2026
18 checks passed
@github-actions
github-actions Bot deleted the fix/statusdot-neutral-colors branch July 18, 2026 06:42

This branch was successfully deployed

1 active deployment
Preview — e01509e8 Deployed Jul 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant