Skip to content

Fix dark theme error text contrast and the README stylesheet setup on TypeScript 6 - #389

Merged
woksin merged 4 commits into
mainfrom
fix/dark-error-contrast-and-readme-css
Oct 1, 2026
Merged

woksin merged 4 commits into
mainfrom
fix/dark-error-contrast-and-readme-css

Conversation

@woksin

@woksin woksin commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixed

  • The dark theme maps --color-error to the lighter red the field outline already uses and --color-error-bg to a deep red, so a field's validation message and Arc's command exception panel reach the WCAG AA 4.5:1 contrast on the dark surfaces instead of about 2.5:1. Every explicitly light root or subtree keeps the original red on a light background, including a light subtree under a root that is dark only because of the system setting. (Dark theme: field error text contrast is about 2.5:1 #388)
  • The README setup imports the stylesheets from a CSS entry file with @import, and documents the ambient declarations a TypeScript project needs to import them from TypeScript, so the documented setup type-checks on TypeScript 6 (TS2882). (README stylesheet side-effect imports fail tsc on TypeScript 6 (TS2882) #387)

@woksin woksin added the patch label Oct 1, 2026
@woksin woksin self-assigned this Oct 1, 2026
@woksin
woksin merged commit 04a8506 into main Oct 1, 2026
54 checks passed
@woksin
woksin deleted the fix/dark-error-contrast-and-readme-css branch October 1, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant