User avatar
Stef Walter @stephaniewalter@front-end.social
2y
Brandur wrote a really nice tutorial on how to implement a dark mode, that uses prefers-reduced-motion and some local storage, plus some JavaScript to make a tri-state toggle to keep user preferences between always light, always dark, and follow device theme. Here you go: brandur.org/fragments/dark-mode-notes

Love it, especially since some of you asked for one, when I wrote Dark mode & accessibility myth (
stephaniewalter.design/blog/dark-mode-accessibility-myth-debunked/) and explained it’s good practice to let user chose between dark and light mode.
1
1
0
0
User avatar
Océane @oceane@peculiar.florist
2y
@stephaniewalter I love your style so much I've kept reading this post in English 😄
0
0
0
0