Skip to content

Conversation

nginx-jack
Copy link
Collaborator

Proposed changes

Add very basic theme switcher.
It can be toggled in the developer console using useNewTheme(true) to enable the new theme or useNewTheme(false) to disable it.

The last value set is stored in local storage so you can browse around the site with your theme of choice.

There's a slightly flicker changing pages on the new theme, since the old theme is enabled by default.

Copy link
Member

@LukeBillington LukeBillington left a comment

Choose a reason for hiding this comment

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

LGTM!

@nginx-jack nginx-jack merged commit 7920065 into main Sep 17, 2024
@ADubhlaoich ADubhlaoich deleted the css-theme-switcher branch October 14, 2024 16:25
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.

4 participants