MozaikaLive decode

Bun — decoded design system

bun.sh · dark · modern · tailwind · deep decode — measured live

Bun'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.

Open in Mozaika →

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/bun.sh.

Decoded design system

Bun's decoded design system: background #14151A, text #FFFFFF, accent #9CA3AF, link #D1D5DB, primary #F472B6; type scale h1 72px / h2 60px / body 14px; 8px spacing base; 5px base radius. The single interactive/action color is #F472B6 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.

Color roles

RoleValue
bg#14151A
surface#222327
border#37383C
text#FFFFFF
text_muted#A5A6A7
primary#F472B6
accent#9CA3AF
link#D1D5DB
secondary#3B3F4B
button_bg#F472B6
button_text#14151A

Using these colors

Typography

Spacing

Radii

Shadows (elevation)

Motion

Micro-interactions run at 150ms (dominant) with cubic-bezier(0.4, 0, 0.2, 1).

Native design tokens

TokenValue
--black#0b0a08
--gray-950#0d0e11
--gray-900#14151a
--gray-800#282a36
--gray-700#3b3f4b
--gray-600#4f5666
--gray-500#6b7280
--gray-400#9ca3af
--gray-300#d1d5db
--gray-200#e5e7eb

…and 110 more measured on the page.

Button states (measured)

Layout (measured)

Motion choreography (measured)

Load order: p.duration-100span.blinkg.origin-[50px_50px]×4 → div.flex×3

Scroll reveal: 9 elements rest at opacity 0, translateY(-16px), animate in over 0.15s cubic-bezier(0.4, 0, 0.2, 1).

Responsive (measured)

Install it

Drop this measured system into any shadcn/Tailwind project in one command:

npx shadcn add mozaika.design/r/decode/bun.sh

registry item · or query it over MCP: get_design_system("Bun")

Export: DESIGN.md

# Bun — Design System

> dark, modern, high, tailwind — deep decode (measured live)

## Colors

| Role | Value |
|------|-------|
| bg | `#14151A` |
| surface | `#222327` |
| border | `#37383C` |
| text | `#FFFFFF` |
| text_muted | `#A5A6A7` |
| primary | `#F472B6` |
| accent | `#9CA3AF` |
| link | `#D1D5DB` |
| secondary | `#3B3F4B` |
| button_bg | `#F472B6` |
| button_text | `#14151A` |

**Using these colors**

- **Action color** `#F472B6` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds.
- `primary`, `button_bg` are all `#F472B6` — one role, not several (your action color).
- **accent** `#9CA3AF` — accent for emphasis — keep it rare on the page.
- **link** `#D1D5DB` — reads as a neutral UI color, not a link accent — verify against the reference (action = #F472B6).
- **secondary** `#3B3F4B` — 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): `#17151B` 81.8% · `#2F2E39` 10.7% · `#817682` 7.4%

## Typography

- Heading: **Roboto**
- Body: **Roboto**
- Mono: **JetBrains Mono** _(measured)_

| Role | Size / weight · line-height · tracking |
|------|------------------------------------------|
| hero | 72px / 800 · lh 72px |
| h2 | 60px / 800 · lh 60px |
| h3 | 53px / 800 · lh 53px |
| body | 14px / 400 · lh 20px |
| small | 12px / 400 · lh 16px |
| eyebrow | 14px / 500 · tracking 0.7px |

- Weight ladder: 400 · 500 · 600 · 700 · 800 — use these exact measured weights, not the 400/600 defaults.

> **Fonts —** Roboto — free, on Google.

## Spacing
- base unit: 8px (inferred from the measured scale)
- measured scale: 2px, 3px, 4px, 6px, 8px, 10px, 12px, 15px, 16px, 24px — snap all gaps/padding to these
- section rhythm: 150px top/bottom padding per section (measured)

## Radius
- base: 5px
- button: 8px
- card: 8px
- pill: 9999px
- sharp: 3px

## Buttons

| Button | Fill / text | Border | Radius | Padding | Font | Shadow |
|--------|-------------|--------|--------|---------|------|--------|
| primary | `#F472B6` / `#14151A` | none | 8px | 8px 16px 8px 16px | 500 18px | none |
| secondary | `#282A36` / `#F472B6` | none | 7px 7px 0px 0px | 16px 16px 16px 16px | 400 16px | none |

**States (measured, not guessed)**

- primary focus: outline `1px auto rgb(16, 16, 16)`

## Shadows (elevation)
- subtle: `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(230, 126, 34, 0.05) 0px 10px 15px -3px, rgba(230, 126, 34, 0.05) 0px 4px 6px -4px`
- card: `rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(168, 85, 247, 0.05) 0px 10px 15px -3px, rgba(168, 85, 247, 0.05) 0px 4px 6px -4px`

## Motion
- durations: 150ms (dominant) · 200ms · 100ms
- easings: `cubic-bezier(0.4, 0, 0.2, 1)` (dominant) · `linear`
- animated properties: opacity, color, background-color, border-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 |
|-------|-------|
| `--black` | `#0b0a08` |
| `--gray-950` | `#0d0e11` |
| `--gray-900` | `#14151a` |
| `--gray-800` | `#282a36` |
| `--gray-700` | `#3b3f4b` |
| `--gray-600` | `#4f5666` |
| `--gray-500` | `#6b7280` |
| `--gray-400` | `#9ca3af` |
| `--gray-300` | `#d1d5db` |
| `--gray-200` | `#e5e7eb` |
| `--gray-100` | `#f3f4f6` |
| `--gray-50` | `#f9fafb` |

_…and 108 more measured on the page._

Prefer these names when extending their system — it's the brand's actual vocabulary.

## Layout (measured)
- container max 1280px · common grid: 2-col
- nav: 83px

| Section (y) | Height | Cols | Gap | Pad y | Split |
|---|---|---|---|---|---|
| 1018 | 1152 | 2 | 24 | 150/150 | — |
| 2169 | 1702 | 2 | 64 | 128/128 | — |

## Motion choreography (measured)
Load order: `p.duration-100` @0ms → `span.blink` @0ms → ``×4 @1ms → `div.flex`×3 @1ms
- scroll reveal: 9 elements rest at opacity 0, translateY(-16px), animate in over 0.15s cubic-bezier(0.4, 0, 0.2, 1) (4 revealed during the drive).

Rebuild the timeline, not just the durations — order, delays and staggers above are the choreography.

## Components (measured)
- link: #282A36 · no underline

## Responsive (measured)
- breakpoints: 640px · 768px · 1024px · 1280px
- mobile (390px): hero 37px · body 16px · 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.

← All decoded design systems

Mozaika is an MCP-native design-reference library for AI coding agents: real products decoded into measured design systems, full-page screens, sliced sections with per-section specs, and ordered user flows. Connect your agent over MCP.

An automated reading of Bun's publicly-visible CSS (colors, fonts, spacing, motion) — not affiliated with bun.sh. No screenshots stored. Removal requests: hello@mozaika.design.