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