Skip to content

fix: theme/language select dropdown unreadable in dark mode#23

Open
Matcry12 wants to merge 1 commit intoShipWithAI:developfrom
Matcry12:fix/theme-select-contrast
Open

fix: theme/language select dropdown unreadable in dark mode#23
Matcry12 wants to merge 1 commit intoShipWithAI:developfrom
Matcry12:fix/theme-select-contrast

Conversation

@Matcry12
Copy link
Copy Markdown

@Matcry12 Matcry12 commented Apr 10, 2026

Root cause: Our custom CSS overrides --sl-color-gray-6 to a near-transparent color, but Starlight uses that variable for dropdown backgrounds (--sl-color-bg-nav).

Fix: Set --sl-color-bg-nav to a solid background color for both dark and light themes.

What does this PR do?

Makes the Dark/Light/Auto and English/Tiếng Việt dropdown options readable in both themes.

Checklist

  • Tested locally with npm run dev
  • Content follows 7-block structure (CSS-only, no content changes)
  • Vietnamese version updated (not applicable)

Starlight's Select component uses --sl-color-bg-nav for dropdown option
backgrounds, which resolves to --sl-color-gray-6. Our design system
overrides gray-6 to a near-transparent accent color, causing dropdown
options to render as white text on white background.

Fix by explicitly setting --sl-color-bg-nav to a solid surface color
in both dark and light themes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

@Matcry12 is attempting to deploy a commit to the Ethan Nguyen's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant