postcss-dark-theme-class icon indicating copy to clipboard operation
postcss-dark-theme-class copied to clipboard

PostCSS plugin to make dark/light theme switcher by copying styles from media query to special class

Results 4 postcss-dark-theme-class issues
Sort by recently updated
recently updated
newest added

input: ```css /* no theme */ :root { --bgColor: red; } /* light theme */ @media (prefers-color-scheme: light) { :root { --bgColor: yellow; } } /* dark theme */ @media...

I don't know what's happening but it seems like there is duplicate selector being made. I guess to check for the pre-processed style is not there. ![Screenshot 2020-02-01 at 1...

Hi, I just wanted to suggest adding a flag to the config to discard the original syntax, avoiding code duplication in the CSS output. This would help keeping the output...

Hi, This is a very subjective matter, but I wanted to suggest you for the sake of simplicity, to just use a negated `:not(.is-dark)` selector as the default `lightSelector`. Even,...