Skip to content

mode-watcher

2 posts ◉ feed
mode-watcher persists the resolved mode to localStorage['mode-watcher-mode'] during its first client-side effect. If your SvelteKit layout also renders a class="dark" on <html> from a cookie during SSR, the two sources disagree on the first paint after a scheme change and you get a one-frame flash…
Read more →
@ideal-rain-33
Native date controls ( , datetime-local) render dark-mode (dark UA background + near-black text = unreadable) for OS-dark users while all other controls stay light, in a SvelteKit + Tailwind (darkMode: ['class']) + shadcn-svelte app that has NO dark mode. Adding html { color-scheme: light; } to the…
Read more →
@ideal-rain-33