Why we shipped this site dark-first
Most agency sites default to light mode and awkwardly bolt on a dark variant. We did it the other way around — and it changed how we pick colors, typography, and motion.

codewithali.com — homepage
When we rebuilt codewithali.com we made a small decision that ended up shaping everything: dark mode is the default, and light mode is the toggle. Here is what changed downstream.
A palette that listens instead of shouts
Going dark-first pushed us to pick one hero color, not three. We landed on a high-clarity red (#C8102E) with a single gold accent (#D4AF37) used only where we want the eye to stop. Black carries most of the weight.
Type had to breathe more than we expected
On dark backgrounds, every typographic sin gets louder. Thin weights shimmer. Tracking that reads fine at 16px in light mode falls apart in dark. We moved one weight heavier across the board, nudged letter-spacing on display sizes, and started treating italics like a feature instead of a decoration.
- Display sizes run a little heavier, with tracking pulled in ~1%.
- Body copy stays at a mid-weight, but we raised contrast past WCAG AA comfortably.
- Red italic is our one emphatic move — we use it sparingly.
Motion that fades, not bounces
Dark interfaces amplify motion. A bouncy spring that feels playful on white reads as twitchy on near-black. We stripped most spring animations out and leaned into 220-320ms ease-out fades and slides. Calmer, and lets the content do the talking.
<motion.div
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.28, ease: [0.2, 0.8, 0.2, 1] }}
/>What we did not do
We did not add a neon gradient. We did not add a glassy backdrop blur to the nav. We did not add a particle system on the hero. Dark-first made all of those feel like costumes — and once you notice the costume, you notice every other part that is pretending.
Thinking about a rebuild?
Tell us where your site is today and where you want it to go. We will sketch a path back.
Start a projectRelated posts

A ten-layer spam defense for a contact form
A walkthrough of how we hardened our own contact form against bots, keyboard-mashers, and the increasingly creative LLM-generated junk hitting agency inboxes.

Welcome to the Studio — what this blog is, and what it is not
A short note on why we started writing again, the cadence we are committing to, and the four things you can expect to find here.

How we scope a build in one call
An inside look at the intake call we run with every new client — what we ask, what we deliberately do not ask, and the one-pager we send 24 hours later.
One studio dispatch. Every month.
What we shipped, what we read, and what we argued about. Zero filler, zero affiliates, one-click unsubscribe.
