Repository navigation
fix(theme-neutral): express light --color-border as translucent #00000014 - #4342
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
|
@rubyycheung This change uses opacity |
|
@kentonquatman I noticed internally we used 10%, is there a reason 14% was chosen? |
What
Update the neutral theme's light-mode
--color-borderfrom the opaque#ebebebto its 8-digit translucent equivalent#00000014.Why
#00000014composited over a white surface resolves to exactly#ebebeb, so there is no visual change on the default light background. Expressing it as translucent black instead makes the border blend over any background color, and mirrors the dark-mode value which is already translucent white (#FFFFFF1A).Changes
packages/themes/neutral/src/neutralTheme.ts— the theme source token.packages/cli/templates/themes/neutral/neutralTheme.ts— the committed CLI template copy, kept in sync soastryx theme add neutralscaffolds the same value.Verification
pnpm -F @astryxdesign/theme-neutral build— passes; builttheme.cssemits--color-border: light-dark(#00000014, #FFFFFF1A).