---
version: alpha
name: NumPy
description: "Light interface measured from numpy.org: system-ui type, deep cyan accents, tonal surfaces and 4px corners."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#222832"
  on-background: "#222832"
  on-surface-variant: "#75715E"
  surface-container-low: "#EFEFEF"
  outline: "#D1D5DA"
  primary: "#013243"
  on-primary: "#FFFFFF"
  secondary: "#0A7D91"
  tertiary: "#086B7C"
typography:
  display-hero:
    fontFamily: system-ui
    fontSize: 37px
    fontWeight: 400
    lineHeight: 1.65
  headline-display:
    fontFamily: system-ui
    fontSize: 27px
    fontWeight: 600
    lineHeight: 1.15
    letterSpacing: 0.056em
  body-md:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.65
  body-sm:
    fontFamily: system-ui
    fontSize: 13px
    fontWeight: 400
    lineHeight: 1.3
  label-md:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 700
    lineHeight: 1.65
  label-sm:
    fontFamily: system-ui
    fontSize: 13px
    fontWeight: 700
    lineHeight: 1.3
rounded:
  sm: 4px
  md: 20px
  lg: 25px
spacing:
  xs: 2.56px
  sm: 5.12px
  md: 16px
  lg: 30px
  xl: 40px
  gutter: 30px
  margin: 16px
  container: 1408px
components:
  card:
    textColor: "{colors.on-surface}"
    typography: "{typography.body-md}"
    rounded: "{rounded.sm}"
    padding: 0px
  link:
    textColor: "{colors.secondary}"
---

# NumPy Design System

## Overview

NumPy describes itself as: “Why NumPy? Powerful n-dimensional arrays. Numerical computing tools. Interoperable. Performant. Open source.” The interface is light, built on **White (#FFFFFF)** with **Cool Graphite (#222832)** text, and **Deep Cyan (#013243)** as the main accent.

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

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

## Colors

The palette has 9 roles.

- **White (#FFFFFF):** Page background, seen 7 times. Token `background`, CSS `--pst-color-on-background`.
- **Cool Graphite (#222832):** Primary text and headings, seen 44 times. Token `on-surface`, CSS `--pst-color-on-surface`.
- **Amber (#75715E):** Secondary text, seen 8 times. Token `on-surface-variant`.
- **Mist (#EFEFEF):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **Cool Silver (#D1D5DA):** Borders and dividers, seen 10 times. Token `outline`.
- **Deep Cyan (#013243):** Brand color on large areas, seen 2 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Dark Cyan (#0A7D91):** Links and interactive text, seen 53 times. Token `secondary`, CSS `--pst-teal-500`.
- **Dark Cyan (#086B7C):** Accent (CSS variable). Token `tertiary`.

## Typography

**system-ui** carries the whole interface. Fallback stack: `-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue`. Other loaded fonts: Font Awesome 7 Free.

- **display-hero:** system-ui 37px at weight 400, line height 1.65. Oversized hero statements.
- **headline-display:** system-ui 27px at weight 600, line height 1.15, tracking 0.056em. Page title (h1).
- **body-md:** system-ui 16px at weight 400, line height 1.65. Body text.
- **body-sm:** system-ui 13px at weight 400, line height 1.3. Secondary and small text.
- **label-md:** system-ui 16px at weight 700, line height 1.65. Buttons, navigation and labels.
- **label-sm:** system-ui 13px at weight 700, line height 1.3. Small labels and badges.

## Layout

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

- **Scale:** xs 2.56px, sm 5.12px, md 16px, lg 30px, xl 40px.
- **Gaps:** 30px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1408px.
- **Page margin:** 16px on each side of full-width sections.
- **Breakpoints:** 400px, 576px, 600px, 768px, 800px, 850px, 992px, 1023px, 1024px, 1090px, 1150px, 1200px, 1300px.

## Elevation & Depth

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

- `rgba(0, 0, 0, 0.1) 0px 3.2px 8px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px`
- `rgb(10, 125, 145) 0px 2px 0px 0px`

## Shapes

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

- **sm (4px):** 40 elements.
- **md (20px):** 4 elements.
- **lg (25px):** 4 elements.

## Components

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

- **card:** transparent fill, #222832 text, 16px/400, 4px radius, padding 0px, border 1px solid #D1D5DA, shadow `rgba(0, 0, 0, 0.1) 0px 3.2px 8px 0px, rgba(0, 0, 0, 0.1) 0px 0px 1px 0px`.
- **link:** transparent fill, #0A7D91 text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page and lift surfaces in small steps: #EFEFEF.
- Do keep text in 2 levels: #222832, #75715E.
- Do use #013243 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (5.12px, 16px, 30px).
- Do use 4px corners on most elements; larger surfaces also use 20px and 25px.
- Don't introduce new font families beyond system-ui.
- Don't use #013243 for large backgrounds or body text.
- Don't make interface transitions slower than 0.3s.

## Motion

Interface transitions are quick: 0.3s.

- **Easing:** `ease`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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