Having a hard time with themes

AI-generated summary

alltiagocom is struggling to set up a Light theme after importing a duplicate of the default Dark theme. Despite changing the color palette to Light and setting it as default, the site remains dark. They also can’t see the theme toggle in the sidebar. dax suggests checking the site setting Default dark mode color scheme ID, which may override user preferences if the device is set to dark mode — though alltiagocom confirms this setting is not enabled on their site. dax clarifies that the sidebar theme toggle is not a core feature and requires installing the Sidebar Theme Toggle theme component. alltiagocom questions whether exporting/importing is the best way to duplicate a theme, suspecting it may cause issues, and notes that previewing new themes works but not the imported one. They later report the toggle component isn’t working and link to a follow-up post for further help 7.

I would assume this would be a simple task, but it’s not.
So when I installed Discourse, I only had the Dark theme. I want to have a Light theme, so I just exported the dark theme and then imported it (I believe that having a Duplicate button would make this easier and faster).

When I import it, even when I change the color palette to Light (Default), it’s still dark when I set the Light theme as the default, even after refreshing the page. I choose that users can change the theme, but there’s no option in the sidebar to change it.


Am I missing something here?

Is your device/browser set to dark? Because if the system is configured to dark and you have configured the setting Default dark mode color scheme ID, the light theme will be overridden by the system preferences and the dark scheme will be applied

Where do I check this?

I have my device set to dark, but for example I am able to change to light here on the Discourse forum.

And why can’t I see the dropdown to change the theme in the sidebar?

Your site settings.

That setting is not enabled on Meta

Because you need to install the proper theme component, Sidebar Theme Toggle

Mine either

For example, I installed a new theme, and when I click the Preview button, I am able to see the new theme, but when I try the same with the theme I imported, it doesn’t change.

Is the Export > Import workflow the best way to duplicate a theme? Because maybe something is affecting it?

I thought that was a core feature. Thank you

This is not working for me. Created a new post here, if you don’t mind checking?