Nacho_Caballero is trying to change the CSS color for a single theme palette. They have a theme “Nacho” with two palettes: “Clara” (Light) and “Oscura” (Dark), and want to make corrections to the dark palette without affecting the light palette. Johani suggests using SCSS functions to check the color palette and apply CSS accordingly.
Nacho_Caballero uses the dark-light-choose($light, $dark) function, but it doesn’t detect the change of palette. They provide screenshots and CSS examples to illustrate the issue. After further research, Nacho_Caballero finds a solution to their problem in a meta.discourse.org thread.
I currently have a single theme with two palettes (one light, one dark). I’m 90% happy with the dark palette, but in some cases I’d like to make corrections.
For example, there isn’t enough contrast between the background and the foreground colors for whispers in the dark palette:
Thanks for pointing that out, @Johani. It looks like the dark-light-choose($light, $dark) function does exactly what I want, but my problem now is that it’s not detecting the change of palette.
My only active theme is called “Nacho” and it has two palettes: “Clara” (Light) and “Oscura” (Dark):
So it looks like the change to the dark palette is not being detected. I can see that is-light-color-scheme looks at the brightness of $primary and $secondary. Here is my dark palette: