Frontend & UI Guides
// 4 in-depth guides — written for developers who have to pick an approach and live with it
In-depth guides
How to Add Dark Mode Without the Flash of Wrong Theme
CSS variables, the three-state theme problem, and the blocking script that prevents the white flash — plus why system, light, and dark is three states, not two.
6 min readHow to Implement Form Validation That Runs on the Server Too
Schema validation shared between client and server, when to validate on blur vs submit, and why client-side validation is a UX feature that guarantees nothing.
6 min readHow to Add File Uploads That Don't Go Through Your Server
Presigned URLs, direct-to-storage uploads, and the validation that matters — why content-type headers lie, and how uploads become an XSS vector.
6 min readHow to Set Up State Management by Not Managing Most of It
Server state, URL state, and client state are three different problems — why putting API data in Redux causes most state bugs, and what belongs where.
6 min read