---
version: alpha
name: egghead.io
description: "Light monochrome interface measured from egghead.io: system-ui type, tonal surfaces and 2px corners."
colors:
  background: "#F9FAFB"
  surface: "#F9FAFB"
  on-surface: "#000000"
  on-background: "#000000"
  on-surface-variant: "#111827"
  on-surface-muted: "#4B5563"
  on-surface-subtle: "#6B7280"
  surface-container-low: "#FFFFFF"
  outline: "#F3F4F6"
  outline-variant: "#E5E7EB"
  primary: "#000000"
  on-primary: "#FFFFFF"
  secondary: "#2563EB"
typography:
  headline-display:
    fontFamily: system-ui
    fontSize: 39px
    fontWeight: 700
    lineHeight: 1.1
  headline-lg:
    fontFamily: system-ui
    fontSize: 20px
    fontWeight: 600
    lineHeight: 1.5
  body-md:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  body-sm:
    fontFamily: system-ui
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.33
  label-md:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 600
    lineHeight: 1.25
  label-sm:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.43
  headline-display-mobile:
    fontFamily: system-ui
    fontSize: 31px
    fontWeight: 700
    lineHeight: 1.1
rounded:
  sm: 2px
  md: 6px
  lg: 8px
spacing:
  xs: 4px
  sm: 8px
  md: 12px
  lg: 20px
  xl: 40px
  gutter: 8px
components:
  button-primary:
    textColor: "{colors.on-primary}"
    typography: "{typography.body-md}"
    rounded: 0px
    padding: 0px 20px
    height: 58px
  button-outline:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "#374151"
    typography: "{typography.label-sm}"
    rounded: "{rounded.md}"
    padding: 8px 16px
    height: 38px
  button-outline-hover:
    backgroundColor: "{colors.background}"
  button-ghost:
    textColor: "#0A0F19"
    typography: "{typography.label-sm}"
    rounded: 0px
    padding: 0px 12px
  input-field:
    textColor: "#0A0F19"
    typography: "{typography.label-sm}"
    rounded: 0px
    padding: 0px
  card:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: "{rounded.lg}"
    padding: 24px 0px
  link:
    textColor: "{colors.primary}"
---

# egghead.io Design System

## Overview

egghead.io describes itself as: “Learn modern web development with expert-led courses, tutorials, and workshops. Master React, TypeScript, Next.js, AI tools like Claude Code and Cursor, and more with hands-on video lessons.” The interface is light, built on **Snow (#F9FAFB)** with **Near Black (#000000)** text and almost no color: actions are carried by contrast, not hue.

Type is set in **system-ui**. Headlines run large; body text is 16px. Depth comes from soft drop shadows. Corners are mostly 2px.

Measured from [egghead.io](https://egghead.io/) on November 29, 2026 at 1440×900 and 390×844 from 285 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 11 roles, plus gradient stops #2563EB, #3B82F6.

- **Snow (#F9FAFB):** Page background, seen 2 times. Token `background`.
- **Near Black (#000000):** Primary text and headings, seen 16 times. Token `on-surface`.
- **Deep Blue (#111827):** Secondary text, seen 30 times. Token `on-surface-variant`.
- **Dark Blue (#4B5563):** Muted text and metadata, seen 50 times. Token `on-surface-muted`.
- **Cool Slate (#6B7280):** Subtle text and placeholders, seen 19 times. Token `on-surface-subtle`.
- **White (#FFFFFF):** Raised areas one step from the page, seen 17 times. Token `surface-container-low`, CSS `--tw-ring-offset-color`.
- **Snow (#F3F4F6):** Borders and dividers, seen 7 times. Token `outline`.
- **Cool Mist (#E5E7EB):** Secondary dividers, seen 2 times. Token `outline-variant`.
- **Near Black (#000000):** Primary actions (the main text color; the palette is monochrome), seen 16 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Vivid Blue (#2563EB):** Accent, seen 1 time. Token `secondary`.

## Typography

**system-ui** carries the whole interface. Fallback stack: `ui-sans-serif, system-ui, sans-serif, Apple Color Emoji`.

- **headline-display:** system-ui 39px at weight 700, line height 1.1 (31px on mobile). Page title (h1).
- **headline-lg:** system-ui 20px at weight 600, line height 1.5. Section headings (h2).
- **body-md:** system-ui 16px at weight 400, line height 1.5. Body text.
- **body-sm:** system-ui 12px at weight 400, line height 1.33. Secondary and small text.
- **label-md:** system-ui 16px at weight 600, line height 1.25. Buttons, navigation and labels.
- **label-sm:** system-ui 14px at weight 400, line height 1.43. Small labels and badges.

## Layout

Spacing is mostly on a 4px grid (76% of measured values), with some off-grid steps. Match the measured scale rather than rounding everything.

- **Scale:** xs 4px, sm 8px, md 12px, lg 20px, xl 40px.
- **Gaps:** 8px is the most common gap in flex and grid layouts.
- **Breakpoints:** 375px, 640px, 680px, 768px, 999px, 1024px, 1280px, 1440px, 1920px.

## Elevation & Depth

Raised elements use soft drop shadows. The most used recipes:

- `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px`

## Shapes

Most elements use 2px corners. Measured radii, most used first:

- **sm (2px):** 44 elements.
- **lg (8px):** 30 elements.
- **md (6px):** 4 elements.

## Components

Measured from the rendered page. Token values reference the tokens above.

- **button-primary (“Search egghead”):** transparent fill, #FFFFFF text, 16px/500, 0px 8px 8px 0px radius, padding 0px 20px.
- **button-outline (“Browse all courses”):** #FFFFFF fill, #374151 text, 14px/500, 6px radius, padding 8px 16px, border 1px solid #D1D5DB.
- **button-outline-hover:** background #F9FAFB, text #374151 on hover.
- **button-ghost (“Topics”):** transparent fill, #0A0F19 text, 14px/400, padding 0px 12px.
- **input-field (“Search”):** transparent fill, #0A0F19 text, 14px/400, padding 0px.
- **card:** #FFFFFF fill, #000000 text, 16px/400, 8px radius, padding 24px 0px, shadow `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 1px 2px 0px`.
- **link:** transparent fill, #000000 text, padding 0px.

## Do's and Don'ts

- Do use #F9FAFB for the page and lift surfaces in small steps: #FFFFFF.
- Do keep text in 4 levels: #000000, #111827, #4B5563, #6B7280.
- Do let contrast carry emphasis; primary actions use #000000 on #F9FAFB.
- Do reuse the measured spacing steps (8px, 12px, 20px).
- Do use 2px corners on most elements; larger surfaces also use 8px and 6px.
- Don't introduce new font families beyond system-ui.
- Don't add saturated accent colors; the measured palette is almost entirely neutral.
- Don't make interface transitions slower than 0.2s.

## Motion

Interface transitions are quick: 0.15s, 0.2s.

- **Easing:** `cubic-bezier(0.4, 0, 0.2, 1)`, `cubic-bezier(0, 0, 0.2, 1)`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

Generated by [Sitepeel](https://sitepeel.dev/design-md/egghead.io/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
