Repository Public
1# SP Chat — Visual System V2 « Graphite & Iris · Lumen »23One language for web, macOS and iOS. V1 (« Graphite & Iris ») gave the palette; V2 adds **depth, light and motion**4and makes the composer and the model identity the two signatures of the product. It is not a ChatGPT or Claude look:5no bubbles-on-white, no orange/green brand, no gradient wash. SP Chat is *graphite, one iris light, real maker logos*.67## 1. Principles891. **Quiet canvas, one light.** Surfaces are neutral graphite (dark) or warm paper (light). Iris is the only brand10 colour and is used as *light* (focus ring, presence line, selection), rarely as fill.112. **Depth by material, not by borders.** Three levels: canvas (opaque) → surface (opaque, 1 px hairline) → float12 (translucent + blur: composer, command palette, popovers, sheets, sidebars on macOS). Never blur behind text you read.133. **Identity = maker logo + exact name + route.** Wherever a model is named: maker logo (monochrome, `currentColor`,14 16–20 pt), exact model name, and a small route badge when the route is OpenRouter. Provider *hues* (jade/clay/sky)15 are retired from text and dots; logos replace the coloured dot.164. **Motion explains.** Every animation answers « where did this come from / what is happening ». 180–420 ms springs,17 never blocking input, all disabled or reduced to cross-fades under Reduce Motion.185. **Density with air.** Compact controls (28–36 pt), generous reading column (≈ 72 ch), no oversized cards.1920## 2. Tokens2122### Colour (dark / light)2324| token | dark | light | use |25|---|---|---|---|26| `bg` | `#09090B` | `#FAFAF8` | canvas |27| `bg-elev` | `#0E0E11` | `#FFFFFF` | sidebar, headers |28| `surface` | `#141418` | `#FFFFFF` | cards, inputs |29| `surface-2` | `#1B1B20` | `#F2F2EF` | hover, chips, code header |30| `border` | `#24242A` | `#E5E5E1` | hairlines (1 px / 0.5 pt) |31| `border-strong` | `#34343C` | `#D0D0CA` | focused hairline |32| `text` | `#F2F2F4` | `#111113` | primary |33| `text-2` | `#B3B3BC` | `#45454E` | secondary |34| `muted` | `#777782` | `#7B7B85` | tertiary, captions |35| `accent` (iris) | `#8F80FF` | `#5A45E0` | light, focus, selection |36| `accent-soft` | `rgba(143,128,255,.14)` | `rgba(90,69,224,.10)` | selected rows, chips |37| `user-bubble` | `#1E1B33` | `#EFECFF` | the owner's messages |38| `ok` / `warn` / `danger` | `#4FD1A5` / `#F6C35C` / `#FF6B6B` | `#1F9D75` / `#B7791F` / `#D6453D` | states only |39| `float` | `rgba(22,22,27,.72)` + blur 24 | `rgba(255,255,255,.78)` + blur 24 | floating material (Apple: `.ultraThinMaterial` / `.regularMaterial`) |40| `lumen` | `conic/linear iris → #B6ACFF → iris` at 55 % opacity | same, 40 % | the presence light (see 4.4) — the only gradient allowed |4142### Type4344Apple: 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`.4546| role | size / line | weight | tracking |47|---|---|---|---|48| display (empty state, explorer title) | 28 / 34 | 600 | −0.02 em |49| title | 20 / 26 | 600 | −0.015 em |50| heading | 16 / 22 | 600 | −0.01 em |51| body (reading) | 15 / 24 (web), `.body` (Apple) | 400 | 0 |52| ui | 13 / 18 | 450–500 | 0 |53| caption | 11.5 / 15 | 500 | +0.01 em |54| micro (badges, kbd) | 10.5 / 13 | 600 | +0.04 em, uppercase for route badges only |5556### Shape, space, elevation5758Radius: 6 (chips, kbd) · 10 (controls, rows) · 14 (cards, code) · 20 (composer, sheets, palette) · full (pills).59Spacing 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).6061### Motion6263| token | value | use |64|---|---|---|65| `spring-snappy` | response 0.28, damping 0.86 (web: `cubic-bezier(.2,.9,.25,1)` 220 ms) | presses, chips, toggles |66| `spring-smooth` | response 0.42, damping 0.88 (web: `cubic-bezier(.22,1,.36,1)` 360 ms) | panels, sheets, morphs |67| `fade` | 140 ms ease-out | content swaps, Reduce Motion fallback for everything |68| `stagger` | 24 ms per item, max 8 items | palette results, model lists |6970Web animates only `transform` and `opacity` (plus `grid-template-rows`/`height` on the composer through a FLIP or71`interpolate-size`), `will-change` only while animating. Apple: `withAnimation(.spring(response:dampingFraction:))`,72`matchedGeometryEffect`, `.contentTransition(.numericText())` for counters, `.symbolEffect` for icons, 120 Hz safe73(no timers driving layout; `TimelineView(.animation)` only for the lumen line while streaming).7475## 3. Components7677- **ModelMark** — maker logo (template image, `text` colour; colour variant only in the Explorer hero and model sheet),78 fallback = monogram (first letter, `surface-2` rounded square). Sizes 14 / 18 / 24 / 40.79- **ModelChip** — `[logo] Exact name [OPENROUTER]`; route badge = micro uppercase text in a 1 px `border` capsule,80 shown only when route ≠ direct. `catalog` status adds a muted « catalogue » dot-less label in detail contexts.81- **Composer (signature)** — a single floating capsule-rectangle (radius 20, `float` material, hairline), docked at the82 bottom centre, max-width 760. Rows: attachments tray (appears above the text when needed) → text → control row:83 `[+ attach] [tools ▾] [web 🌐 toggle] … [ModelChip ▾] [effort] [mic] [send/stop]`. Slash `/` opens commands (prompts,84 presets, model, tools); `@` picks a model. Favourites Dock = up to 8 ModelMarks above the capsule (web: on hover/focus85 of the model chip; macOS: compact bar; iOS: horizontal scroller in the model sheet and long-press on the chip).86- **Message** — user: right-aligned `user-bubble` (radius 18, max 80 %). Assistant: no bubble, full reading column,87 header line `[ModelMark] name · route · time`, footer line (on hover / always on touch): copy · regenerate (▾ other88 model) · branch · lens · speak · details (tokens, cost « exact » or « estimé », latency).89- **Source cards** (citations) — horizontal row of compact cards (favicon-less: domain in caption, title 2 lines);90 numbered chips in text when the model cites.91- **Tool call** — one line « 🔎 web_search · query » with a state dot (running pulse → ok/error), expandable.92- **Code block** — radius 14, header (`surface-2`): language · copy · wrap · « open as artifact ».93- **Panels** — right contextual panel (Inspector / Timeline / Lens / Artifact) slides over on compact widths, sits94 beside on wide. One panel at a time; switching cross-fades content, the frame stays.95- **Command palette** — centred `float` panel, radius 20, 640 wide (web/macOS); iOS: sheet with search field first.96 Sections: Actions · Conversations · Models · Projects · Prompts · Settings.97- **Explorer** — search field + filter chips (maker, capability, price, context, route, category) + sortable list/grid98 of model rows; detail sheet with facts, prices, measured figures with their source; compare tray (2–4 models).99- **Arena** — columns (2–4 on wide, swipeable pages on iPhone) each with ModelChip header, live stream, then a100 metrics strip (first token, duration, tokens, cost exact/estimated) and « préférer ».101102## 4. Signature animations1031041. **Model Morphing** — changing model: the ModelChip keeps its frame; logo cross-scales (old 1 → 0.6 + fade, new105 0.6 → 1), name slides up 6 pt with numeric-style content transition, capability dots re-flow. `spring-smooth`.1062. **Intelligent Composer** — the capsule grows/shrinks with content (text lines, attachment tray, tool chips, voice107 meter) by animating its height; the control row never jumps. Dropping a file lights the hairline in iris.1083. **Conversation Flow** — a new message enters with 8 pt rise + fade (`spring-snappy`); the list is anchored to the109 bottom so streaming never shifts what is being read; « jump to latest » pill when scrolled up.1104. **Streaming Presence (Lumen)** — while a model generates, a soft iris light travels along the composer's top111 hairline (2 pt high, blurred, ~2.4 s loop) and the active ModelMark breathes (opacity 0.6 ↔ 1). No spinner, no112 bouncing dots. Under Reduce Motion: static iris hairline.1135. **Contextual Panels** — slide 16 pt + fade, `spring-smooth`; content of the main column does not reflow on compact.1146. **Command Palette** — scales from 0.98 + fade, results stagger 24 ms; closes in 120 ms.115116Accessibility: contrast ≥ 4.5:1 for text, focus ring 2 px iris, hit targets ≥ 44 pt on touch, every icon button117labelled, Reduce Motion and Increase Contrast honoured (materials become opaque surfaces).118