Skip to content

Conversation

@ayush00git
Copy link
Contributor

Fixes: #1977

Changes:

  1. Removed the desktop rule that hid .react-toggle in website/src/css/customTheme.scss, so the theme switch is now visible in the navbar on all pages.

  2. Removed ThemeResetComponent from website/src/pages/index.tsx, which previously forced light mode and manually hid the toggle via DOM queries. The component was forcing light theme whenever the home page was being opened.

Result:
The color mode switch now appears and works consistently across the whole website, matching the behavior of the Blog and Case Studies page.

Screenshots of the change:

image Screenshot From 2025-12-17 13-53-41

@ayush00git
Copy link
Contributor Author

Hey @yzeng25 can you please review the PR, and please let me know if there are any changes.

@ayush00git
Copy link
Contributor Author

Hey @SkyeYoung @Baoyuantop
Can you please review this PR.

@yzeng25
Copy link
Contributor

yzeng25 commented Dec 24, 2025

Hey @yzeng25 can you please review the PR, and please let me know if there are any changes.

@ayush00git these 2 files are last modified by @guoqqqi and @LiteSun in #1866 and #1894 , suggest asking them to take a look.

@ayush00git
Copy link
Contributor Author

Hey @guoqqqi @LiteSun
Please review this PR.

@ayush00git
Copy link
Contributor Author

Hey @guoqqqi @LiteSun
Could you please take a look into this PR.
waiting for your response...

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.

[Site]: Missing theme toggle switch on website pages

2 participants