---
version: alpha
name: webpack
description: "Dark monochrome interface measured from webpack.js.org: Source Sans Pro type with Source Serif Pro, flat surfaces and 8px corners."
colors:
  background: "#2B3A42"
  surface: "#2B3A42"
  on-surface: "#E1E6E9"
  on-background: "#E1E6E9"
  on-surface-strong: "#FFFFFF"
  on-surface-variant: "#F2F2F2"
  on-surface-muted: "#93A4AD"
  overlay: "#8DD6F980"
  outline: "#175D96"
  primary: "#666666"
  on-primary: "#DEDEDE"
  secondary: "#1D78C1"
  tertiary: "#53B7E6"
typography:
  headline-display:
    fontFamily: Source Sans Pro
    fontSize: 40px
    fontWeight: 200
  headline-lg:
    fontFamily: Source Serif Pro
    fontSize: 30px
    fontWeight: 600
    lineHeight: 1.4
  body-md:
    fontFamily: Source Sans Pro
    fontSize: 15px
    fontWeight: 400
    lineHeight: 1.6
  body-sm:
    fontFamily: Source Sans Pro
    fontSize: 14px
    fontWeight: 300
    lineHeight: 1.43
  label-md:
    fontFamily: Source Sans Pro
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  headline-display-mobile:
    fontFamily: Source Sans Pro
    fontSize: 33px
    fontWeight: 200
rounded:
  sm: 8px
  md: 32px
spacing:
  sm: 7.5px
  md: 16px
  lg: 24px
  xl: 60px
  gutter: 18px
  margin: 16px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    padding: 0px 8px
    height: 38px
  button-primary-hover:
    textColor: "{colors.on-surface-variant}"
  link:
    textColor: "#333333"
---

# webpack Design System

## Overview

webpack describes itself as: “webpack bundles JavaScript, CSS, HTML, WebAssembly and assets into optimized output for browsers, Node.js, Deno, Bun and other environments.” The interface is dark, built on **Deep Blue (#2B3A42)** with **Cool Mist (#E1E6E9)** text and almost no color: actions are carried by contrast, not hue.

Type is set in **Source Sans Pro** and **Source Serif Pro**. Headlines run large; body text is 15px. The surface language is flat. Corners are mostly 8px.

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

## Colors

The palette has 11 roles.

- **Deep Blue (#2B3A42):** Page background, seen 2 times. Token `background`.
- **Cool Mist (#E1E6E9):** Primary text and headings, seen 44 times. Token `on-surface`.
- **White (#FFFFFF):** Headings and emphasis, seen 3 times. Token `on-surface-strong`, CSS `--tw-ring-offset-color`.
- **Mist (#F2F2F2):** Secondary text, seen 7 times. Token `on-surface-variant`, CSS `--color-gray-100`.
- **Blue (#93A4AD):** Muted text and metadata, seen 2 times. Token `on-surface-muted`.
- **Light Cyan 50% (#8DD6F980):** Translucent fill for cards and controls, seen 6 times. Token `overlay`.
- **Dark Blue (#175D96):** Borders and dividers, seen 4 times. Token `outline`.
- **Slate (#666666):** Primary buttons and calls to action, seen 1 time. Token `primary`, CSS `--color-gray-500`.
- **Silver (#DEDEDE):** Text and icons on primary. Token `on-primary`.
- **Blue (#1D78C1):** Accent in text, fills and borders, seen 15 times. Token `secondary`, CSS `--color-blue-400`.
- **Cyan (#53B7E6):** Accent in text, fills and borders, seen 12 times. Token `tertiary`.

## Typography

**Source Sans Pro** and **Source Serif Pro** share the interface. Fallback stack: `Source Sans Pro, -apple-system, BlinkMacSystemFont, Segoe UI`. Other loaded fonts: Source Code Pro.

- **headline-display:** Source Sans Pro 40px at weight 200 (33px on mobile). Page title (h1).
- **headline-lg:** Source Serif Pro 30px at weight 600, line height 1.4. Section headings (h2).
- **body-md:** Source Sans Pro 15px at weight 400, line height 1.6. Body text.
- **body-sm:** Source Sans Pro 14px at weight 300, line height 1.43. Secondary and small text.
- **label-md:** Source Sans Pro 16px at weight 400, line height 1.5. Buttons, navigation and labels.

## Layout

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

- **Scale:** sm 7.5px, md 16px, lg 24px, xl 60px.
- **Gaps:** 18px is the most common gap in flex and grid layouts.
- **Page margin:** 16px on each side of full-width sections.
- **Breakpoints:** 425px, 767px, 768px, 1024px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from color contrast and #175D96 borders.

## Shapes

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

- **sm (8px):** 312 elements.
- **md (32px):** 16 elements.

## Components

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

- **button-primary (“Search Ctrl K”):** #666666 fill, #DEDEDE text, 16px/400, 3.35544e+07px radius, padding 0px 8px, border 1px solid #D6D6E7.
- **button-primary-hover:** background #666666, text #F2F2F2 on hover.
- **link:** transparent fill, #333333 text, padding 0px.

## Do's and Don'ts

- Do use #2B3A42 for the page.
- Do keep text in 4 levels: #E1E6E9, #FFFFFF, #F2F2F2, #93A4AD.
- Do let contrast carry emphasis; primary actions use #666666 on #2B3A42.
- Do reuse the measured spacing steps (7.5px, 16px, 24px).
- Do use 8px corners on most elements; larger surfaces also use 32px.
- Don't add drop shadows for depth; use borders and contrast.
- Don't introduce new font families beyond Source Sans Pro and Source Serif Pro.
- Don't add saturated accent colors; the measured palette is almost entirely neutral.
- Don't make interface transitions slower than 0.25s.

## Motion

Interface transitions are quick: 0.2s, 0.25s.

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

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