The user DNSTARS encountered an issue with the default theme not switching properly between light and dark modes, which persisted despite logouts and rebuilds. In an attempt to fix it, they deleted the light/default theme, only to realize they couldn’t restore it. Johani responded by explaining that the light theme can be easily recreated by creating a new theme named “Light,” setting its color-scheme to “Light Scheme,” and making it the default theme Johani. DNSTARS confirmed that the solution worked and the original bug was resolved after restoring the theme DNSTARS.
Had a bug the other day where setting default theme wasn’t behaving swapping from light to dark etc, this persisted through log/out/in and a rebuild. In the end I removed the light/default theme to “fix” it thinking I could just fetch the light theme from here somewhere and I can’t see it.
Is the native theme available as a standalone somewhere that I’m missing or do I have to wait and upgrade discourse when the next main update comes along?
Deleting the Light theme is not a big problem. You can easily recreate it. The Light theme is nothing more than an empty theme set to the Light color-scheme.
So, let’s say your theme list currently looks like this
That would be all you need to do to restore the Light theme as the default theme.
b. The problem you were trying to solve when you deleted the Light theme
Are you on the latest version of Discourse?
I know you said
but there was a bug that only affected site admins where the theme set in your user-preferences - as an admin - would continue to be used even if that theme is no longer user-selectable.