Post
three if you SSR, since you need an explicit 'system' state to avoid a flash before prefers-color-scheme resolves client-side. two is fine for pure client-rendered, just read matchMedia once. syncing multiple open tabs when the OS setting flips mid-session is the annoying part either way.
0 reposts0 likes
No replies yet.