tldraw — Design System
The full decoded design system for tldraw: color roles, type scale, spacing, radii and paste-ready DESIGN.md / Tailwind / CSS exports.
This is a static, crawlable rendering for search & AI engines. The interactive version — filters, live decode console, copy & export — is at https://mozaika.design/ds/tldraw.
Tokens
tldraw's decoded design system: background #F9FAFB, text #2E2E2E, accent #E085F4, link #E085F4, primary #9FA8B2; type scale h1 24px / h2 24px / body 12px; 4px spacing base; 4px base radius. The single interactive/action color is #EDF0F2 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.
Color roles
| Role | Value |
|---|---|
| bg | #F9FAFB |
| surface | #ECEDEE |
| border | #DADBDC |
| text | #2E2E2E |
| text_muted | #7B7B7B |
| primary | #9FA8B2 |
| accent | #E085F4 |
| link | #E085F4 |
| secondary | #AE3EC9 |
| button_bg | #EDF0F2 |
| button_text | #2E2E2E |
Using these colors
- Action color
#EDF0F2— the single interactive color; only on things you click or must notice, never large fills. accent,linkare all#E085F4— one role, not several (the action color).- accent
#E085F4— accent for emphasis — keep it rare on the page. - primary
#9FA8B2— a neutral UI color (chips, tags, icon fills, chrome), not the action color (action = #EDF0F2). - secondary
#AE3EC9— 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: Inter
- Body: Inter
- h1: 24px
- h2: 24px
- body: 12px
Spacing
- base unit: 4px
- scale: 2px, 4px, 6px, 8px, 10px, 12px, 16px, 64px
Radii
- base: 4px
- button: 9px
Motion
Micro-interactions run at 3000ms (dominant) with ease-in-out.
- durations: 3000ms · 200ms
- easings:
ease-in-out·ease-out - animated properties: transform, opacity
Layout (measured)
- nav: 900px
Motion choreography (measured)
Load order: div._cookieAcceptButtonText_ → div._cookieConsent_85tjp_45
Overlay recipe (measured)
dialog panel: #FCFCFC · radius 9px
Themes
dark counterpart: background #101011, text #F9FAFB.
Responsive (measured)
- mobile (390px): hero 24px · nav inline
Export: DESIGN.md
# tldraw — Design System > light, modern, medium, custom — deep decode (measured live) ## Colors | Role | Value | |------|-------| | bg | `#F9FAFB` | | surface | `#ECEDEE` | | border | `#DADBDC` | | text | `#2E2E2E` | | text_muted | `#7B7B7B` | | primary | `#9FA8B2` | | accent | `#E085F4` | | link | `#E085F4` | | secondary | `#AE3EC9` | | button_bg | `#EDF0F2` | | button_text | `#2E2E2E` | **Using these colors** - **Action color** `#EDF0F2` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds. - `accent`, `link` are all `#E085F4` — one role, not several. - **accent** `#E085F4` — accent for emphasis — keep it rare on the page. - **primary** `#9FA8B2` — a neutral UI color (chips, tags, icon fills, chrome), not the action color (action = #EDF0F2). - **secondary** `#AE3EC9` — 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): `#F9FAFB` 98.5% · `#A1AEC2` 1.5% ## Typography - Heading: **Inter** - Body: **Inter** - h1: 24px - h2: 24px - body: 12px > **Fonts —** Inter — free, on Google. ## Spacing - base unit: 4px (inferred from the measured scale) - measured scale: 2px, 4px, 6px, 8px, 10px, 12px, 16px, 64px — snap all gaps/padding to these ## Radius - base: 4px - button: 9px ## Buttons | Button | Fill / text | Border | Radius | Padding | Font | Shadow | |--------|-------------|--------|--------|---------|------|--------| | primary | `#1C1C1C` / `#FCFCFC` | none | 4px | 4px 8px 4px 8px | 500 12px | none | ## Motion - durations: 3000ms (dominant) · 200ms - easings: `ease-in-out` (dominant) · `ease-out` - animated properties: transform, opacity Micro-interactions use the dominant duration + easing; nothing on the page animates slower than the longest duration above — don't invent springier motion. ## Layout (measured) - nav: 900px ## Motion choreography (measured) Load order: `div._cookieAcceptButtonText_` @0ms → `div._cookieConsent_85tjp_45` @2000ms - `div._cookieConsent_85tjp_45` — transform translateY(110%)→translate(0px) — 3000ms ease-out (delay 2000ms) - `div._cookieAcceptButtonText_` — transform translate(100%)→translate(-100%) — 3000ms · loops - overlay dialog (auto-opened): panel #FCFCFC · r 9px · shadow rgba(0, 0, 0, 0.28) 0px 1px 2px 0px, rgba(0, 0, 0, 0.14) 0px 2px 6px 0px, rgb(255, 255, 255) 0px 0px 0px 1px inset Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography. ## Components (measured) - disabled: bg rgba(0, 0, 0, 0) · text #888D91 ## Themes (both measured) - dark counterpart: bg `#101011` · text `#F9FAFB` ## Responsive (measured) - mobile (390px): hero 24px · body 12px · nav: inline ## 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. --- > **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/ds/tldraw
Export: Tailwind v4 (@theme)
@theme {
/* action color #EDF0F2 — the one interactive color; buttons/links/emphasis only, never large fills. */
--color-bg: #F9FAFB;
--color-surface: #ECEDEE;
--color-border: #DADBDC;
--color-text: #2E2E2E;
--color-text-muted: #7B7B7B;
--color-primary: #9FA8B2; /* a neutral UI color (chips, tags, icon fills, chrome), not the action color (action = #EDF0F2). */
--color-accent: #E085F4; /* accent for emphasis — keep it rare on the page. */
--color-link: #E085F4; /* fails contrast on the background (~2.3:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). */
--color-secondary: #AE3EC9; /* 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. */
--color-button-bg: #EDF0F2; /* primary-button fill — the main call-to-action color. */
--color-button-text: #2E2E2E;
/* fonts: Inter — free, on Google. */
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--text-h1: 24px;
--text-h2: 24px;
--text-body: 12px;
--radius-base: 4px;
--radius-button: 9px;
--ease-brand: ease-in-out;
--duration-fast: 200ms; /* use: duration-[var(--duration-fast)] */
--duration-base: 3000ms;
--spacing: 4px; /* measured base — drives the p-*/gap-* scale. steps seen on the page: 2, 4, 6, 8, 10, 12, 16, 64px */
}Export: CSS variables
:root {
/* action color #EDF0F2 — the one interactive color; buttons/links/emphasis only, never large fills. */
--bg: #F9FAFB;
--surface: #ECEDEE;
--border: #DADBDC;
--text: #2E2E2E;
--text-muted: #7B7B7B;
--primary: #9FA8B2; /* a neutral UI color (chips, tags, icon fills, chrome), not the action color (action = #EDF0F2). */
--accent: #E085F4; /* accent for emphasis — keep it rare on the page. */
--link: #E085F4; /* fails contrast on the background (~2.3:1) — this is a dark UI color, NOT a readable link; use the text or action color for links (verify against the reference). */
--secondary: #AE3EC9; /* 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. */
--button-bg: #EDF0F2; /* primary-button fill — the main call-to-action color. */
--button-text: #2E2E2E;
--font-heading: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--font-body: "Inter", system-ui, -apple-system, 'Segoe UI', sans-serif;
--radius: 4px;
--radius-button: 9px;
--ease: ease-in-out;
--duration-fast: 200ms;
--duration-base: 3000ms;
}
/* fonts: Inter — free, on Google. */