# Leaflet design system

> Leaflet design system measured from leafletjs.com: Lucida Console font, #178400 primary on #FFFFFF, 8 color hex codes, type scale, spacing and a free DESIGN.md.

Canonical page: https://sitepeel.dev/design-md/leafletjs.com/

Leaflet’s website (leafletjs.com) uses the Lucida Console font and #178400 as its main color on a white background. Measured by Sitepeel on November 29, 2026.

## What font does Leaflet use?

Leaflet uses Lucida Console (weight 700) and Helvetica Neue (weight 400) on leafletjs.com. Page titles are 32px at weight 700 and body text is 17px. Measured on November 29, 2026.

- system-ui (weights 300, 400, 700)
- Lucida Console (weights 700)
- Helvetica Neue (weights 400)

## Leaflet colors: palette and hex codes

Leaflet’s main colors are #FFFFFF (white) for the background, #000000 (near black) for text and #178400 (dark green) as the main accent, with #0550AE (dark blue) and #CF222E (red) as other accents. Measured on November 29, 2026.

- #FFFFFF: white (rgb(255, 255, 255), hsl(0, 0%, 100%))
- #000000: near black (rgb(0, 0, 0), hsl(0, 0%, 0%))
- #757575: slate (rgb(117, 117, 117), hsl(0, 0%, 46%))
- #CCCCCC: silver (rgb(204, 204, 204), hsl(0, 0%, 80%))
- #178400: dark green (rgb(23, 132, 0), hsl(110, 100%, 26%))
- #0550AE: dark blue (rgb(5, 80, 174), hsl(213, 94%, 35%))
- #CF222E: red (rgb(207, 34, 46), hsl(356, 72%, 47%))

## What is Leaflet built with?

Leaflet’s website (leafletjs.com) is built with Fastly, GitHub Pages and Leaflet. Measured on November 29, 2026.

- Hosting & CDN: Fastly, GitHub Pages
- Media: Leaflet

## Questions and answers

### What font does Leaflet use?

Leaflet’s website uses Lucida Console (weight 700) and Helvetica Neue (weight 400). Page titles are 32px at weight 700 and body text is 17px. Measured on November 29, 2026.

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

On leafletjs.com: #FFFFFF (white) for the background, #000000 (near black) for text and #178400 (dark green) as the main accent, with #0550AE (dark blue) and #CF222E (red) as other accents. The color palette above lists all 8 colors with their hex codes and where each one is used.

### What is the Leaflet design system?

The design system on this page is leafletjs.com’s, as measured on November 29, 2026: Lucida Console type, #178400 as the main color and 2px corners, written down as a DESIGN.md. It is not Leaflet’s own documentation.

### What is Leaflet built with?

Leaflet’s website (leafletjs.com) is built with Fastly, GitHub Pages and Leaflet. Measured on November 29, 2026.

### What is the Leaflet DESIGN.md?

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

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

### Can I use Leaflet’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 Leaflet’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/leafletjs.com/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 Leaflet.

## The DESIGN.md file

```markdown
---
version: alpha
name: Leaflet
description: "Light interface measured from leafletjs.com: system-ui type with Lucida Console, dark green accents, flat surfaces and 2px corners."
colors:
  background: "#FFFFFF"
  surface: "#FFFFFF"
  on-surface: "#000000"
  on-background: "#000000"
  on-surface-variant: "#757575"
  outline: "#CCCCCC"
  primary: "#178400"
  on-primary: "#FFFFFF"
  secondary: "#0550AE"
  tertiary: "#CF222E"
typography:
  display-hero:
    fontFamily: system-ui
    fontSize: 34px
    fontWeight: 300
    lineHeight: 1.25
  headline-display:
    fontFamily: system-ui
    fontSize: 32px
    fontWeight: 700
    lineHeight: 1.5
  headline-lg:
    fontFamily: Lucida Console
    fontSize: 22px
    fontWeight: 700
    lineHeight: 1.36
  body-md:
    fontFamily: system-ui
    fontSize: 17px
    fontWeight: 400
    lineHeight: 1.5
  body-lg:
    fontFamily: system-ui
    fontSize: 20px
    fontWeight: 400
    lineHeight: 1.5
  body-sm:
    fontFamily: system-ui
    fontSize: 16px
    fontWeight: 400
    lineHeight: 1.5
  caption:
    fontFamily: Helvetica Neue
    fontSize: 12px
    fontWeight: 400
    lineHeight: 1.4
rounded:
  sm: 2px
  md: 4px
spacing:
  xs: 3px
  sm: 6.66px
  md: 10px
  lg: 24px
  xl: 42.5px
  container: 864px
components:
  button-outline:
    backgroundColor: "{colors.background}"
    textColor: "#555555"
    typography: "{typography.body-md}"
    rounded: "{rounded.md}"
    padding: 5.1px 15.3px
    height: 38px
  button-outline-hover:
    textColor: "{colors.on-surface}"
  button-ghost:
    textColor: "{colors.on-surface-variant}"
    typography: "{typography.body-sm}"
    rounded: 0px
    padding: 0px
  link:
    textColor: "{colors.primary}"
---

# Leaflet Design System

## Overview

Leaflet describes itself as: “Leaflet is a modern, lightweight open-source JavaScript library for building powerful interactive maps.” The interface is light, built on **White (#FFFFFF)** with **Near Black (#000000)** text, and **Dark Green (#178400)** as the main accent.

Type is set in **system-ui** and **Lucida Console**. Headlines run large; body text is 17px. The surface language is flat. Corners are mostly 2px.

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

## Colors

The palette has 8 roles.

- **White (#FFFFFF):** Page background, seen 4 times. Token `background`.
- **Near Black (#000000):** Primary text and headings, seen 53 times. Token `on-surface`.
- **Slate (#757575):** Secondary text, seen 2 times. Token `on-surface-variant`.
- **Silver (#CCCCCC):** Borders and dividers, seen 2 times. Token `outline`.
- **Dark Green (#178400):** Links and interactive text, seen 36 times. Token `primary`.
- **White (#FFFFFF):** Text and icons on primary. Token `on-primary`.
- **Dark Blue (#0550AE):** Accent in text, fills and borders, seen 7 times. Token `secondary`.
- **Red (#CF222E):** Accent in text, fills and borders, seen 6 times. Token `tertiary`.

## Typography

**system-ui**, **Lucida Console** and **Helvetica Neue** share the interface. Fallback stack: `system-ui, -apple-system, Segoe UI, Roboto`.

- **display-hero:** system-ui 34px at weight 300, line height 1.25. Oversized hero statements.
- **headline-display:** system-ui 32px at weight 700, line height 1.5. Page title (h1).
- **headline-lg:** Lucida Console 22px at weight 700, line height 1.36. Section headings (h2).
- **body-md:** system-ui 17px at weight 400, line height 1.5. Body text.
- **body-lg:** system-ui 20px at weight 400, line height 1.5. Lead paragraphs.
- **body-sm:** system-ui 16px at weight 400, line height 1.5. Secondary and small text.
- **caption:** Helvetica Neue 12px at weight 400, line height 1.4. Captions and fine print.

## Layout

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

- **Scale:** xs 3px, sm 6.66px, md 10px, lg 24px, xl 42.5px.
- **Container:** content is capped at 864px.
- **Breakpoints:** 360px, 500px, 767px, 768px, 900px, 1350px.

## Elevation & Depth

The design is flat: no shadows were measured. Hierarchy comes from color contrast and #CCCCCC borders.

## Shapes

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

- **sm (2px):** 4 elements.
- **md (4px):** 4 elements.

## Components

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

- **button-outline (“Continue”):** #FFFFFF fill, #555555 text, 17px/400, 4px radius, padding 5.1px 15.3px, border 1px solid #CCCCCC.
- **button-outline-hover:** background #FFFFFF, text #000000 on hover.
- **button-ghost (“×”):** transparent fill, #757575 text, 16px/400, padding 0px.
- **link:** transparent fill, #178400 text, padding 0px.

## Do's and Don'ts

- Do use #FFFFFF for the page.
- Do keep text in 2 levels: #000000, #757575.
- Do use #178400 for links and interactive text.
- Do reuse the measured spacing steps (6.66px, 10px, 24px).
- Do use 2px corners on most elements; larger surfaces also use 4px.
- Don't add drop shadows for depth; use borders and contrast.
- Don't introduce new font families beyond system-ui, Lucida Console and Helvetica Neue.
- Don't use #178400 for large backgrounds or body text.

## Motion

No short interface transitions were measured. Longer ambient animations run 0.8s, 3s.

- **Easing:** `ease`.

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

```
