- Using CSS :has() instead of JS in an accessible system/light/dark theme build https://www.smashingmagazine.com/2024/03/setting-persisting-color-scheme-preferences-css-javascript/ 6 comments frontend
Linking pages
Linked pages
- prefers-reduced-motion - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion 17 comments
- A Complete Guide to Dark Mode on the Web | CSS-Tricks - CSS-Tricks https://css-tricks.com/a-complete-guide-to-dark-mode-on-the-web/ 14 comments
- prefers-color-scheme - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme 12 comments
- CSS Nesting | Can I use... Support tables for HTML5, CSS3, etc https://caniuse.com/css-nesting 3 comments
- :has() - CSS: Cascading Style Sheets | MDN https://developer.mozilla.org/en-US/docs/Web/CSS/:has 2 comments
- Flash of inAccurate coloR Theme (FART) | CSS-Tricks - CSS-Tricks https://css-tricks.com/flash-of-inaccurate-color-theme-fart/ 1 comment
- :has() CSS relational pseudo-class | Can I use... Support tables for HTML5, CSS3, etc https://caniuse.com/css-has 0 comments
Related searches:
Search whole site: site:www.smashingmagazine.com
Search title: Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript — Smashing Magazine
See how to search.