---
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).
