I'm trying to build an app with light and dark mode. The css looks like this:
.light-mode li,
p,
input,
time,
span,
a {
color: var(--bravo);
}
.dark-mode li,
p,
input,
time,
span,
a {
color: var(--bravoDark);
}
I don't understand as even when .light-mode class is applied the .dark-mode styles are still applied.
The classes .dark-mode and .light-mode are given to a wrapping div element.