Dark mode with one line of CSS

html[theme='dark-mode'] {
    filter: invert(1) hue-rotate(180deg);
}

Similar Posts