---
version: alpha
name: p5.js
description: "Light interface measured from p5js.org: National Park type, pink accents, flat surfaces and pill-shaped controls."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#000000"
  on-background: "#000000"
  primary: "#F1678E"
  on-primary: "#000000"
  secondary: "#1E32AA"
  tertiary: "#ED225D"
typography:
  headline-display:
    fontFamily: National Park
    fontSize: 56px
    fontWeight: 700
    lineHeight: 1
    letterSpacing: 0.004em
  body-md:
    fontFamily: National Park
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.42
    letterSpacing: 0.014em
  label-md:
    fontFamily: National Park
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.2
    letterSpacing: 0.01em
  headline-display-mobile:
    fontFamily: National Park
    fontSize: 40px
    fontWeight: 700
    lineHeight: 1.1
    letterSpacing: 0.005em
rounded:
  md: 20px
  full: 9999px
spacing:
  base: 4px
  sm: 8px
  md: 16px
  lg: 20px
  xl: 40px
  gutter: 40px
  margin: 32px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.label-md}"
    rounded: "{rounded.md}"
    padding: 0px 8px
    height: 40px
  button-outline:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-md}"
    rounded: "{rounded.full}"
    padding: 8px
    height: 42px
  button-outline-hover:
    backgroundColor: "{colors.on-surface}"
    textColor: "{colors.background}"
  button-ghost:
    textColor: "{colors.on-surface}"
    typography: "{typography.label-md}"
    rounded: "{rounded.full}"
    padding: 8px
  input-field:
    textColor: "{colors.on-surface}"
    rounded: "{rounded.md}"
    padding: 8px 0px 8px 40px
  link:
    textColor: "{colors.on-surface}"
---

# p5.js Design System

## Overview

p5.js describes itself as: “p5.js” The interface is light, built on **White (#FFFFFF)** with **Near Black (#000000)** text, and **Pink (#F1678E)** as the main accent.

Type is set in **National Park**. Headlines run large; body text is 14px. The surface language is flat. Controls are pill-shaped.

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

## Colors

The palette has 6 roles.

- **White (#FFFFFF):** Page background, seen 2 times. Token `background`, CSS `--sidebar-bg-color`.
- **Near Black (#000000):** Primary text and headings, seen 57 times. Token `on-surface`, CSS `--type-color`.
- **Pink (#F1678E):** Primary buttons and calls to action, seen 3 times. Token `primary`, CSS `--accent-color`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **Indigo (#1E32AA):** Accent in the header. Token `secondary`.
- **Vivid Pink (#ED225D):** Accent in the logo, seen 6 times. Token `tertiary`, CSS `--logo-color`.

## Typography

**National Park** carries the whole interface. Fallback stack: `National Park, sans-serif`.

- **headline-display:** National Park 56px at weight 700, line height 1, tracking 0.004em (40px on mobile). Page title (h1).
- **body-md:** National Park 14px at weight 400, line height 1.42, tracking 0.014em. Body text.
- **label-md:** National Park 20px at weight 400, line height 1.2, tracking 0.01em. Buttons, navigation and labels.

## Layout

Spacing follows a 4px grid: 94% of measured gaps and paddings are multiples of 4px.

- **Scale:** sm 8px, md 16px, lg 20px, xl 40px.
- **Gaps:** 40px is the most common gap in flex and grid layouts.
- **Page margin:** 32px on each side of full-width sections.
- **Breakpoints:** 770px, 1023px, 1024px, 1280px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from color contrast.

## Shapes

Interactive controls are pill-shaped. Measured radii, most used first:

- **md (20px):** 12 elements.
- **full (9999px):** 8 elements.

## Components

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

- **button-primary (“English”):** #F1678E fill, #000000 text, 20px/400, 20px radius, padding 0px 8px, border 1px solid #000000.
- **button-outline (“Start Coding”):** transparent fill, #000000 text, 20px/400, 9999px radius, padding 8px, border 1px solid #000000.
- **button-outline-hover:** background #000000, text #FFFFFF on hover.
- **button-ghost (“Start Coding”):** transparent fill, #000000 text, 20px/400, 9999px radius, padding 8px, border 1px solid #000000.
- **input-field (“Search”):** transparent fill, #000000 text, 16px/400, 20px radius, padding 8px 0px 8px 40px, border 1px solid #000000.
- **link:** transparent fill, #000000 text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page.
- Do reserve #F1678E for primary actions and key highlights.
- Do keep spacing on the 4px grid.
- Do make buttons and chips fully rounded (9999px); most other elements use 20px corners.
- Don't add drop shadows for depth; use borders and contrast.
- Don't introduce new font families beyond National Park.
- Don't use #F1678E for large backgrounds or body text.

## Motion

No short interface transitions were measured. Longer ambient animations run 7s.

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

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