Home Comments Thread

Implement Dark Mode with One Line of CSS | /en/2023/09/dark-mode/

giscus giscus 2y ago

Personally I do not like the dark mode. I love sharp full-black text on clean white background, which gives me the same feeling as reading on paper. Reading in the dark mode makes me feel lost in the …

https://yihui.org/en/2023/09/dark-mode/

❤️

2 Replies

crowjake crowjake 1mo ago

Nice! As you mention the colors will be inverted you can avoid this partially, by changing filter: invert(1) to filter: invert(1) hue-rotate(180deg); and the correct hue will be restored (retaining inverted brightness)

yihui yihui 1mo ago

Thank you for the tip!

Sign in to join the discussion

Sign in with GitHub