FEATURE: Allow themes to override color transformation variables (PR #7987)

Theme developers can now add any of the transformed color variables to their color scheme in about.json. For example

  "color_schemes": {
    "Light": {
      "primary": "333333",
      "secondary": "ffffff",
      "primary-low": "ff0000"
    }
  },

would override the primary-low variable when compiling SCSS for the color scheme. The primary-low variable will also be visible in administrator color palette UI.

GitHub

You’ve signed the CLA, davidtaylorhq. Thank you! This pull request is ready for review.

          color_scheme_color ||= scheme.color_scheme_colors.build(name: variable_name)
          color_scheme_color ||= scheme.color_scheme_colors.build(name: variable_name)

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/help-changing-color-of-buttons/126580/2