SPB Git

Repository Public

DESIGN-SYSTEM-V2.md 8.5 KB

# SP Chat — Visual System V2 « Graphite & Iris · Lumen »

One language for web, macOS and iOS. V1 (« Graphite & Iris ») gave the palette; V2 adds depth, light and motion and makes the composer and the model identity the two signatures of the product. It is not a ChatGPT or Claude look: no bubbles-on-white, no orange/green brand, no gradient wash. SP Chat is graphite, one iris light, real maker logos.

# 1. Principles

  1. Quiet canvas, one light. Surfaces are neutral graphite (dark) or warm paper (light). Iris is the only brand colour and is used as light (focus ring, presence line, selection), rarely as fill.
  2. Depth by material, not by borders. Three levels: canvas (opaque) → surface (opaque, 1 px hairline) → float (translucent + blur: composer, command palette, popovers, sheets, sidebars on macOS). Never blur behind text you read.
  3. Identity = maker logo + exact name + route. Wherever a model is named: maker logo (monochrome, currentColor, 16–20 pt), exact model name, and a small route badge when the route is OpenRouter. Provider hues (jade/clay/sky) are retired from text and dots; logos replace the coloured dot.
  4. Motion explains. Every animation answers « where did this come from / what is happening ». 180–420 ms springs, never blocking input, all disabled or reduced to cross-fades under Reduce Motion.
  5. Density with air. Compact controls (28–36 pt), generous reading column (≈ 72 ch), no oversized cards.

# 2. Tokens

# Colour (dark / light)

token dark light use
bg #09090B #FAFAF8 canvas
bg-elev #0E0E11 #FFFFFF sidebar, headers
surface #141418 #FFFFFF cards, inputs
surface-2 #1B1B20 #F2F2EF hover, chips, code header
border #24242A #E5E5E1 hairlines (1 px / 0.5 pt)
border-strong #34343C #D0D0CA focused hairline
text #F2F2F4 #111113 primary
text-2 #B3B3BC #45454E secondary
muted #777782 #7B7B85 tertiary, captions
accent (iris) #8F80FF #5A45E0 light, focus, selection
accent-soft rgba(143,128,255,.14) rgba(90,69,224,.10) selected rows, chips
user-bubble #1E1B33 #EFECFF the owner's messages
ok / warn / danger #4FD1A5 / #F6C35C / #FF6B6B #1F9D75 / #B7791F / #D6453D states only
float rgba(22,22,27,.72) + blur 24 rgba(255,255,255,.78) + blur 24 floating material (Apple: .ultraThinMaterial / .regularMaterial)
lumen conic/linear iris → #B6ACFF → iris at 55 % opacity same, 40 % the presence light (see 4.4) — the only gradient allowed

# Type

Apple: SF Pro (system), SF Mono for code; Dynamic Type everywhere on iOS. Web: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Inter", "Segoe UI", sans-serif; code ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace.

role size / line weight tracking
display (empty state, explorer title) 28 / 34 600 −0.02 em
title 20 / 26 600 −0.015 em
heading 16 / 22 600 −0.01 em
body (reading) 15 / 24 (web), .body (Apple) 400 0
ui 13 / 18 450–500 0
caption 11.5 / 15 500 +0.01 em
micro (badges, kbd) 10.5 / 13 600 +0.04 em, uppercase for route badges only

# Shape, space, elevation

Radius: 6 (chips, kbd) · 10 (controls, rows) · 14 (cards, code) · 20 (composer, sheets, palette) · full (pills). Spacing scale: 2 4 6 8 12 16 20 24 32 48. Elevation: float shadow 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 48px -20px rgba(0,0,0,.65) (dark), 0 12px 36px -18px rgba(16,16,24,.22) (light).

# Motion

token value use
spring-snappy response 0.28, damping 0.86 (web: cubic-bezier(.2,.9,.25,1) 220 ms) presses, chips, toggles
spring-smooth response 0.42, damping 0.88 (web: cubic-bezier(.22,1,.36,1) 360 ms) panels, sheets, morphs
fade 140 ms ease-out content swaps, Reduce Motion fallback for everything
stagger 24 ms per item, max 8 items palette results, model lists

Web animates only transform and opacity (plus grid-template-rows/height on the composer through a FLIP or interpolate-size), will-change only while animating. Apple: withAnimation(.spring(response:dampingFraction:)), matchedGeometryEffect, .contentTransition(.numericText()) for counters, .symbolEffect for icons, 120 Hz safe (no timers driving layout; TimelineView(.animation) only for the lumen line while streaming).

# 3. Components

  • ModelMark — maker logo (template image, text colour; colour variant only in the Explorer hero and model sheet), fallback = monogram (first letter, surface-2 rounded square). Sizes 14 / 18 / 24 / 40.
  • ModelChip — [logo] Exact name [OPENROUTER]; route badge = micro uppercase text in a 1 px border capsule, shown only when route ≠ direct. catalog status adds a muted « catalogue » dot-less label in detail contexts.
  • Composer (signature) — a single floating capsule-rectangle (radius 20, float material, hairline), docked at the bottom centre, max-width 760. Rows: attachments tray (appears above the text when needed) → text → control row: [+ attach] [tools ▾] [web 🌐 toggle] … [ModelChip ▾] [effort] [mic] [send/stop]. Slash / opens commands (prompts, presets, model, tools); @ picks a model. Favourites Dock = up to 8 ModelMarks above the capsule (web: on hover/focus of the model chip; macOS: compact bar; iOS: horizontal scroller in the model sheet and long-press on the chip).
  • Message — user: right-aligned user-bubble (radius 18, max 80 %). Assistant: no bubble, full reading column, header line [ModelMark] name · route · time, footer line (on hover / always on touch): copy · regenerate (▾ other model) · branch · lens · speak · details (tokens, cost « exact » or « estimé », latency).
  • Source cards (citations) — horizontal row of compact cards (favicon-less: domain in caption, title 2 lines); numbered chips in text when the model cites.
  • Tool call — one line « 🔎 web_search · query » with a state dot (running pulse → ok/error), expandable.
  • Code block — radius 14, header (surface-2): language · copy · wrap · « open as artifact ».
  • Panels — right contextual panel (Inspector / Timeline / Lens / Artifact) slides over on compact widths, sits beside on wide. One panel at a time; switching cross-fades content, the frame stays.
  • Command palette — centred float panel, radius 20, 640 wide (web/macOS); iOS: sheet with search field first. Sections: Actions · Conversations · Models · Projects · Prompts · Settings.
  • Explorer — search field + filter chips (maker, capability, price, context, route, category) + sortable list/grid of model rows; detail sheet with facts, prices, measured figures with their source; compare tray (2–4 models).
  • Arena — columns (2–4 on wide, swipeable pages on iPhone) each with ModelChip header, live stream, then a metrics strip (first token, duration, tokens, cost exact/estimated) and « préférer ».

# 4. Signature animations

  1. Model Morphing — changing model: the ModelChip keeps its frame; logo cross-scales (old 1 → 0.6 + fade, new 0.6 → 1), name slides up 6 pt with numeric-style content transition, capability dots re-flow. spring-smooth.
  2. Intelligent Composer — the capsule grows/shrinks with content (text lines, attachment tray, tool chips, voice meter) by animating its height; the control row never jumps. Dropping a file lights the hairline in iris.
  3. Conversation Flow — a new message enters with 8 pt rise + fade (spring-snappy); the list is anchored to the bottom so streaming never shifts what is being read; « jump to latest » pill when scrolled up.
  4. Streaming Presence (Lumen) — while a model generates, a soft iris light travels along the composer's top hairline (2 pt high, blurred, ~2.4 s loop) and the active ModelMark breathes (opacity 0.6 ↔ 1). No spinner, no bouncing dots. Under Reduce Motion: static iris hairline.
  5. Contextual Panels — slide 16 pt + fade, spring-smooth; content of the main column does not reflow on compact.
  6. Command Palette — scales from 0.98 + fade, results stagger 24 ms; closes in 120 ms.

Accessibility: contrast ≥ 4.5:1 for text, focus ring 2 px iris, hit targets ≥ 44 pt on touch, every icon button labelled, Reduce Motion and Increase Contrast honoured (materials become opaque surfaces).

Files main
Menu

Theme