MozaikaLive decode

Opencode — decoded design system

opencode.ai · light · modern · custom · deep decode — measured live

Opencode'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/opencode.ai.

Decoded design system

Opencode's decoded design system: background #FDFCFC, text #646262, accent #3D50F5, link #201D1D, primary #3D50F5; type scale h1 26px / h2 22px / body 14px; 4px spacing base; 0px base radius. The single interactive/action color is #3D50F5 — used only on interactive or must-notice elements (buttons, links, key highlights), never on large fills.

Color roles

RoleValue
bg#FDFCFC
surface#F3F2F2
border#E6E4E4
text#646262
text_muted#9E9C9C
primary#3D50F5
accent#3D50F5
link#201D1D
button_bgrgba(0, 0, 0, 0)
button_text#6D717E

Using these colors

Typography

Spacing

Radii

Motion

Micro-interactions run at 200ms (dominant) with cubic-bezier(0.25, 0.46, 0.45, 0.94).

Native design tokens

TokenValue
--sl-color-texthsl(0, 1%, 39%)
--sl-color-borderhsl(0, 1%, 85%)
--sl-color-text-secondaryhsl(224, 7%, 46%)
--sl-color-text-dimmedhsl(224, 6%, 63%)
--sl-color-bghsl(0, 20%, 99%)
--sl-color-gray-5hsl(0, 1%, 85%)
--sl-border-colorhsl(0, 1%, 85%)
--sl-color-hairline-shadehsl(0, 1%, 85%)
--color-backgroundhsl(0, 20%, 99%)
--color-background-weakhsl(0, 8%, 97%)

…and 110 more measured on the page.

Button states (measured)

Layout (measured)

Overlay recipe (measured)

dialog panel: #FDFCFC · radius 0px · enter 200ms linear

Themes

dark counterpart: background #131010, text #B8B2B2.

Responsive (measured)

Install it

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

npx shadcn add https://mozaika.design/r/decode/opencode.ai

Or as a Meta Astryx theme — a ready defineTheme file with the measured hover/press states baked in:

curl -o src/themes/opencode.theme.ts https://mozaika.design/api/astryx/decode/opencode.ai.ts

registry item · astryx theme · or query it over MCP: get_design_system("Opencode")

Export: DESIGN.md

# Opencode — Design System

> light, modern, medium, custom — deep decode (measured live)

## Colors

| Role | Value |
|------|-------|
| bg | `#FDFCFC` |
| surface | `#F3F2F2` |
| border | `#E6E4E4` |
| text | `#646262` |
| text_muted | `#9E9C9C` |
| primary | `#3D50F5` |
| accent | `#3D50F5` |
| link | `#201D1D` |
| button_bg | `rgba(0, 0, 0, 0)` |
| button_text | `#6D717E` |

**Using these colors**

- **Action color** `#3D50F5` — the single interactive color; it appears only on things you click or must notice (buttons, key highlights), never on large fills or backgrounds.
- `primary`, `accent` are all `#3D50F5` — one role, not several (your action color).
- **accent** `#3D50F5` — THE accent / action color — interactive & must-notice only (buttons, links, focus, one key highlight); never large fills or backgrounds. Scarcity is what makes it read as designed.
- **link** `#201D1D` — reads as a neutral UI color, not a link accent — verify against the reference (action = #3D50F5).
- **Page coverage** (full-page screenshot pixels): `#FDFCFC` 94.7% · `#E1E0E0` 3.2% · `#B7B6B6` 2.2%

## Typography

- Heading: **Arial**
- Body: **Arial**
- Mono: **IBM Plex Mono**

| Role | Size / weight · line-height · tracking |
|------|------------------------------------------|
| hero | 26px / 500 · lh 31px · tracking -0.5px |
| h2 | 22px / 500 · lh 26px |
| h3 | 18px / 500 · lh 22px |
| body | 14px / 400 · lh 24px |
| small | 13px / 400 · lh 16px |
| eyebrow | 13px / 700 · tracking 0.5px |

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

> **Fonts —** Arial — system font, no web load needed.

## Spacing
- base unit: 4px (inferred from the measured scale)
- measured scale: 4px, 5px, 6px, 12px, 14px, 15px, 16px, 24px, 32px, 40px — snap all gaps/padding to these

## Radius
- base: 0px
- button: 4px
- card: 6px

## Buttons

| Button | Fill / text | Border | Radius | Padding | Font | Shadow |
|--------|-------------|--------|--------|---------|------|--------|
| primary | `rgba(0, 0, 0, 0)` / `#6D717E` | 1px solid rgb(217, 216, 216) | 4px | 6px 12px 6px 12px | 400 14px | none |

**States (measured, not guessed)**

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

## Motion
- durations: 200ms (dominant)
- easings: `cubic-bezier(0.25, 0.46, 0.45, 0.94)` (dominant) · `ease-in-out`
- animated properties: opacity, background, border-color, transform

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 |
|-------|-------|
| `--sl-color-text` | `hsl(0, 1%, 39%)` |
| `--sl-color-border` | `hsl(0, 1%, 85%)` |
| `--sl-color-text-secondary` | `hsl(224, 7%, 46%)` |
| `--sl-color-text-dimmed` | `hsl(224, 6%, 63%)` |
| `--sl-color-bg` | `hsl(0, 20%, 99%)` |
| `--sl-color-gray-5` | `hsl(0, 1%, 85%)` |
| `--sl-border-color` | `hsl(0, 1%, 85%)` |
| `--sl-color-hairline-shade` | `hsl(0, 1%, 85%)` |
| `--color-background` | `hsl(0, 20%, 99%)` |
| `--color-background-weak` | `hsl(0, 8%, 97%)` |
| `--color-background-weak-hover` | `hsl(0, 8%, 94%)` |
| `--color-background-strong` | `hsl(0, 5%, 12%)` |

_…and 108 more measured on the page._

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

## Layout (measured)
- nav: 64px fixed · border-bottom 1px solid rgb(217, 216, 216) · bg #FDFCFC

## Motion choreography (measured)
- overlay dialog (auto-opened): panel #FDFCFC · r 0px · border 1px solid rgb(217, 216, 216) · shadow rgba(0, 0, 0, 0.03) 0px 8px 4px 0px, rgba(0, 0, 0, 0.03) 0px 5px 2px 0px, rgba(0, 0, 0, 0.06) 0px 3px 2px 0px, rgba(0, 0, 0, 0.06) 0px 1px 1px 0px
  - enter: transform+opacity from scale(0.9),0 · 200ms linear | opacity from 0 · 200ms linear

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

## Components (measured)
- link: #201D1D · underline

## Themes (both measured)
- dark counterpart: bg `#131010` · text `#B8B2B2`
- tokens that flip between modes:
  - `--sl-color-border`: `hsl(0, 1%, 85%)` → `hsl(224, 7%, 36%)`
  - `--sl-color-text-secondary`: `hsl(224, 7%, 46%)` → `hsl(224, 6%, 66%)`
  - `--sl-color-text-dimmed`: `hsl(224, 6%, 63%)` → `hsl(224, 7%, 46%)`
  - `--sl-color-bg-surface`: `hsl(224, 19%, 97%)` → `hsl(224, 14%, 16%)`
  - `--sl-color-orange`: `hsl(41, 90%, 60%)` → `hsl(41, 82%, 63%)`
  - `--ec-frm-inlBtnBrd`: `#24292e` → `#e1e4e8`
  - `--sl-color-green`: `hsl(101, 90%, 46%)` → `hsl(101, 82%, 63%)`
  - `--sl-badge-tip-bg`: `hsl(281, 90%, 30%)` → `hsl(281, 39%, 22%)`

## Responsive (measured)
- breakpoints: 384px · 480px · 640px · 688px · 768px · 800px
- mobile (390px): hero 26px · 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.

---

> **Decoded with Mozaika** — measured live, not guessed. Full decoded design system + one-command install: mozaika.design/decode/opencode.ai

← All decoded design systems

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