Sorry for the broad subject but I’ve been puzzling over this and I cannot find an appropriate tutorial or even explanation.
Whenever I need to change a color anywhere on Discourse, I follow this path:
- Is the color managed by a theme component? If not,
- Does it seem to be managed by /admin/customize/colors? If not,
- Open dev tools and try to find the matching CSS
But then I’m lost because I find things like var(--primary-low) and I have no idea where these are defined, though they look related to the notion of primary color in /admin/customize/colors. So:
- How are these var()things defined?
- What is the recommended way to modify them consistently?

 for confirming if you want)
 for confirming if you want)