---
version: alpha
name: Algo Lab
description: "Light interface measured from byte-sized-algorithms.vercel.app: Inter Variable type, red accents, tonal surfaces and 8px corners."
colors:
  background: "#F7F4EE"
  surface: "#F7F4EE"
  on-surface: "#2A2B2F"
  on-background: "#2A2B2F"
  on-surface-variant: "#434247"
  on-surface-muted: "#77746F"
  surface-container-low: "#F9F7F2"
  surface-container: "#E1DBD2"
  surface-container-high: "#CFC9BF"
  outline: "#CFC9BF"
  outline-variant: "#DFDBD2"
  primary: "#E2705A"
  on-primary: "#FFFFFF"
  secondary: "#F08A6D"
  tertiary: "#F7CEC0"
  error: "#7C2717"
typography:
  headline-display:
    fontFamily: Inter Variable
    fontSize: 30px
    fontWeight: 800
    lineHeight: 1.12
    letterSpacing: -0.03em
  body-md:
    fontFamily: Inter Variable
    fontSize: 14px
    fontWeight: 440
    lineHeight: 1.48
    letterSpacing: -0.006em
  body-lg:
    fontFamily: Inter Variable
    fontSize: 17.5px
    fontWeight: 750
    lineHeight: 1.2
    letterSpacing: -0.032em
  body-sm:
    fontFamily: Inter Variable
    fontSize: 13px
    fontWeight: 400
    lineHeight: 1.4
  label-lg:
    fontFamily: Inter Variable
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.4
  label-md:
    fontFamily: Inter Variable
    fontSize: 14px
    fontWeight: 500
    lineHeight: 1.25
    letterSpacing: -0.012em
  label-sm:
    fontFamily: Inter Variable
    fontSize: 11.5px
    fontWeight: 680
    lineHeight: 1.3
    letterSpacing: 0.075em
  headline-display-mobile:
    fontFamily: Inter Variable
    fontSize: 27px
    fontWeight: 800
    lineHeight: 1.12
    letterSpacing: -0.03em
rounded:
  sm: 5px
  md: 8px
  lg: 12px
  xl: 14px
  full: 9999px
spacing:
  xs: 4px
  sm: 6px
  md: 9px
  lg: 19px
  xl: 44.27px
  gutter: 10px
  margin: 20px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.md}"
    padding: 0px 19px 0px 18px
    height: 39px
  button-outline:
    backgroundColor: "#FAE0D6"
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: "{rounded.md}"
    padding: 5px 8px 5px 9px
    height: 33px
  button-ghost:
    backgroundColor: "{colors.surface-container-low}"
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.md}"
    padding: 0px 9px 0px 13px
    height: 40px
  card:
    backgroundColor: "{colors.background}"
    textColor: "{colors.on-surface}"
    typography: "{typography.label-lg}"
    rounded: "{rounded.xl}"
    padding: 0px 14px 14px 14px
  link:
    textColor: "{colors.on-surface}"
---

# Algo Lab Design System

## Overview

Algo Lab describes itself as: “Learn data structures and algorithms in 86 short lessons. Each one is a step-by-step walkthrough with an isometric diagram that moves as you go.” The interface is light, built on **Warm Mist (#F7F4EE)** with **Graphite (#2A2B2F)** text, and **Red (#E2705A)** as the main accent.

Type is set in **Inter Variable**. Headlines run large with tight negative tracking; body text is 14px. Depth comes from soft drop shadows. Corners are mostly 8px.

Measured from [byte-sized-algorithms.vercel.app](https://byte-sized-algorithms.vercel.app/#/big-o/1) on December 1, 2026 at 1440×900 and 390×844 from 296 rendered elements. Values are computed styles from the live page, not the original source files.

## Colors

The palette has 14 roles.

- **Warm Mist (#F7F4EE):** Page background, seen 8 times. Token `background`, CSS `--brand-line`.
- **Graphite (#2A2B2F):** Primary text and headings, seen 44 times. Token `on-surface`, CSS `--brand-tile`.
- **Graphite (#434247):** Secondary text, seen 4 times. Token `on-surface-variant`, CSS `--ink-2`.
- **Warm Slate (#77746F):** Muted text and metadata, seen 22 times. Token `on-surface-muted`, CSS `--ink-3`.
- **Warm Snow (#F9F7F2):** Raised areas one step from the page, seen 11 times. Token `surface-container-low`, CSS `--paper-raised`.
- **Warm Silver (#E1DBD2):** Cards and panels, seen 1 time. Token `surface-container`, CSS `--paper-sunk-strong`.
- **Warm Silver (#CFC9BF):** Hover and pressed fills, seen 11 times. Token `surface-container-high`, CSS `--line-strong`.
- **Warm Silver (#CFC9BF):** Borders and dividers, seen 12 times. Token `outline`, CSS `--line-strong`.
- **Warm Silver (#DFDBD2):** Secondary dividers, seen 7 times. Token `outline-variant`, CSS `--line`.
- **Red (#E2705A):** Primary buttons and calls to action, seen 9 times. Token `primary`, CSS `--coral`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Red (#F08A6D):** Accent in text, fills and borders, seen 4 times. Token `secondary`, CSS `--code-kw`.
- **Pale Orange (#F7CEC0):** Accent in the header, seen 2 times. Token `tertiary`, CSS `--coral-200`.
- **Dark Red (#7C2717):** Errors and destructive states, seen 2 times. Token `error`, CSS `--coral-ink`.

## Typography

**Inter Variable** carries the whole interface. Fallback stack: `Inter Variable, Inter, ui-sans-serif, ui-sans-serif`. Other loaded fonts: JetBrains Mono Variable.

- **headline-display:** Inter Variable 30px at weight 800, line height 1.12, tracking -0.03em (27px on mobile). Page title (h1).
- **body-md:** Inter Variable 14px at weight 440, line height 1.48, tracking -0.006em. Body text.
- **body-lg:** Inter Variable 17.5px at weight 750, line height 1.2, tracking -0.032em. Lead paragraphs.
- **body-sm:** Inter Variable 13px at weight 400, line height 1.4. Secondary and small text.
- **label-lg:** Inter Variable 15px at weight 400, line height 1.4. Large buttons and tabs.
- **label-md:** Inter Variable 14px at weight 500, line height 1.25, tracking -0.012em. Buttons, navigation and labels.
- **label-sm:** Inter Variable 11.5px at weight 680, line height 1.3, tracking 0.075em. Small labels and badges.

## Layout

Spacing does not follow a strict grid: 19% of measured values are multiples of 4px, so match the measured steps rather than rounding to a grid.

- **Scale:** xs 4px, sm 6px, md 9px, lg 19px, xl 44.27px.
- **Gaps:** 10px is the most common gap in flex and grid layouts.
- **Page margin:** 20px on each side of full-width sections.

## Elevation & Depth

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

- `rgba(255, 255, 255, 0.8) 0px 1px 0px 0px inset, rgba(74, 58, 40, 0.05) 0px 1px 2px 0px`
- `rgba(255, 255, 255, 0.75) 0px 1px 0px 0px inset, rgba(74, 58, 40, 0.04) 0px 1px 2px 0px, rgba(74, 58, 40, 0.12) 0px 6px 14px -8px`
- `rgba(43, 44, 48, 0.45) 0px 2px 5px -2px`

## Shapes

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

- **md (8px):** 132 elements.
- **full (9999px):** 28 elements.
- **xl (14px):** 16 elements.
- **sm (5px):** 8 elements.
- **lg (12px):** 8 elements.

## Components

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

- **button-primary (“Learn”):** #E2705A fill, #FFFFFF text, 14.8px/650, 8px radius, padding 0px 19px 0px 18px, shadow `rgba(255, 255, 255, 0.22) 0px 1px 0px 0px inset, rgba(160, 60, 40, 0.28) 0px 1px 2px 0px, rgba(212, 95, 72, 0.45) 0px 4px 10px -4px`.
- **button-outline (“Big-O Notation”):** #FAE0D6 fill, #2A2B2F text, 13.8px/620, 8px radius, padding 5px 8px 5px 9px.
- **button-ghost (“Search topics, algorithms...”):** #F9F7F2 fill, #434247 text, 15px/400, 8px radius, padding 0px 9px 0px 13px, border 1px solid #CFC9BF, shadow `rgba(255, 255, 255, 0.8) 0px 1px 0px 0px inset, rgba(74, 58, 40, 0.05) 0px 1px 2px 0px`.
- **card:** #F7F4EE fill, #2A2B2F text, 15px/400, 14px radius, padding 0px 14px 14px 14px, border 1px solid #DFDBD2, shadow `rgba(255, 255, 255, 0.75) 0px 1px 0px 0px inset, rgba(74, 58, 40, 0.04) 0px 1px 2px 0px, rgba(74, 58, 40, 0.12) 0px 6px 14px -8px`.
- **link:** transparent fill, #2A2B2F text, padding 0px.

## Do's and Don'ts

- Do use #F7F4EE for the page and lift surfaces in small steps: #F9F7F2, #E1DBD2, #CFC9BF.
- Do keep text in 3 levels: #2A2B2F, #434247, #77746F.
- Do reserve #E2705A for primary actions and key highlights.
- Do set headlines in Inter Variable with tight tracking (-0.03em).
- Do reuse the measured spacing steps (6px, 9px, 19px).
- Do use 8px corners on most elements; larger surfaces also use 14px, 5px and 12px.
- Don't use #77746F for body text; it reaches 4.24:1 on #F7F4EE. Keep it for large text or metadata.
- Don't introduce new font families beyond Inter Variable.
- Don't use #E2705A for large backgrounds or body text.
- Don't make interface transitions slower than 0.5s.

## Motion

Interface transitions are quick: 0.15s, 0.3s, 0.25s, 0.5s.

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

Generated by [Sitepeel](https://sitepeel.dev/design-md/byte-sized-algorithms.vercel.app/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
