Installing a new theme permanently deletes custom color palettes

AI-generated summary

A user reports a bug where installing a new theme permanently deletes custom color palettes in Discourse. Canapin explains that after installing the Dracula theme, their custom palettes (Monocycle Jour and Monocycle Nuit) were removed, and the forum reverted to the default Light theme. They confirm the issue by providing screenshots and a video demonstrating the problem. DevTeVe and Lilly corroborate the issue, with kris.kotlarek confirming it was fixed in a recent update. DevTeVe celebrates the fix.

Hi,

Weird behavior here.
Here’s how my forum usually looks :

I have a custom light palette named Monocycle Jour, and a dark one named Monocycle Nuit.

I installed the Dracula theme via the Install button from the admin interface, and my custom palettes were gone. I didn’t even activate the Dracula theme.

My forum now uses the default Light theme:

And the custom palettes don’t appear in the color palettes page, or my theme palette selection anymore:

There’s nothing in the logs and staff action logs as well.

Opening the palette using their ID like https://forum.monocycle.info/admin/config/colors/3 returns no palette.

Discourse version is 3.6.0.beta2-latest(398e04181f).

How did this happen? :sob:

And is there a way to get my colors back? By chance I still had my light theme open in another tab so I could get back the light colors through the browser’s dev tools, but not for the dark scheme.
edit: I could probably get the colors back from a backup, but I wish there was an easier way, I won’t bother doing it this like that :face_with_tongue:

6 Likes

Moving to Contribute > Bug as I could repro the issue.

As soon as I install the theme, my custom color palettes are permanently deleted.

3.6.0.beta3-latest (64299555ad)

1 Like

I thought I was going crazy! Thanks for reporting it hahah

1 Like

Glad to hear I’m not the only one experiencing this!

thanks for reporting @Canapin I can totally repro this and it broke my site LOL. Will get someone from team to have a look ASAP.

4 Likes

Thank you for reporting this bug. It was fixed in this PR:

https://github.com/discourse/discourse/pull/35754

5 Likes

Heck yeahhh!!! hahahah Updating right now! Thank you :heart:

3 Likes

This topic was automatically closed after 4 days. New replies are no longer allowed.