CSS quick dark theme/mode
Last update
2022-06-02
2022-06-02
« — »
1 2 3 4 5 | html[theme='dark-mode'], html[theme='dark-mode'] img { filter: invert(100%) hue-rotate(180deg); transition: color 300ms, background-color 300ms; /* smooth transition */ } |
Source: dev.to