Theme idea: Toggle selector for light or dark theme in header row

AI-generated summary

In a feature discussion titled ‘Theme idea: Toggle selector for light or dark theme in header row,’ EricGT expressed admiration for a simple, intuitive light/dark theme toggle he saw on Docker’s site, suggesting it would be a great beginner project for someone wanting to contribute or build their resume. He noted that while the site already supports light and dark themes, the current selector is buried in menus and should be more accessible — ideally in the header. Daniela (referred to as ‘dax’ in the thread) quickly pointed out that a suitable theme component already exists, linking to two relevant topics: Theme Switcher Component and Dark Mode Automatic Theme Switcher. EricGT praised the find, admitting he hadn’t known such a component existed and had never encountered it in his searches. Daniela explained she found it using Discourse’s search function with the query theme dark light, and EricGT added that he hadn’t realized tags like #theme could be used effectively in searches. The thread concludes with EricGT acknowledging the solution and thanking Daniela for the quick, helpful find.

I was just at the Docker site and saw this on the right

image

It is obviously a theme selector for light or dark but it is so intuitive and simple I want it.

I don’t have time to do the theme but if someone wants to cut their teeth on a simple one and get noticed here is your chance. Would also look good on a resume.

Most of the work is already done. On our site with a Light and Dark theme already created the selection is there but is a few clicks away. It would be nicer near the top right or something; always at the ready. :grinning:


EDIT

Daniela found exactly what I wanted, so no need to create this.

Great work Daniela. :grinning:

1 Like

We have already theme components to switch between light and dark mode

9 Likes

:white_check_mark: You hit the nail on the head.

How did you find this?

I have looked for many themes and never saw that one, if I had I would have snagged it on the spot.

1 Like

Using our powerful search function, Search results for 'theme dark light' - Discourse Meta

7 Likes

Thanks.

I did not know the tags could be used, i.e. #customization:theme in #customization:theme dark light

2 Likes