Replies: 1 comment
-
Sorry. My bug. I was missing a close brace. Sorry for being an idiot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created my own little CSS file that I include after pico-min.css. I copied the light/dark mode stuff to set a few of my own colors, like this:
Here's a short excerpt of my HTML code:
I'm trying to figure out why the text changes color as expected in dark mode, but remains black in light mode. According to the MS Edge Debug Console, I can see my not([data-theme-dark]) colors being defined, but for some reason, in light mode the "app-name" style is not being applied, but in dark mode it IS being applied. As I understood the way the --pico variables worked to adapt to the light/dark mode, I thought I duplicated that, but apparently there's a trick I missed.
Hmm... I just thought of something to check and discovered that the color doesn't change when EDGE is set to light or dark mode. However ... the color DOES change when Edge is set to use the system default. Perhaps this is actually a bug in PICO's light/dark selection logic?
Is anyone willing to help me out? Yes, I'm trying to learn CSS while doing this, so please be patient. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions