Flash-free dark mode with Tailwind CSS
A few lines of inline script prevent the annoying white flash on load when the user prefers the dark theme.
Alessandro Manias
· 1 min read
4 articles in this section
A few lines of inline script prevent the annoying white flash on load when the user prefers the dark theme.
· 1 min read
An overview of $state, $derived, $effect and $props, and how they change the way you write Svelte components.
· 1 min read
Line length, line height, contrast and hierarchy: the basics of text that is pleasant to read on any screen.
· 1 min read
Exposing the blog's content as prerendered JSON endpoints: a read-only API that needs no server at all.
· 1 min read