One thing that's not mentioned: you can also use color-mix with <i>constant</i> colors, but the percentage from a "boolean" variable (0% or 100%, depending on if you're in dark mode or light mode). In this case the colorspace is ignored.