Native theme feature feedback, bugs, thoughts, feelings, prayers

Gamedev is now deployed with the latest theme code, you can take advantage of this now.

Our plans to support default “light/dark” user selector comes with a bunch of caveats. In particular, if you already made a bunch of “dark” customizations (like gamedev does) you are going to have to get your hands dirty.

For example:

Your current CSS customization for you dark scheme has stuff like:

.btn:hover {
    color: #3181d2;
}

We can not somehow magic :sunny: this hardcoded CSS to its light counterpart.

What you need to do to support white/light user selectable theme is:

  • Create a theme component with shared CSS between light / dark theme. (break down you existing big theme)
  • Create a new dark theme, select the current colors, common theme component and add the unique CSS
  • Repeat for light theme

What @codinghorror is describing is very powerful for new communities, but magic-ing it in to existing communities that have a large slew of CSS customization is not something we can do without enormous levels of magic.

7 Likes