Standaard thema's (donker en licht) om te installeren vanuit pakket

AI-generated summary

Users discuss how to restore or install default Light and Dark themes in Discourse, especially for older sites that predate the current theme system. maiki initially struggled to locate the themes, referencing an outdated Meta thread. awesomerobot clarifies that Light and Dark themes are essentially blank themes with predefined color palettes — the Light palette is always available, while the Dark palette’s colors are provided in full. They also suggest re-running the site wizard’s color step (though this may affect the default theme). maiki confirms the solution worked after realizing the UI changed — the “Install” button now opens a modal with the “New Theme” option, which wasn’t obvious from older screenshots. markersocial offers an alternative: export themes from a newer Discourse instance and import them via “Install from your device” — a method they successfully tested. Dmitry_Krasnoperov expresses appreciation for the helpful solutions. The thread serves as a practical guide for users missing default themes due to legacy setups.

The closest prior art I can find is at Restore default light theme after deleting it - #2 by Johani, but I think it’s old enough to not apply any longer.

I can’t be sure, but I think my site predates the current theme system, and used to have a single theme, and it was Sam’s Simple theme at the time, and then things got standardized and the short of it is I don’t have a Light or Dark theme, so are those in a repo somewhere I can grab and install? :slight_smile:

You should be able to create a new theme (via the install button on admin > customize > themes) call it “Light” and select the light color scheme from the theme’s Color Palette dropdown.

The light/dark themes don’t have any custom styles, they’re just blank themes with a color palette selected.

The Light color palette is always available as the default option, but if you need to recreate the dark palette the colors are:

"Dark": {
  "primary": "dddddd",
  "secondary": "222222",
  "tertiary": "0f82af",
  "quaternary": "c14924",
  "header_background": "111111",
  "header_primary": "dddddd",
  "highlight": "a87137",
  "danger": "e45735",
  "success": "1ca551",
  "love": "fa6c8d"
}

Alternatively, you can re-run the color step in the wizard to create the themes (discourse.examplesite.com/wizard/steps/colors)… just note that this also changes the default theme (which you can change back via the admin panel of course, but depending on how active your site is you might not want to suddenly change the default for everyone).

Thanks! It was this reiteration that made it click. The difference from the screenshot in that older thread:

The UI has changed, so the new theme creation button is in the modal from pressing “Install”:

I thought I had themed myself into a page without that new theme button! :sweat_smile:

Thanks! :slight_smile:

For anyone else that wants to get the newer themes, here is another solution. If you have another instance that has the new themes, you can export them from the admin ui. Just go to the theme and click export. Then upload them to your old forum using install → from your device. Just did it now and it worked well. :+1:

Can’t be happier :green_heart: