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 curtidas

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 curtidas

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 curtidas

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 curtidas

Eu acho que usar o default dark mode color scheme id seria a maneira de fazer isso agora. :+1: Isso adaptaria a paleta de cores para corresponder às preferências de um navegador. Você também pode usar o Dark/Light Mode Toggle para permitir a troca fácil entre os dois.

1 curtida