UI and animation libraries · DESIGN.md · measured November 29, 2026
p5.js design system
p5.js’s website (p5js.org) uses the National Park font and #F1678E as its main color on a white background. Measured by Sitepeel on November 29, 2026.
- #FFFFFF
- #000000
- #F1678E
- #1E32AA
From p5js.org ↗ · 162 elements at 1440×900 and 390×844 Independent analysis, not affiliated with p5.js
p5.js color palette
6 colors with hex codes, grouped by where each one is used on the page.
Surfaces
#FFFFFFbackground · --sidebar-bg-colorPage background · 2×Text
#000000on-surface · --type-colorPrimary text and headings · 57×#000000on-primaryText and icons on primaryAccents
#F1678Eprimary · --accent-colorPrimary buttons and calls to action · 3×#1E32AAsecondaryAccent in the header#ED225Dtertiary · --logo-colorAccent in the logo · 6×p5.js fonts and type scale
One family carries the whole interface.
mobile 40px
Contrast
Text on #FFFFFF
21.0:1Spacing
4px grid · 94% of values fit
sm8pxmd16pxlg20pxxl40pxgutter40pxmargin32pxBreakpoints: 770px 1023px 1024px 1280px
Shapes
Corner radii, most used first.
Depth
Flat: no shadows measured.
p5.js UI components
Rebuilt from the measured CSS. Buttons from other sites
Motion
No short transitions measured
linear
Do’s and don’ts
Rules written from the measurements, so a coding agent stays on style.
- Use #FFFFFF for the page.
- Reserve #F1678E for primary actions and key highlights.
- Keep spacing on the 4px grid.
- Make buttons and chips fully rounded (9999px); most other elements use 20px corners.
- Add drop shadows for depth; use borders and contrast.
- Introduce new font families beyond National Park.
- Use #F1678E for large backgrounds or body text.
---
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).
Fonts
What font does p5.js use?
p5.js uses National Park (weights 400 and 700) on p5js.org. Page titles are 56px at weight 700 (40px on phones) and body text is 14px. Measured on November 29, 2026.
- AaNational Park · 400, 700
Colors
p5.js colors: palette and hex codes
p5.js’s main colors are #FFFFFF (white) for the background, #000000 (near black) for text and #F1678E (pink) as the main accent, with #1E32AA (indigo) and #ED225D (vivid pink) as other accents. Measured on November 29, 2026.
- #FFFFFF whitergb(255, 255, 255) · hsl(0, 0%, 100%)
- #000000 near blackrgb(0, 0, 0) · hsl(0, 0%, 0%)
- #F1678E pinkrgb(241, 103, 142) · hsl(343, 83%, 67%)
- #1E32AA indigorgb(30, 50, 170) · hsl(231, 70%, 39%)
- #ED225D vivid pinkrgb(237, 34, 93) · hsl(343, 85%, 53%)
Tech stack
What is p5.js built with?
p5.js’s website (p5js.org) is built with Astro, Preact, Tailwind CSS and Cloudflare. Measured on November 29, 2026.
- Hosting & CDN
- Cloudflare
- Analytics
- Cloudflare Web Analytics, Fathom
- JavaScript framework
- Astro, Preact
- UI & CSS
- Tailwind CSS 4.x
What you can build with it
Landing pages, pricing tables, dashboards: your AI coding agent builds them in this style, with these colors, fonts, spacing and buttons instead of its defaults.
Download DESIGN.md, put it in your project’s root folder, then ask your agent for a page.
Build a landing page for my product. Follow for every color, font, spacing value, corner and button.
Need a page behind a login?
The DESIGN.md generator Chrome extension makes one from any page you have open, including dashboards and pages behind a login.
More in UI and animation libraries
All DESIGN.md examples →Not in the library? Make a DESIGN.md from any site.
FAQ
p5.js design system questions
What font does p5.js use?
p5.js’s website uses National Park (weights 400 and 700). Page titles are 56px at weight 700 (40px on phones) and body text is 14px. Measured on November 29, 2026.
What are the p5.js colors and hex codes?
On p5js.org: #FFFFFF (white) for the background, #000000 (near black) for text and #F1678E (pink) as the main accent, with #1E32AA (indigo) and #ED225D (vivid pink) as other accents. The color palette above lists all 6 colors with their hex codes and where each one is used.
What is the p5.js design system?
The design system on this page is p5js.org’s, as measured on November 29, 2026: National Park type, #F1678E as the main color, 20px corners and a 4px spacing grid, written down as a DESIGN.md. It is not p5.js’s own documentation.
What is p5.js built with?
p5.js’s website (p5js.org) is built with Astro, Preact, Tailwind CSS and Cloudflare. The full tech stack Sitepeel found: Cloudflare, Cloudflare Web Analytics, Fathom, Astro, Preact and Tailwind CSS. Measured on November 29, 2026.
What is the p5.js DESIGN.md?
A plain-text file with p5.js’s measured colors, type, spacing, corners and components as tokens, plus short rules, in the DESIGN.md format Google published with Stitch. Your AI coding agent reads it and builds in this style. More about DESIGN.md.
How do I use it with Claude Code or Cursor?
Download the file and put it in your project’s root folder, then ask your agent to follow DESIGN.md. Step-by-step guides: Claude Code, Cursor, Codex, GitHub Copilot.
Is this p5.js’s official design system?
No. Sitepeel measured it from p5js.org’s public page on November 29, 2026. It is an independent analysis, not made or approved by p5.js.
Can I use p5.js’s style in my own product?
Use it to learn, prototype and compare. For a real product, make the style your own, and never copy p5.js’s logo, name, pictures or text.
How accurate are the values?
Each value was measured on the rendered page after it fully loaded, on desktop and mobile: colors where they appear, type with tracking, spacing, corners, shadows and hover states. Sites change, so check the date at the top.



