LexicalBrand
UI and animation libraries · DESIGN.md · measured November 29, 2026
Leaflet design system
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.
- #FFFFFF
- #000000
- #178400
- #0550AE
From leafletjs.com ↗ · 160 elements at 1440×900 and 390×844 Independent analysis, not affiliated with Leaflet
Leaflet color palette
8 colors with hex codes, grouped by where each one is used on the page.
Surfaces
#FFFFFFbackgroundPage background · 4×Text
#000000on-surfacePrimary text and headings · 53×#757575on-surface-variantSecondary text · 2×#FFFFFFon-primaryText and icons on primaryAccents
#178400primaryLinks and interactive text · 36×#0550AEsecondaryAccent in text, fills and borders · 7×#CF222EtertiaryAccent in text, fills and borders · 6×Borders
#CCCCCCoutlineBorders and dividers · 2×Leaflet fonts and type scale
3 families.
Contrast
Text on #FFFFFF
21.0:14.6:1Spacing
No strict grid · 33% are multiples of 4px
xs3pxsm6.66pxmd10pxlg24pxxl42.5pxcontainer864pxBreakpoints: 360px 500px 767px 768px 900px 1350px
Shapes
Corner radii, most used first.
Depth
Flat: no shadows measured.
Motion
No short transitions measured
ease
Do’s and don’ts
Rules written from the measurements, so a coding agent stays on style.
- Use #FFFFFF for the page.
- Keep text in 2 levels: #000000, #757575.
- Use #178400 for links and interactive text.
- Reuse the measured spacing steps (6.66px, 10px, 24px).
- Use 2px corners on most elements; larger surfaces also use 4px.
- Add drop shadows for depth; use borders and contrast.
- Introduce new font families beyond system-ui, Lucida Console and Helvetica Neue.
- Use #178400 for large backgrounds or body text.
---
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).
Fonts
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.
- Aasystem-ui · 300, 400, 700
- AaLucida Console · 700
- AaHelvetica Neue · 400
Colors
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 whitergb(255, 255, 255) · hsl(0, 0%, 100%)
- #000000 near blackrgb(0, 0, 0) · hsl(0, 0%, 0%)
- #757575 slatergb(117, 117, 117) · hsl(0, 0%, 46%)
- #CCCCCC silverrgb(204, 204, 204) · hsl(0, 0%, 80%)
- #178400 dark greenrgb(23, 132, 0) · hsl(110, 100%, 26%)
- #0550AE dark bluergb(5, 80, 174) · hsl(213, 94%, 35%)
- #CF222E redrgb(207, 34, 46) · hsl(356, 72%, 47%)
Tech stack
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
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 →
LexicalBrand
Salesforce Lightning Design SystemBrand
LucideBrand
Material DesignBrand
Magic UIBrand
MantineBrand
Not in the library? Make a DESIGN.md from any site.
FAQ
Leaflet design system questions
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.