Color palette settings are not being reflected

AI-generated summary

A user is experiencing an issue where color palette settings in a custom Discourse theme are not being reflected, showing default colors instead. The theme, named Flexoki, is correctly selected, but the colors are not applied. Other users suggest checking theme and profile settings, but the issue persists. A key insight from Heliosurge is that the color palette in the about.json file appears to be a copy of the default light theme. bloomexperiment identifies the root cause: the hexadecimal color values in the file include # symbols, which Discourse does not recognize. According to the official Discourse guide, color values should be written without the #, as shown in the example. mk0r confirms this is likely the solution and will test it.

I have a new discourse installation and created scaffolding for a new theme. First thing was I edited the color scheme to use a scheme called Flexoki. You can see here:

I’ve added and selected the theme via GitHub on my discourse instance but none of the color settings are reflected, instead I just see the default colors listed, for both Flexoki Light and Dark. Any help troubleshooting?

Yep so there’s a few things to check first:

  1. Make sure your theme has that particular color palette selected:

  1. If that setting is correct but it’s still showing the wrong color palette, make sure that your profile settings doesn’t have the wrong color palette selected:

thanks, neither of those are the issue. As the screenshot shows, the ui is showing the flexoki theme as being just the default discourse colors. somehow the palette is not being interpreted at all

I might be seeing things. But moving back and forth it looks like the color palette you uploaded is a copy of light

Goto Customization > Theme and select something with a different looking palette and try switching to that color palette.

Ah, I see what you mean now. So Discourse is not reading these colors:

"color_schemes": {
    "Flexoki Light": {
      "primary": "#100F0F",
      "secondary": "#FFFCF0",
      "tertiary": "#205EA6",
      "quaternary": "#AF3029",
      "header_background": "#F2F0E5",
      "header_primary": "#6F6E69",
      "highlight": "#ECCB60",
      "danger": "#AF3029",

The issue is above – it’s not using the colors listed in the file^^

Is there maybe an issue then with the file layout? Causing it to defaults?

It might be best to simply create a new color palette within Discourse entering these values rather than importing the theme.git

I looked at the syntax of the file. In my previous color palette scheme, it doesn’t have # in each hexadecimal string.

If you change each of the hexadecimal strings to not have # at the start, I think it might parse correctly.

This is also the case in the example guide for Discourse color schemes:

{
   "name" : "Solarized",
   "about_url" : "https://github.com/SamSaffron/discourse-solarized",
   "license_url": "https://github.com/SamSaffron/discourse-solarized/blob/master/LICENSE",
   "color_schemes": {
      "Solarized Light": {
        "primary": "586E75",
        "secondary": "EEE8D5",
        "tertiary": "268BD2",
        "quaternary": "CB4B16",
        "header_background": "002B36",
        "header_primary": "93A1A1",
        "highlight": "B58900",
        "danger": "CB4B16",
        "success": "859900",
        "love": "DC322F"
      }
   }
}

ah!! thank you! will try this fix shortly, seems like the sure answer.