Skip to content

fix(theme-neutral): express light --color-border as translucent #00000014 - #4342

Merged
kentonquatman merged 1 commit into
mainfrom
fix/neutral-border-color-alpha
Jul 27, 2026
Merged

kentonquatman merged 1 commit into
mainfrom
fix/neutral-border-color-alpha

Conversation

@kentonquatman

Copy link
Copy Markdown
Contributor

What

Update the neutral theme's light-mode --color-border from the opaque #ebebeb to its 8-digit translucent equivalent #00000014.

Why

#00000014 composited 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 so astryx theme add neutral scaffolds the same value.

Verification

  • pnpm -F @astryxdesign/theme-neutral build — passes; built theme.css emits --color-border: light-dark(#00000014, #FFFFFF1A).
  • Lint clean on the changed files.
  • No test hardcodes the previous value.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 26, 2026
@vercel

vercel Bot commented Jul 26, 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 26, 2026 2:12am

Request Review

@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

@kentonquatman

Copy link
Copy Markdown
Contributor Author

@rubyycheung This change uses opacity --color-border on light mode, which mirrors how the border color works on dark mode. The new value is visually identical over a white background and keeps contrast when applied over other background colors. Let me know if this works for the neutral theme.

@rubyycheung

Copy link
Copy Markdown
Contributor

@kentonquatman I noticed internally we used 10%, is there a reason 14% was chosen?

@kentonquatman
kentonquatman merged commit cf9624c into main Jul 27, 2026
26 of 27 checks passed
@kentonquatman
kentonquatman deleted the fix/neutral-border-color-alpha branch July 27, 2026 18:23

This branch was successfully deployed

1 active deployment
Preview — 00a8cb5d Deployed Jul 26, 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.

2 participants