Skip to content

fix: restore theme toggle and dark mode support across the app#418

Open
YagUber wants to merge 6 commits intocedya77:devfrom
YagUber:fix/theme-toggle
Open

fix: restore theme toggle and dark mode support across the app#418
YagUber wants to merge 6 commits intocedya77:devfrom
YagUber:fix/theme-toggle

Conversation

@YagUber
Copy link
Copy Markdown
Contributor

@YagUber YagUber commented Apr 11, 2026

Summary

The app was permanently locked in dark mode due to a hardcoded dark class on the root div, making the theme toggle have no visible effect.

This PR fixes that and addresses several follow up theming issues across the app.

Changes

  • Removes hardcoded dark class from App.tsx that was locking the UI in dark mode permanently.

  • Fixes defaultTheme to "system" so first time visitors get their OS preference instead of always dark.

  • Applies color-scheme CSS property dynamically and adds <meta name="color-scheme"> to index.html so native browser elements render correctly in both themes.

  • Replaces hardcoded bg-*-50 backgrounds in dashboard cards with opacity-based equivalents (e.g. bg-blue-500/10) so they adapt to both themes.

  • Adds a success badge variant to the Badge component for consistent green "healthy" status indicators across the UI.

  • Refactors Provider Status badges to use the existing statusConfig object from System Health, sharing dot/badge/label styles across both cards.

  • Fixes Smart Fallback alert contrast in light mode.

YagUber added 6 commits April 10, 2026 19:47
The static dark class on the root div prevented ThemeProvider from dynamically applying themes, locking the UI in dark mode permanently.
Default theme falls back to system preference via prefers-color-scheme instead of hardcoded dark.

- Apply color-scheme CSS property and meta color-scheme tag to inform the browser of supported themes
Previously defaulted to white on both light and dark themes.
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