Sitepeel
DESIGN.md · measured December 5, 2026
LEGO design system
LEGO’s website (lego.com) uses the Cera Pro font and #FFD400 as its main color on a white background. Measured by Sitepeel on December 5, 2026.
- #FFFFFF
- #FFFFFFF0
- #141414
- #FFD400
From lego.com ↗ · 395 elements at 1440×900 and 390×844 Independent analysis, not affiliated with LEGO
LEGO color palette
12 colors with hex codes, grouped by where each one is used on the page.
Surfaces
#FFFFFFbackground · --ds-halloween-2026-expression-content-defaultPage background · 31×#FFFFFFF0surface-container-lowRaised areas one step from the page · 1×#F2F2F2surface-containerCards and panels · 19×Text
#141414on-surface · --ds-despicable-me-4-expression-surface-inversePrimary text and headings · 78×#000000on-surface-strong · --ds-k-pop-demon-hunters-expression-content-inverseHeadings and emphasis · 20×#000000on-primaryText and icons on primaryAccents
#FFD400primaryBrand color on large areas · 8×#005AD2secondaryAccent on large areas · 1×#F47D20tertiarySecondary buttons · 19×Borders
#0000000FoutlineBorders and dividers · 20×#00000026outline-variantSecondary dividers · 3×Status
#BD0000error · --ds-color-text-negativeErrors and destructive states · 3×Gradients
LEGO fonts and type scale
One family carries the whole interface.
mobile 22px
Contrast
Text on #FFFFFF
18.4:121.0:1Spacing
No strict grid · 89% are multiples of 4px
xs4pxsm8pxmd16pxlg32pxxl40pxgutter12pxmargin32pxcontainer1600pxShapes
Corner radii, most used first.
Depth
LEGO UI components
Rebuilt from the measured CSS. Buttons from other sites
Motion
Interface transitions
0.3s0.2s0.24s0.16sease-outease
Do’s and don’ts
Rules written from the measurements, so a coding agent stays on style.
- Use #FFFFFF for the page and lift surfaces in small steps: #FFFFFFF0, #F2F2F2.
- Keep text in 2 levels: #141414, #000000.
- Use #FFD400 as the brand accent: header, logo and key highlights.
- Reuse the measured spacing steps (8px, 16px, 32px).
- Make buttons and chips fully rounded (9999px); most other elements use 4px corners.
- Add drop shadows for depth; use hairline rings and tonal surfaces.
- Introduce new font families beyond Cera Pro.
- Use #FFD400 for large backgrounds or body text.
- Make interface transitions slower than 0.3s.
---
version: alpha
name: LEGO
description: "Light interface measured from lego.com: Cera Pro type, vivid amber accents, tonal surfaces and pill-shaped controls."
colors:
background: "#FFFFFF"
surface: "#FFFFFF"
on-surface: "#141414"
on-background: "#141414"
on-surface-strong: "#000000"
surface-container-low: "#FFFFFFF0"
surface-container: "#F2F2F2"
outline: "#0000000F"
outline-variant: "#00000026"
primary: "#FFD400"
on-primary: "#000000"
secondary: "#005AD2"
tertiary: "#F47D20"
error: "#BD0000"
typography:
headline-display:
fontFamily: Cera Pro
fontSize: 37px
fontWeight: 700
lineHeight: 1.35
headline-lg:
fontFamily: Cera Pro
fontSize: 30px
fontWeight: 700
lineHeight: 1.35
headline-md:
fontFamily: Cera Pro
fontSize: 20px
fontWeight: 700
lineHeight: 1.55
body-md:
fontFamily: Cera Pro
fontSize: 16px
fontWeight: 400
lineHeight: 1.5
body-lg:
fontFamily: Cera Pro
fontSize: 19px
fontWeight: 700
lineHeight: 1.5
body-sm:
fontFamily: Cera Pro
fontSize: 14px
fontWeight: 400
lineHeight: 1.36
letterSpacing: 0.01em
caption:
fontFamily: Cera Pro
fontSize: 12px
fontWeight: 400
lineHeight: 1.75
letterSpacing: 0.01em
label-lg:
fontFamily: Cera Pro
fontSize: 16px
fontWeight: 500
lineHeight: 1.5
label-md:
fontFamily: Cera Pro
fontSize: 14px
fontWeight: 500
lineHeight: 1.5
letterSpacing: 0.01em
label-sm:
fontFamily: Cera Pro
fontSize: 12px
fontWeight: 500
lineHeight: 1.75
letterSpacing: 0.01em
headline-lg-mobile:
fontFamily: Cera Pro
fontSize: 22px
fontWeight: 700
lineHeight: 1.35
rounded:
sm: 4px
md: 8px
full: 9999px
spacing:
xs: 4px
sm: 8px
md: 16px
lg: 32px
xl: 40px
gutter: 12px
margin: 32px
container: 1600px
components:
button-primary:
backgroundColor: "{colors.tertiary}"
textColor: "{colors.on-primary}"
typography: "{typography.label-lg}"
rounded: "{rounded.full}"
padding: 0px 16px
height: 40px
button-outline:
backgroundColor: "{colors.surface-container}"
textColor: "{colors.on-surface}"
typography: "{typography.label-lg}"
rounded: "{rounded.full}"
padding: 0px
height: 44px
button-ghost:
backgroundColor: "{colors.background}"
textColor: "{colors.error}"
typography: "{typography.label-lg}"
rounded: "{rounded.full}"
padding: 0px 16px
height: 40px
input-field:
textColor: "{colors.on-surface}"
typography: "{typography.body-md}"
rounded: 0px
padding: 0px
link:
textColor: "{colors.on-surface}"
---
# LEGO Design System
## Overview
LEGO describes itself as: “Explore the world of LEGO® through games, videos, products and more! Shop awesome LEGO® building toys and brick sets and find the perfect gift for your kid” The interface is light, built on **White (#FFFFFF)** with **Charcoal (#141414)** text, and **Vivid Amber (#FFD400)** as the main accent.
Type is set in **Cera Pro**. Headlines run large; body text is 16px. Depth comes from hairline borders and inset highlights rather than drop shadows. Controls are pill-shaped.
Measured from [lego.com/en-us](https://www.lego.com/en-us?age-gate=grown_up) (the site sent our reader to its /en-us version; lego.com was asked for) on December 5, 2026 at 1440×900 and 390×844 from 395 rendered elements. Values are computed styles from the live page, not the original source files.
## Colors
The palette has 12 roles, plus gradient stops #FAC400.
- **White (#FFFFFF):** Page background, seen 31 times. Token `background`, CSS `--ds-halloween-2026-expression-content-default`.
- **Charcoal (#141414):** Primary text and headings, seen 78 times. Token `on-surface`, CSS `--ds-despicable-me-4-expression-surface-inverse`.
- **Near Black (#000000):** Headings and emphasis, seen 20 times. Token `on-surface-strong`, CSS `--ds-k-pop-demon-hunters-expression-content-inverse`.
- **White 94% (#FFFFFFF0):** Raised areas one step from the page, seen 1 time. Token `surface-container-low`.
- **Mist (#F2F2F2):** Cards and panels, seen 19 times. Token `surface-container`.
- **Near Black 6% (#0000000F):** Borders and dividers, seen 20 times. Token `outline`.
- **Near Black 15% (#00000026):** Secondary dividers, seen 3 times. Token `outline-variant`.
- **Vivid Amber (#FFD400):** Brand color on large areas, seen 8 times. Token `primary`.
- **Near Black (#000000):** Text and icons on primary. Token `on-primary`.
- **Blue (#005AD2):** Accent on large areas, seen 1 time. Token `secondary`.
- **Vivid Orange (#F47D20):** Secondary buttons, seen 19 times. Token `tertiary`.
- **Dark Red (#BD0000):** Errors and destructive states, seen 3 times. Token `error`, CSS `--ds-color-text-negative`.
## Typography
**Cera Pro** carries the whole interface. Fallback stack: `Cera Pro`.
- **headline-display:** Cera Pro 37px at weight 700, line height 1.35. Page title (h1).
- **headline-lg:** Cera Pro 30px at weight 700, line height 1.35 (22px on mobile). Section headings (h2).
- **headline-md:** Cera Pro 20px at weight 700, line height 1.55. Sub-section headings.
- **body-md:** Cera Pro 16px at weight 400, line height 1.5. Body text.
- **body-lg:** Cera Pro 19px at weight 700, line height 1.5. Lead paragraphs.
- **body-sm:** Cera Pro 14px at weight 400, line height 1.36, tracking 0.01em. Secondary and small text.
- **caption:** Cera Pro 12px at weight 400, line height 1.75, tracking 0.01em. Captions and fine print.
- **label-lg:** Cera Pro 16px at weight 500, line height 1.5. Large buttons and tabs.
- **label-md:** Cera Pro 14px at weight 500, line height 1.5, tracking 0.01em. Buttons, navigation and labels.
- **label-sm:** Cera Pro 12px at weight 500, line height 1.75, tracking 0.01em. Small labels and badges.
## Layout
Spacing is mostly on a 4px grid (89% of measured values), with some off-grid steps. Match the measured scale rather than rounding everything.
- **Scale:** xs 4px, sm 8px, md 16px, lg 32px, xl 40px.
- **Gaps:** 12px is the most common gap in flex and grid layouts.
- **Container:** content is capped at 1600px.
- **Page margin:** 32px on each side of full-width sections.
## Elevation & Depth
The design avoids drop shadows. Layers are separated by tonal surface steps (#FFFFFFF0 → #F2F2F2) and hairline rings:
- `rgb(176, 176, 176) 0px 0px 0px 1px inset`
## Shapes
Interactive controls are pill-shaped. Measured radii, most used first:
- **full (9999px):** 180 elements.
- **sm (4px):** 28 elements.
- **md (8px):** 12 elements.
## Components
Measured from the rendered page. Token values reference the tokens above.
- **button-primary (“Add to Bag”):** #F47D20 fill, #000000 text, 16px/500, 999px radius, padding 0px 16px.
- **button-outline (“PlayStation™ Add to Wishlist”):** #F2F2F2 fill, #141414 text, 16px/500, 999px radius, padding 0px.
- **button-ghost (“Holiday”):** #FFFFFFF0 fill, #BD0000 text, 16px/500, 999px radius, padding 0px 16px.
- **input-field (“Search”):** transparent fill, #141414 text, 16px/400, padding 0px.
- **link:** transparent fill, #141414 text, padding 0px.
## Do's and Don'ts
- Do use #FFFFFF for the page and lift surfaces in small steps: #FFFFFFF0, #F2F2F2.
- Do keep text in 2 levels: #141414, #000000.
- Do use #FFD400 as the brand accent: header, logo and key highlights.
- Do reuse the measured spacing steps (8px, 16px, 32px).
- Do make buttons and chips fully rounded (9999px); most other elements use 4px corners.
- Don't add drop shadows for depth; use hairline rings and tonal surfaces.
- Don't introduce new font families beyond Cera Pro.
- Don't use #FFD400 for large backgrounds or body text.
- Don't make interface transitions slower than 0.3s.
## Motion
Interface transitions are quick: 0.3s, 0.2s, 0.24s, 0.16s.
- **Easing:** `ease-out`, `ease`, `cubic-bezier(0.4, 0, 1, 1)`.
Generated by [Sitepeel](https://sitepeel.dev/design-md/lego.com/), the free DESIGN.md generator (engine 2026.10.29+f0c146f7cdfd).
Fonts
What font does LEGO use?
LEGO uses Cera Pro (weights 400, 500 and 700) on lego.com. Page titles are 37px at weight 700 and body text is 16px. Measured on December 5, 2026.
- AaCera Pro · 400, 500, 700
Colors
LEGO colors: palette and hex codes
LEGO’s main colors are #FFFFFF (white) for the background, #141414 (charcoal) for text and #FFD400 (vivid amber) as the main accent, with #005AD2 (blue) and #F47D20 (vivid orange) as other accents. Measured on December 5, 2026.
- #FFFFFF whitergb(255, 255, 255) · hsl(0, 0%, 100%)
- #141414 charcoalrgb(20, 20, 20) · hsl(0, 0%, 8%)
- #000000 near blackrgb(0, 0, 0) · hsl(0, 0%, 0%)
- #F2F2F2 mistrgb(242, 242, 242) · hsl(0, 0%, 95%)
- #FFD400 vivid amberrgb(255, 212, 0) · hsl(50, 100%, 50%)
- #005AD2 bluergb(0, 90, 210) · hsl(214, 100%, 41%)
- #F47D20 vivid orangergb(244, 125, 32) · hsl(26, 91%, 54%)
Tech stack
What is LEGO built with?
LEGO’s website (lego.com) is built with Next.js, React, Astro, Preact and CSS Modules. Measured on December 5, 2026.
- JavaScript framework
- Next.js 16.4.6, React 19.2.4, Astro, Preact
- Animation & 3D
- Motion
- Hosting & CDN
- Cloudflare
- UI & CSS
- CSS Modules
- Analytics
- New Relic
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 designs
Brand examples →Another site? Make a DESIGN.md from any link.
FAQ
LEGO design system questions
What font does LEGO use?
LEGO’s website uses Cera Pro (weights 400, 500 and 700). Page titles are 37px at weight 700 and body text is 16px. Measured on December 5, 2026.
What are the LEGO colors and hex codes?
On lego.com: #FFFFFF (white) for the background, #141414 (charcoal) for text and #FFD400 (vivid amber) as the main accent, with #005AD2 (blue) and #F47D20 (vivid orange) as other accents. The color palette above lists all 12 colors with their hex codes and where each one is used.
What is the LEGO design system?
The design system on this page is lego.com’s, as measured on December 5, 2026: Cera Pro type, #FFD400 as the main color and pill-shaped corners, written down as a DESIGN.md. It is not LEGO’s own documentation.
What is LEGO built with?
LEGO’s website (lego.com) is built with Next.js, React, Astro, Preact and CSS Modules. The full tech stack Sitepeel found: Next.js, React, Motion, Cloudflare, Astro, Preact, CSS Modules and New Relic. Measured on December 5, 2026.
What is the LEGO DESIGN.md?
A plain-text file with LEGO’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 LEGO’s official design system?
No. Sitepeel measured it from lego.com’s public page on December 5, 2026. It is an independent analysis, not made or approved by LEGO.
Can I use LEGO’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 LEGO’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.




