An open source design system that's fully customizable and agent ready
TypeScript
fix(theme-stone): restore dark-mode alpha for `--color-overlay-hover`/`--color-overlay-pressed`/`--color-accent-muted` (#3624)
minseon70cd22e7963f
diff --git a/.changeset/stone-overlay-muted-dark-transparency.md b/.changeset/stone-overlay-muted-dark-transparency.mdnew file mode 100644index 0000000000..4c3e60952a--- /dev/null+++ b/.changeset/stone-overlay-muted-dark-transparency.md@@ -0,0 +1,9 @@+---+'@astryxdesign/theme-stone': patch+---++[fix] Stone theme: dark-mode overlay/accent-muted tokens missing alpha (#3624)++The dark-mode values for `--color-accent-muted`, `--color-overlay-hover`, and `--color-overlay-pressed` were fully opaque `#f3f3f5`, unlike their light-mode counterparts which are semi-transparent tints. Because these tokens paint absolutely-positioned hover/press overlays and muted-accent fills, the opaque dark value covered the content underneath instead of tinting it. Changed the dark values to carry alpha suffixes following the conventions used by every other theme in the repo: overlays symmetric with light (`#f3f3f50d` hover / `#f3f3f51a` pressed, matching butter/chocolate/matcha/neutral/y2k), and accent-muted one step stronger in dark (`#f3f3f520`, matching the `14`-light/`20`-dark pattern in chocolate/matcha/y2k). Fixes #3622.++@let-sunnydiff --git a/packages/themes/stone/src/stoneTheme.ts b/packages/themes/stone/src/stoneTheme.tsindex c226561ec7..77f63138e5 100644--- a/packages/themes/stone/src/stoneTheme.ts+++ b/packages/themes/stone/src/stoneTheme.ts@@ -94,13 +94,13 @@ export const stoneTheme = defineTheme({// Core semantic — all neutrals H=291// Stone 900 T=16 C=1.4, Stone 500 T=55 C=4, Stone 300 T=86 C=1.6, Stone 100 T=96 C=1'--color-accent': ['#25252a', '#f3f3f5'], // light: Stone Neutral T15- '--color-accent-muted': ['#25252a14', '#f3f3f5'], // light: Stone Neutral T15 · 8%+ '--color-accent-muted': ['#25252a14', '#f3f3f520'], // light: Stone Neutral T15 · 8% / dark: T96 · 12.5%'--color-neutral': ['#25252a0f', '#f3f3f51a'], // light: Stone Neutral T15 · 6% / dark: T96 · 10%'--color-background-surface': ['#ffffff', '#1b1b1f'], // dark: Stone Neutral T10'--color-background-body': ['#f3f3f5', '#111015'], // dark: Stone Neutral T5'--color-overlay': ['#25252a80', '#28282a'], // light: Stone Neutral T15 · 50%- '--color-overlay-hover': ['#25252a0d', '#f3f3f5'], // light: Stone Neutral T15 · 5%- '--color-overlay-pressed': ['#25252a1a', '#f3f3f5'], // light: Stone Neutral T15 · 10%+ '--color-overlay-hover': ['#25252a0d', '#f3f3f50d'], // light: Stone Neutral T15 · 5% / dark: T96 · 5%+ '--color-overlay-pressed': ['#25252a1a', '#f3f3f51a'], // light: Stone Neutral T15 · 10% / dark: T96 · 10%'--color-background-muted': ['#e2e2e8', '#3b3b3f'], // light: Stone Neutral T90// Text — H=291