An open source design system that's fully customizable and agent ready
TypeScript
fix(theme-stone): add ~10% transparency to dark-mode --color-neutral (#3120)
Ernestd1e120163249
diff --git a/.changeset/stone-neutral-dark-transparency.md b/.changeset/stone-neutral-dark-transparency.mdnew file mode 100644index 0000000000..ef1854d10e--- /dev/null+++ b/.changeset/stone-neutral-dark-transparency.md@@ -0,0 +1,9 @@+---+'@astryxdesign/theme-stone': patch+---++[fix] Stone theme: add ~10% transparency to dark-mode `--color-neutral`++The dark-mode value was a fully opaque `#f3f3f5`, unlike every other theme which uses a semi-transparent (~10% alpha) neutral tint. Because `--color-neutral` fills the secondary `Button` variant, this rendered a solid near-white surface with near-white text in dark mode (unreadable). Changed dark value to `#f3f3f51a` to match the convention used across all other themes. Fixes #3119.++@ernesttdiff --git a/packages/themes/stone/src/stoneTheme.ts b/packages/themes/stone/src/stoneTheme.tsindex 72bc35a44d..c226561ec7 100644--- a/packages/themes/stone/src/stoneTheme.ts+++ b/packages/themes/stone/src/stoneTheme.ts@@ -95,7 +95,7 @@ export const stoneTheme = defineTheme({// 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-neutral': ['#25252a0f', '#f3f3f5'], // light: Stone Neutral T15 · 6%+ '--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%