All posts
Design

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.

Ali Alibrahimi
April 10, 2026 6 min read
Atlas Studio homepage shown in dark mode

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.

tsx
<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 project
Share Twitter LinkedIn
Ali Alibrahimi
Written by
Ali Alibrahimi
Founder, Atlas Studio

Builds agencies the way good software is built — iteratively, and with a bias for action. Writes about what we ship and why.

Monthly

One studio dispatch. Every month.

What we shipped, what we read, and what we argued about. Zero filler, zero affiliates, one-click unsubscribe.

One email a month. Zero affiliates. One-click unsubscribe.