Oatly — decoded design system
Oatly's design system, decoded live by Mozaika: measured color roles, type scale, buttons with real hover/focus states, motion and the brand's own tokens.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/decode/oatly.com.
Decoded design system
Oatly's decoded design system: background #FFFFFF, text #000000, accent #98C5D3, link #FFFFFF, primary #E43E39; type scale h1 30px / h2 27px / body 16px; 8px spacing base; 6px base radius. The single interactive/action color is #000000 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #FFFFFF |
| surface | #EFEFEF |
| border | #D8D8D8 |
| text | #000000 |
| text_muted | #606060 |
| primary | #E43E39 |
| accent | #98C5D3 |
| link | #FFFFFF |
| secondary | #F8C8D8 |
| button_bg | #000000 |
| button_text | #FFFFFF |
Using these colors
- Action color
#000000— the single interactive color; only on things you click or must notice, never large fills. - accent
#98C5D3— accent for emphasis — keep it rare on the page. - primary
#E43E39— a brand color — but the call-to-action uses #000000, not this. - link
#FFFFFF— fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - secondary
#F8C8D8— optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two.
Typography
- Heading: Margo Pro Bold
- Body: Margo Pro Regular
- h1: 30px
- h2: 27px
- body: 16px
Spacing
- base unit: 8px
- scale: 2px, 6px, 8px, 11px, 12px, 16px, 20px, 21px, 24px, 30px
Radii
- base: 6px
- button: 3px
Shadows (elevation)
- card:
rgb(0, 0, 0) 2px 2px 0px 0px
Motion
Micro-interactions run at 300ms (dominant) with ease.
- durations: 300ms · 400ms
- easings:
ease·ease-in-out - animated properties: translate, color
Native design tokens
| Token | Value |
|---|---|
--color-primary-black | #000000 |
--color-primary-white | #ffffff |
--color-primary-blue | #98c5d3 |
--color-primary-pink | #f8c8d8 |
--color-primary-yellow | #fdcf85 |
--color-primary-purple | #a67eb1 |
--color-primary-gray | #c6c6c6 |
--color-primary-brown | #a0632d |
--color-secondary-medium-gray | #888888 |
--color-secondary-dark-gray | #444444 |
…and 90 more measured on the page.
Button states (measured)
- primary hover: color
#C6C6C6 - primary focus: outline
2px solid rgb(0, 0, 0)
Layout (measured)
- container max-width:
640px - nav: 900px fixed
Overlay recipe (measured)
dialog panel: #FFFFFF · radius 0px
Responsive (measured)
- breakpoints: 375px · 400px · 414px · 480px · 768px · 960px
- mobile (390px): hero 28px · nav hamburger
Install it
Drop this measured system into any shadcn/Tailwind project in one command:
npx shadcn add mozaika.design/r/decode/oatly.com
registry item · or query it over MCP: get_design_system("Oatly")
Export: DESIGN.md
# Oatly — Design System > light, playful, high, custom — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#FFFFFF` | | surface | `#EFEFEF` | | border | `#D8D8D8` | | text | `#000000` | | text_muted | `#606060` | | primary | `#E43E39` | | accent | `#98C5D3` | | link | `#FFFFFF` | | secondary | `#F8C8D8` | | button_bg | `#000000` | | button_text | `#FFFFFF` | **Using these colors** - **Action color** `#000000` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - **accent** `#98C5D3` — accent for emphasis — keep it rare on the page. - **primary** `#E43E39` — a brand color — but the call-to-action uses #000000, not this. - **link** `#FFFFFF` — fails contrast on the background (~1.0:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). - **secondary** `#F8C8D8` — optional secondary accent — LOW decode confidence; use rarely (a status color or a single decorative moment) or omit it entirely. Prefer one accent unless the reference clearly shows two. - **Page coverage** (full-page screenshot pixels): `#594F50` 48.5% · `#F6F6F6` 23.3% · `#131112` 10.9% · `#3D3538` 10.7% ## Typography - Heading: **Margo Pro Bold** _(free fallback: Newsreader)_ - Body: **Margo Pro Regular** _(free fallback: Newsreader)_ | Role | Size / weight · line-height · tracking | |------|------------------------------------------| | hero | 30px / 400 · lh 30px | | h2 | 27px / 500 · lh 32px | | h3 | 23px / 400 · lh 28px | | body | 16px / 400 · lh 19px | | small | 15px / 500 · lh 17px | - Weight ladder: 400 · 500 · 600 · 900 — use these exact measured weights, not the 400/600 defaults. > **Fonts —** Margo Pro Bold may be proprietary — safe free fallback: Newsreader (Google Fonts). Margo Pro Regular may be proprietary — safe free fallback: Newsreader (Google Fonts). ## Spacing - base unit: 8px (inferred from the measured scale) - measured scale: 2px, 6px, 8px, 11px, 12px, 16px, 20px, 21px, 24px, 30px — snap all gaps/padding to these ## Radius - base: 6px - button: 3px - card: 5px - pill: 9999px - sharp: 3px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#000000` / `#FFFFFF` | none | 3px | 11px 16px 11px 16px | 900 16.875px | none | | secondary | `#FFFFFF` / `#000000` | none | 0px | — | — | none | **States (measured, not guessed)** - primary hover: color `#C6C6C6` - primary focus: outline `2px solid rgb(0, 0, 0)` - transition: `all 0.3s ease` ## Shadows (elevation) - card: `rgb(0, 0, 0) 2px 2px 0px 0px` ## Motion - durations: 300ms (dominant) · 400ms - easings: `ease` (dominant) · `ease-in-out` - animated properties: translate, color Micro-interactions use the dominant duration + easing; nothing on the page animates slower than the longest duration above — don't invent springier motion. ## Their own tokens (verbatim from :root) | Token | Value | |-------|-------| | `--color-primary-black` | `#000000` | | `--color-primary-white` | `#ffffff` | | `--color-primary-blue` | `#98c5d3` | | `--color-primary-pink` | `#f8c8d8` | | `--color-primary-yellow` | `#fdcf85` | | `--color-primary-purple` | `#a67eb1` | | `--color-primary-gray` | `#c6c6c6` | | `--color-primary-brown` | `#a0632d` | | `--color-secondary-medium-gray` | `#888888` | | `--color-secondary-dark-gray` | `#444444` | | `--color-secondary-light-gray` | `#eeeeee` | | `--color-secondary-green` | `#68c74e` | _…and 88 more measured on the page._ Prefer these names when extending their system — it's the brand's actual vocabulary. ## Layout (measured) - container max 640px - nav: 900px fixed · bg rgba(0, 0, 0, 0.5) | Section (y) | Height | Cols | Gap | Pad y | Split | |---|---|---|---|---|---| | 0 | 900 | — | — | 21/21 | — | ## Motion choreography (measured) - overlay dialog (auto-opened): panel #FFFFFF · r 0px · border 1px solid rgb(0, 0, 0) · shadow rgb(0, 0, 0) 2px 2px 0px 0px Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - link: #000000 · underline ## Responsive (measured) - breakpoints: 375px · 400px · 414px · 480px · 768px · 960px - mobile (390px): hero 28px · body 14px · nav: hamburger ## How to apply Paste the Tailwind `@theme` (or CSS variables) as your base, then build each section to its spec — verify every color, radius, and font against these tokens. Hover/focus states, shadows and motion timings above are measured from the live page — match them exactly, don't re-guess them.
An automated reading of Oatly's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with oatly.com. No screenshots stored. Removal requests: hello@mozaika.design.