# Prettier design system

> Prettier design system measured from prettier.io: #F8BC45 primary on #1A2B34, 11 color hex codes, type scale, spacing and a free DESIGN.md. Free.

Canonical page: https://sitepeel.dev/design-md/prettier.io/

Prettier’s website (prettier.io) uses the visitor’s system fonts and #F8BC45 as its main color on a #1A2B34 background. Measured by Sitepeel on November 29, 2026.

## What font does Prettier use?

Prettier uses the visitor’s system fonts on prettier.io: no web font was measured. Measured on November 29, 2026.

- system-ui (weights 400, 500, 700)

## Prettier colors: palette and hex codes

Prettier’s main colors are #1A2B34 (deep blue) for the background, #FFFFFF (white) for text and #F8BC45 (orange) as the main accent, with #F6914D (orange) and #1D959F (dark cyan) as other accents. Measured on November 29, 2026.

- #1A2B34: deep blue (rgb(26, 43, 52), hsl(201, 33%, 15%))
- #FFFFFF: white (rgb(255, 255, 255), hsl(0, 0%, 100%))
- #EBEDF0: mist (rgb(235, 237, 240), hsl(216, 14%, 93%))
- #B0C4CE: light blue (rgb(176, 196, 206), hsl(200, 23%, 75%))
- #C596C7: purple (rgb(197, 150, 199), hsl(298, 30%, 68%))
- #20232A: cool graphite (rgb(32, 35, 42), hsl(222, 14%, 15%))
- #F8BC45: orange (rgb(248, 188, 69), hsl(40, 93%, 62%))
- #1C1E21: charcoal (rgb(28, 30, 33), hsl(216, 8%, 12%))

## What is Prettier built with?

Prettier’s website (prettier.io) is built with Docusaurus, React and Netlify. Measured on November 29, 2026.

- JavaScript framework: Docusaurus 3.10.2, React 19.3.1
- Hosting & CDN: Netlify
- Analytics: Google Analytics

## Questions and answers

### What font does Prettier use?

No web font was measured on prettier.io: it uses the visitor’s system fonts.

### What are the Prettier colors and hex codes?

On prettier.io: #1A2B34 (deep blue) for the background, #FFFFFF (white) for text and #F8BC45 (orange) as the main accent, with #F6914D (orange) and #1D959F (dark cyan) as other accents. The color palette above lists all 11 colors with their hex codes and where each one is used.

### What is the Prettier design system?

The design system on this page is prettier.io’s, as measured on November 29, 2026: #F8BC45 as the main color and 12.8px corners, written down as a DESIGN.md. It is not Prettier’s own documentation.

### What is Prettier built with?

Prettier’s website (prettier.io) is built with Docusaurus, React and Netlify. The full tech stack Sitepeel found: Docusaurus, React, Netlify and Google Analytics. Measured on November 29, 2026.

### What is the Prettier DESIGN.md?

A plain-text file with Prettier’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 Prettier’s official design system?

No. Sitepeel measured it from prettier.io’s public page on November 29, 2026. It is an independent analysis, not made or approved by Prettier.

### Can I use Prettier’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 Prettier’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.

## Files

- [DESIGN.md](https://sitepeel.dev/design-md/prettier.io/DESIGN.md): the plain file to put in your project.
- [All brand DESIGN.md files](https://sitepeel.dev/design-md/examples/index.md)

Independent analysis by Sitepeel (sitepeel.dev), not affiliated with Prettier.

## The DESIGN.md file

```markdown
---
version: alpha
name: Prettier
description: "Dark interface measured from prettier.io: system-ui type, orange accents, tonal surfaces and 12.8px corners."
colors:
  background: "#1A2B34"
  surface: "#1A2B34"
  on-surface: "#FFFFFF"
  on-background: "#FFFFFF"
  on-surface-variant: "#EBEDF0"
  on-surface-muted: "#B0C4CE"
  on-surface-subtle: "#C596C7"
  surface-container-low: "#20232A"
  primary: "#F8BC45"
  on-primary: "#1C1E21"
  inverse-surface: "#6F7B81"
  secondary: "#F6914D"
  tertiary: "#1D959F"
typography:
  headline-display:
    fontFamily: system-ui
    fontSize: 34px
    fontWeight: 500
    lineHeight: 1.25
  headline-lg:
    fontFamily: system-ui
    fontSize: 20px
    fontWeight: 500
    lineHeight: 1.25
  body-md:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 400
    lineHeight: 1.4
  body-lg:
    fontFamily: system-ui
    fontSize: 19px
    fontWeight: 700
    lineHeight: 1.5
  label-md:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.65
  label-sm:
    fontFamily: system-ui
    fontSize: 14px
    fontWeight: 700
    lineHeight: 1.5
rounded:
  sm: 8px
  md: 12.8px
  full: 9999px
spacing:
  xs: 4px
  sm: 6px
  md: 16px
  lg: 20px
  xl: 44px
  section: 48px
  margin: 32px
components:
  button-primary:
    backgroundColor: "{colors.primary}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-lg}"
    rounded: "{rounded.md}"
    padding: 8.1px 32.4px
    height: 47px
  button-primary-hover:
    backgroundColor: "#F7B126"
  button-secondary:
    backgroundColor: "{colors.on-surface-subtle}"
    textColor: "{colors.on-primary}"
    typography: "{typography.body-lg}"
    rounded: "{rounded.md}"
    padding: 8.1px 32.4px
    height: 47px
  button-secondary-hover:
    backgroundColor: "#B87FBB"
  button-tertiary:
    backgroundColor: "{colors.secondary}"
    textColor: "{colors.on-primary}"
    rounded: 14px
    padding: 6px 14px 6px 44px
    height: 32px
  button-ghost:
    textColor: "#F5F6F7"
    typography: "{typography.label-md}"
    rounded: 0px
    padding: 0px
  link:
    textColor: "{colors.on-surface}"
---

# Prettier Design System

## Overview

Prettier describes itself as: “Opinionated Code Formatter” The interface is dark, built on **Deep Blue (#1A2B34)** with **White (#FFFFFF)** text, and **Orange (#F8BC45)** as the main accent.

Type is set in **system-ui**. Headlines run large; body text is 14px. The surface language is flat. Corners are mostly 12.8px.

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

## Colors

The palette has 11 roles.

- **Deep Blue (#1A2B34):** Page background, seen 3 times. Token `background`.
- **White (#FFFFFF):** Primary text and headings, seen 36 times. Token `on-surface`, CSS `--ifm-background-surface-color`.
- **Mist (#EBEDF0):** Secondary text, seen 8 times. Token `on-surface-variant`.
- **Light Blue (#B0C4CE):** Muted text and metadata, seen 5 times. Token `on-surface-muted`.
- **Purple (#C596C7):** Subtle text and placeholders, seen 8 times. Token `on-surface-subtle`.
- **Cool Graphite (#20232A):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **Orange (#F8BC45):** Brand color on large areas, seen 23 times. Token `primary`.
- **Charcoal (#1C1E21):** Text and icons on primary. Token `on-primary`.
- **Cool Slate (#6F7B81):** High-contrast fills, seen 3 times. Token `inverse-surface`.
- **Orange (#F6914D):** Secondary buttons, seen 1 time. Token `secondary`.
- **Dark Cyan (#1D959F):** Accent (CSS variable). Token `tertiary`.

## Typography

**system-ui** carries the whole interface. Fallback stack: `system-ui, -apple-system, Segoe UI, Roboto`.

- **headline-display:** system-ui 34px at weight 500, line height 1.25. Page title (h1).
- **headline-lg:** system-ui 20px at weight 500, line height 1.25. Section headings (h2).
- **body-md:** system-ui 14px at weight 400, line height 1.4. Body text.
- **body-lg:** system-ui 19px at weight 700, line height 1.5. Lead paragraphs.
- **label-md:** system-ui 16px at weight 400, line height 1.65. Buttons, navigation and labels.
- **label-sm:** system-ui 14px at weight 700, line height 1.5. Small labels and badges.

## Layout

Spacing is mostly on a 4px grid (84% of measured values), with some off-grid steps. Match the measured scale rather than rounding everything.

- **Scale:** xs 4px, sm 6px, md 16px, lg 20px, xl 44px.
- **Sections:** 48px vertical padding between major sections.
- **Page margin:** 32px on each side of full-width sections.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from tonal surface steps (#20232A).

## Shapes

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

- **md (12.8px):** 24 elements.
- **sm (8px):** 4 elements.
- **full (9999px):** 4 elements.

## Components

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

- **button-primary (“Try It Online”):** #F8BC45 fill, #1C1E21 text, 18.9px/700, 12.8px radius, padding 8.1px 32.4px, border 1px solid #F8BC45.
- **button-primary-hover:** background #F7B126, text #1C1E21 on hover.
- **button-secondary (“Install Prettier”):** #C596C7 fill, #1C1E21 text, 18.9px/700, 12.8px radius, padding 8.1px 32.4px, border 1px solid #C596C7.
- **button-secondary-hover:** background #B87FBB, text #1C1E21 on hover.
- **button-tertiary (“PRETTIER FOR ENTERPRISE”):** #F6914D fill, #1C1E21 text, 12px/500, 14px 0px 0px 14px radius, padding 6px 14px 6px 44px.
- **button-ghost (“stable”):** transparent fill, #F5F6F7 text, 16px/500, padding 0px.
- **link:** transparent fill, #FFFFFF text, padding 0px.

## Do's and Don'ts

- Do use #1A2B34 for the page and lift surfaces in small steps: #20232A.
- Do keep text in 4 levels: #FFFFFF, #EBEDF0, #B0C4CE, #C596C7.
- Do use #F8BC45 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (6px, 16px, 20px).
- Do use 12.8px corners on most elements; larger surfaces also use 8px.
- Don't add drop shadows for depth; use tonal surfaces.
- Don't introduce new font families beyond system-ui.
- Don't use #F8BC45 for large backgrounds or body text.
- Don't make interface transitions slower than 0.3s.

## Motion

Interface transitions are quick: 0.2s, 0.3s.

- **Easing:** `cubic-bezier(0.08, 0.52, 0.52, 1)`, `cubic-bezier(0.075, 0.82, 0.165, 1)`, `ease`.
- **Reduced motion:** the page responds to `prefers-reduced-motion`.

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

```
