An open source design system that's fully customizable and agent ready
TypeScript
fix(theme-stone): restore dark-mode alpha for --color-overlay/--color-border/--color-shadow (#3626)
minseon847e3fd547dc
diff --git a/.changeset/stone-theme-restore-dark-mode-alpha-for-overlay--khgp.md b/.changeset/stone-theme-restore-dark-mode-alpha-for-overlay--khgp.mdnew file mode 100644index 0000000000..21e53ab430--- /dev/null+++ b/.changeset/stone-theme-restore-dark-mode-alpha-for-overlay--khgp.md@@ -0,0 +1,9 @@+---+'@astryxdesign/theme-stone': patch+---++[fix] Stone theme: restore dark-mode alpha for overlay/border/shadow tokens (#3626)++The dark-mode values for `--color-overlay`, `--color-border`, and `--color-shadow` were fully opaque (`#28282a`, `#f3f3f5`, `#000000`), unlike their light-mode counterparts and their own original pre-regression values, which are semi-transparent tints. An opaque overlay hides the page behind a solid block instead of a translucent scrim, an opaque border paints a solid near-white line instead of a subtle hairline, and an opaque shadow has no falloff. Restored the exact values from Stone's introduction (30e9d122f, #2020), stripped by a later tooling pass (e2892c0ad, #2173): `--color-overlay` to `#28282acc` (80%), `--color-border` to `#f3f3f51a` (T96 · 10%), and `--color-shadow` to `#0000004d` (30%). Fixes #3625.++@let-sunnydiff --git a/packages/themes/stone/src/stoneTheme.ts b/packages/themes/stone/src/stoneTheme.tsindex 77f63138e5..199e75c1a2 100644--- a/packages/themes/stone/src/stoneTheme.ts+++ b/packages/themes/stone/src/stoneTheme.ts@@ -98,7 +98,7 @@ export const stoneTheme = defineTheme({'--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': ['#25252a80', '#28282acc'], // light: Stone Neutral T15 · 50% / dark: 80%'--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@@ -136,12 +136,12 @@ export const stoneTheme = defineTheme({'--color-warning-muted': ['#f4e1b7', '#d7c59c'], // Yellow T90 / T80// Border — H=291- '--color-border': ['#e2e2e8', '#f3f3f5'], // light: Stone Neutral T90+ '--color-border': ['#e2e2e8', '#f3f3f51a'], // light: Stone Neutral T90 / dark: T96 · 10%'--color-border-emphasized': ['#83838a', '#5e5e61'], // T55 C=4 / T40 C=2// Effects — H=291'--color-skeleton': ['#d4d4da', '#5e5e64'], // T85 / T40 from H=291 C=3- '--color-shadow': ['#25252a1a', '#000000'], // light: Stone Neutral T15 · 10%+ '--color-shadow': ['#25252a1a', '#0000004d'], // light: Stone Neutral T15 · 10% / dark: 30%'--color-tint-hover': ['black', 'white'],// Typography override