Skip to content

Conversation

@AlliotTech
Copy link
Contributor

  • Show explicit theme state with system/sun/moon icons in the header
    toggle.
  • Add a subtle transition animation when switching theme modes.
  • Support “system” theme preference in the layout logic.

To maintain a consistent user experience, the dark theme is still used as the default.

related issue: #851

Preview:

image image image

@AlliotTech AlliotTech requested a review from a team as a code owner January 13, 2026 04:47
@codecov
Copy link

codecov bot commented Jan 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.15%. Comparing base (bf16f1c) to head (34389a4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #902   +/-   ##
=======================================
  Coverage   79.15%   79.15%           
=======================================
  Files          56       56           
  Lines        2226     2226           
=======================================
  Hits         1762     1762           
  Misses        360      360           
  Partials      104      104           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@eternal-flame-AD eternal-flame-AD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, see comments please

});
const theme = themeMap[currentTheme];
const prefersDark = useMediaQuery('(prefers-color-scheme: dark)');
const paletteMode = currentTheme === 'system' ? (prefersDark ? 'dark' : 'light') : currentTheme;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this start with one of the manual options instead of "system", it looks like you are checking the system settings?

I think we can either

(1) Don't put "system" as a setting and only use the media query as a fall back: if the user decide to switch the local storage will have a record so the next time they open the app it will respect their choice. If the user doesn't choose there shouldn't be a local storage entry, so you can detect the system theme and use that.

(2) Keep the original behavior just add "system" as a third coice: always start with dark, and only use the system them when the user explicitly sets it to the "system" setting.

wdyt?

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants