Skip to content

fix: Dark mode not persisting across page - #1798

Merged
omroy07 merged 3 commits into
omroy07:mainfrom
Aditya8369:271
May 28, 2026
Merged

fix: Dark mode not persisting across page#1798
omroy07 merged 3 commits into
omroy07:mainfrom
Aditya8369:271

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

Dark mode persistence is fixed in theme.js. The shared theme loader was saving to theme, while the rest of the app was already using agritech-theme, so page-to-page navigation lost the preference. The loader now reads agritech-theme first, migrates any legacy theme value, and writes back to the shared key on every toggle.

I validated the updated file with get_errors, and it reported no errors.

closes #271

@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 pleasemerge under NSOC

@omroy07
omroy07 merged commit 8214b8b into omroy07:main May 28, 2026
1 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dark mode not persisting across pages

2 participants