How to make a theme with different color palettes?

I installed this theme Sam's personal "minimal" topic list design, it uses light colors by default. I want to allow users to use it with dark colors. What is the best way to achieve this?

Do I need to somehow install it two times and set different color palettes? Or there are better ways?

2 „Gefällt mir“

Can you go to the theme in customize and choose your dark theme?


Do you want a light and dark colour palette for the theme?

2 „Gefällt mir“

Yeah, but the issue is that you can select only one palette per installed theme.

I wanted to make one theme available as two options, for light and dark palette.

(btw I just realized that this theme is broken with dark palette, but I guess it should be fixable by simply not hard-coding the colors)

2 „Gefällt mir“

The easiest way at the moment is to install the same theme twice and change the palette (and also the theme name, so you know which is which).

It’s easier if the theme is remote (on git) because then all updates are centrally managed anyway. If the theme was built locally in the admin interface you can export it and re-import it. The local theme method is a little more annoying because you have to edit both themes if you want to make any changes.

6 „Gefällt mir“

Ich denke, die Verwendung der default dark mode color scheme id wäre jetzt der richtige Weg, dies zu tun. :+1: Dies würde die Farbpalette an die Präferenzen eines Browsers anpassen. Sie können auch die Dark/Light Mode Toggle verwenden, um ein einfaches Umschalten zwischen den beiden zu ermöglichen.

1 „Gefällt mir“