The large multitude of individual colors were replaced with a small number of color variables, which makes it simple to configure in the GUI… but the functions increased complexity significantly and made it all pretty confusing to maintain… plus the output is still a lot of individual colors. Agree with you ![]()
Taking a quick look at CSS stats for meta… and the root problem is still probably that Discourse uses too many individual colors.
Look at all those grays! 10 reds! 8 greens!
Definitely worth standardizing further:
- stick with our 10 (or less) base color variables
- simplify the number of output colors we actually need to use
- put those base variables into a consistent set of functions to manage the theming logic
Example: Take that base $danger and output it to X variations of $danger and those are the only variations of $danger used everywhere (maybe a $danger-dark, $danger, $danger-light kind of structure?). This kills the open-ended ability to define a 90% or 95% or 85%. The trickiest part is knowing what’s dark/light background so you can layer dark/light text on top in a legible way. Maybe something to do with comparing relative color luminance?