Improves helder
This commit is contained in:
+81
-41
@@ -1,22 +1,26 @@
|
||||
# Design: Helder — editor for working with Claude Code
|
||||
# Handoff: Helder — editor for working with Claude Code
|
||||
|
||||
## Overview
|
||||
|
||||
Helder is a macOS code editor built around one job: work on a codebase together with
|
||||
Helder is a desktop code editor built around one job: work on a codebase together with
|
||||
Claude Code. It replaces a general IDE with four columns — source control, explorer,
|
||||
editor, agent — plus five overlays (search, keyboard shortcuts, project note, project
|
||||
launcher, expanded diff) and a set of small surfaces (context menus, a pass-on-to-agent
|
||||
prompt, tooltips, a markdown preview).
|
||||
|
||||
This document describes one consistent visual system for all of those screens.
|
||||
This handoff describes one consistent visual system for all of those screens.
|
||||
|
||||
## About the design files
|
||||
|
||||
The files in this folder are **design references written in HTML**. They show the
|
||||
intended look, spacing and states. They are not production code to copy: the app
|
||||
recreates these screens in SwiftUI and AppKit.
|
||||
The files in this bundle are **design references written in HTML**. They show the
|
||||
intended look, spacing and states. They are not production code to copy.
|
||||
|
||||
`design-canvas.dc.html` is a single-canvas board: every screen sits on one page, side by
|
||||
The task is to **recreate these screens in the target codebase's own environment**
|
||||
(Electron + React, Tauri + Svelte, SwiftUI, whatever the app already uses) with its
|
||||
established patterns. If no environment exists yet, pick the framework that fits a
|
||||
desktop editor and implement the design there.
|
||||
|
||||
`Helder IDE.dc.html` is a single-canvas board: every screen sits on one page, side by
|
||||
side, at real pixel sizes. Open it in a browser to inspect any value with devtools.
|
||||
|
||||
## Fidelity
|
||||
@@ -69,16 +73,18 @@ heading.
|
||||
`#EFF0EE` page · `#E5E7E4` spec card · `#CDD1CD` hairline · `#171C22` ink ·
|
||||
`#3A424C` ink muted · `#6B7480` ink dim. The application itself is dark only.
|
||||
|
||||
### Syntax — six colours, all muted
|
||||
### Syntax — eight colours, lifted but unsaturated
|
||||
|
||||
| Role | Hex |
|
||||
|---|---|
|
||||
| plain / function name | `#E4E7E6` |
|
||||
| variable / property | `#BAC0C0` |
|
||||
| comment | `#6C7783` |
|
||||
| keyword / operator / pseudo-class | `#C3A6CE` |
|
||||
| string / value / type path | `#8FBFB4` |
|
||||
| number / tag / hex literal | `#F0B476` |
|
||||
| plain / punctuation | `#F1F3F2` |
|
||||
| function / method name | `#A9C0E4` |
|
||||
| class / type / CSS selector | `#EFBCB0` |
|
||||
| variable / property | `#D4D9D8` |
|
||||
| comment | `#828D9A` |
|
||||
| keyword / operator / pseudo-class | `#D8BEE4` |
|
||||
| string / value / type path | `#A8D6CB` |
|
||||
| number / tag / hex literal | `#F8C793` |
|
||||
|
||||
No bold, no italic in code. Weight stays 400 so the column reads flat.
|
||||
|
||||
@@ -118,7 +124,7 @@ No green, no red anywhere. The diff reads on shape and on the 2px rule.
|
||||
| 26px | Source-control row height |
|
||||
| 28px | Status bar, state-specimen rows |
|
||||
| 30px | Context-menu item height |
|
||||
| 34px | Editor bar, markdown/code panel header |
|
||||
| 34px | Editor tab strip, markdown/code panel header |
|
||||
| 44px | Title bar and toolbar |
|
||||
| 20px | Code line box (13px type) |
|
||||
| 2px | Radius: buttons, inputs, tags, keycaps, menus' inner rows, code blocks |
|
||||
@@ -128,8 +134,8 @@ No green, no red anywhere. The diff reads on shape and on the 2px rule.
|
||||
| 2px | Accent rule: selection, focus border, pull-quote |
|
||||
| 9999px | Traffic-light dots and avatars only |
|
||||
|
||||
Column widths in the workspace: source control 236 · explorer 288 · editor flex ·
|
||||
agent 480. Agent terminal block 190px tall. Full frame 1760 × 1000.
|
||||
Column widths in the workspace: source control 300 · explorer 288 · editor flex ·
|
||||
agent 480 (the agent takes `flex: 1` when the editor is hidden). Agent terminal block 190px tall. Full frame 1760 × 1000.
|
||||
|
||||
### Elevation
|
||||
|
||||
@@ -156,21 +162,37 @@ Vertical stack: title bar 44px → body (flex row) → status bar 28px.
|
||||
|
||||
**Title bar** (`#18202B`, 1px bottom `#232C39`, padding 0 14px, gap 18px)
|
||||
Traffic lights 12px (`#E8913A`, `#6C7783`, `#3A424C`, gap 8px) · wordmark
|
||||
`Helder` Mono 700 13px `#F4F5F4` with a blinking `.` in `#E8913A` · project `odynt`
|
||||
`helder` Mono 700 13px `#F4F5F4` with a blinking `.` in `#E8913A` · project `odynt`
|
||||
Mono 12px `#6C7783` · `·` · branch `main` Mono 500 12px `#E8913A` · breadcrumb of the
|
||||
open path in Mono 12px `#6C7783`, last segment `#F4F5F4` 600, `›` separators · then the
|
||||
toolbar, right-aligned, gap 4px.
|
||||
open path in Mono 12px `#6C7783`, last segment `#F4F5F4` 600, `›` separators · the
|
||||
pane-toggle group, centred · the toolbar group, right-aligned · `?` (26px square, 1px
|
||||
`#232C39`, radius 2, Mono 600 12px `#6C7783`), 8px gap from the toolbar group.
|
||||
|
||||
Toolbar toggle: label Sans 12px + keycap. Off = label `#BAC0C0`, no fill. On = fill
|
||||
`rgba(232,145,58,.10)`, label `#F4F5F4` 500, keycap border `rgba(232,145,58,.35)`.
|
||||
Hidden-files-off is the muted case: label and keycap both `#6C7783`. Toggles:
|
||||
Search ⌘F · Fluid ⌘L · Hidden ⌘. · Note ⌘N · Git ⌘G · `?` (26px square, 1px border).
|
||||
**Button group** — one shared treatment for both header groups. Container: 1px
|
||||
`#232C39`, radius 2, overflow hidden, no gap. Each button: padding 6px 10px, gap 7px,
|
||||
Sans 500 12px/1, `white-space: nowrap`, 1px `#232C39` left divider (not on the first).
|
||||
- On: fill `rgba(232,145,58,.10)`, label `#F4F5F4`, 6px round dot `#E8913A`.
|
||||
- Off: no fill, label `#6C7783`, dot `#3A424C`.
|
||||
- Action (not a toggle): no dot, label `#BAC0C0`.
|
||||
- Shortcut, when shown: Mono 600 11px, no border — `#E8913A` when on or on an action,
|
||||
`#6C7783` when off.
|
||||
|
||||
**Source control column** (236px, `#18202B`, 1px right border)
|
||||
**Pane toggles** (centred: `position:absolute; left:50%; top:50%;
|
||||
transform:translate(-50%,-50%)` inside the title bar) — Git · Explorer · File · Claude.
|
||||
One per column, all on by default, no shortcut shown.
|
||||
|
||||
**Toolbar** (right) — Search ⌘F (action) · Auto-fit ⌘A (toggle, on) · Hidden ⌘.
|
||||
(toggle, off) · Note ⌘N (action). The old Git ⌘G toolbar button is removed; the
|
||||
Git pane toggle replaces it.
|
||||
|
||||
**Source control column** (300px, `#18202B`, 1px right border)
|
||||
Commit box: 52px `#101720` field, 1px `#232C39`, radius 2, placeholder
|
||||
"Shift+Enter to commit" `#6C7783`; 34px push button `↑` beside it, same border.
|
||||
Group header: Mono 700 10px `0.14em` uppercase `#6C7783`, count right in `#E8913A`
|
||||
("STAGED CHANGES 4", "CHANGES 1"). Rows 26px: status letter (Mono 600 10px — staged
|
||||
("STAGED CHANGES 4", "CHANGES 1"). Under each group the files are clustered per folder:
|
||||
a 22px subhead carries `▤` plus the directory path in Mono 400 11px `#6C7783` —
|
||||
one path per cluster, never repeated on the rows — and clusters are separated by an 8px
|
||||
gap. Rows 26px: status letter (Mono 600 10px — staged
|
||||
`#8FBFB4`, unstaged `#F0B476`) · 8px type badge · file name Sans 12px, ellipsised.
|
||||
Footer line "4 staged · 1 unstaged" Mono 11px `#6C7783`.
|
||||
|
||||
@@ -182,10 +204,10 @@ badge and, when dirty, a trailing `M` in `#8FBFB4`.
|
||||
Type badge: Mono 600 8px, ink text `#101720` on a per-extension fill, radius 2,
|
||||
padding 3px 4px — php `#C3A6CE` · md `#BAC0C0` · js `#F0B476` · css `#8FBFB4`.
|
||||
|
||||
**Editor** (flex, `#101720`) — 34px bar: type badge, path, unsaved dot, `+1` / `−1`
|
||||
counts, then right-aligned buttons (1px `#232C39`, radius 2): Preview on Markdown,
|
||||
Diff on a changed file. Active button = amber fill with `#171C22` text.
|
||||
Code area: CSS grid `56px 1fr`, line box 20px, numbers right-aligned `#3A424C` with
|
||||
**Editor** (flex, `#101720`) — 34px strip: "MODIFIED" label, `+1` / `−1` counts, then a
|
||||
right-aligned segmented control (1px `#232C39`, radius 2, dividers 1px): Actual ·
|
||||
Original · Diff · Split. Active segment = amber fill with `#171C22` text.
|
||||
Code area: CSS grid `56px 1fr`, line box 20px, numbers right-aligned `#5A6472` with
|
||||
14px right padding. **Indentation is padding-left on the code cell** (7.82px per space:
|
||||
31.3 / 62.6 / 93.8 / 125.1) — do not ship non-breaking spaces.
|
||||
|
||||
@@ -287,11 +309,11 @@ with amber glyphs.
|
||||
|
||||
**Tooltip** — `#232C39` surface, 1px `#3A424C`, radius 2, padding 8px 10px, max 300px,
|
||||
Sans 12px/1.5 `#E4E7E6`. No arrow, no shadow. The current state is named inside the
|
||||
sentence in amber ("Hidden files: *hidden* — …", "Column widths: *fluid* — …"), then one
|
||||
sentence in amber ("Hidden files: *hidden* — …", "Auto-fit panels: *on* — …"), then one
|
||||
sentence saying what a click does.
|
||||
|
||||
**Markdown code / Preview** — same 34px header on both halves; the active button is the
|
||||
amber fill. Code = the code grid (`44px 1fr`, line box 20px) with
|
||||
**Markdown Actual / Preview** — same 34px header on both halves; the segmented control's
|
||||
active side is the amber fill. Actual = the code grid (`44px 1fr`, line box 20px) with
|
||||
`##` headings in `#F0B476`. Preview: 18px/20px padding, max 68ch, Sans 13px/1.7 body,
|
||||
Mono 700 headings with a 1px `#232C39` underline.
|
||||
|
||||
@@ -299,7 +321,7 @@ Mono 700 headings with a 1px `#232C39` underline.
|
||||
|
||||
Four specimens at 620px: a JS module, a PHP class, a CSS file and the full markdown
|
||||
preview. Each panel: 34px header with type badge, path Mono 500 12px, and a right
|
||||
language label (or the Preview button).
|
||||
language label (or the Actual/Preview control).
|
||||
|
||||
The markdown preview is the reading surface, so it is the one place where Sans body copy
|
||||
gets room:
|
||||
@@ -329,17 +351,31 @@ gets room:
|
||||
| `⌘←` / `⌘→` | Move focus between search columns |
|
||||
| `↵` | Open the selected row (search hit, file, recent project) |
|
||||
| `⌘→` (editor) | Pass the current selection to the agent |
|
||||
| `⌘M` | Markdown: code or rendered preview |
|
||||
| `⌘C` / `⌘↵` / `⌘P` (git) | Focus commit message (not from a terminal) / commit staged / push branch |
|
||||
| `⌘M` | Cycle Actual · Original · Diff · Split |
|
||||
| `⌘C` / `⌘↵` / `⌘P` (git) | Focus commit message / commit staged / push branch |
|
||||
| `⌘A` | Toggle auto-fit panels (columns re-fit on resize and focus) |
|
||||
| `⌘.` | Toggle hidden dotfiles in tree and search |
|
||||
| `⌘G` | Show or hide the source-control column |
|
||||
| `⌘G` | Show or hide the source-control column (same as the Git pane toggle) |
|
||||
| Pane toggle click | Show or hide that column — see below |
|
||||
| `⌘S` / `⌘W` / `⌘D` | Save / close / delete (confirm) the current file |
|
||||
| `⌘N` | Open the project note; it saves on focus loss |
|
||||
| `⌘P` (note open) | Send the whole note to the agent |
|
||||
| right-click a row | Context menu, anchored to the pointer, first item pre-highlighted |
|
||||
| `esc` | Close the top overlay, menu or prompt; never more than one |
|
||||
|
||||
**Pane visibility — strictly visibility.** A pane toggle only hides or shows its
|
||||
column. It must never unmount, re-create or reset what is inside it:
|
||||
- Keep every column mounted; hide with `display: none` (or equivalent), not by removing
|
||||
it from the tree or rendering conditionally.
|
||||
- The Claude Code session, the terminal process and its scrollback, the prompt draft,
|
||||
the explorer's expanded state, the editor buffer, cursor and scroll position all
|
||||
survive any number of hide/show cycles.
|
||||
- No session restart, no PTY respawn, no re-fetch when a column comes back.
|
||||
- Remaining columns reflow: the editor (flex) absorbs freed width; when the editor is
|
||||
hidden the agent column grows to fill. All four may be off at once; the body then
|
||||
shows the editor background.
|
||||
- Persist the four flags per project.
|
||||
|
||||
Rules that hold everywhere:
|
||||
- Exactly one overlay at a time, on a flat ink scrim. Overlays never stack.
|
||||
- Hover changes fill one step and nothing else. No lift, no scale, no shadow, no opacity.
|
||||
@@ -353,12 +389,13 @@ Rules that hold everywhere:
|
||||
|
||||
- `project` — path, branch, recent list (persisted)
|
||||
- `openFile` — path, language, dirty flag, cursor line/col, view mode
|
||||
(`code|actual|preview|diff`)
|
||||
(`actual|original|diff|split`)
|
||||
- `tree` — expanded paths, selected path, `showHidden`
|
||||
- `git` — staged[], unstaged[], commit message draft, ahead/behind counts
|
||||
- `agent` — model, session, transcript, prompt draft, pending tool calls, auth notices
|
||||
- `overlay` — `null | search | shortcuts | note | diff | launcher | menu | passOn`
|
||||
- `panels` — column widths, `autoFit`, `gitVisible`
|
||||
- `panels` — column widths, `autoFit`, and `visible: { git, explorer, file, claude }`
|
||||
(all `true` by default, persisted per project)
|
||||
- `note` — text, dirty flag (write on blur)
|
||||
|
||||
Search runs per keystroke against three indexes (open file, project contents, file
|
||||
@@ -374,9 +411,12 @@ woff2 for a desktop build).
|
||||
|
||||
## Files
|
||||
|
||||
- `design-canvas.dc.html` — the design board: all screens, one canvas, real sizes
|
||||
- `Helder IDE.dc.html` — the design board: all screens, one canvas, real sizes
|
||||
- `tokens/*.css` — the Kade token files the board is built on (colour, type, spacing,
|
||||
radius, elevation, motion, fonts)
|
||||
- `styles.css` — the token entry point
|
||||
|
||||
Open `design-canvas.dc.html` in a browser; the board is inert (no interaction) by design.
|
||||
- `support.js` — the runtime the board needs to open in a browser (not part of the design)
|
||||
|
||||
Open `Helder IDE.dc.html` in a browser. The board is inert except for the four pane
|
||||
toggles in the workspace title bar, which demonstrate the hide/show behaviour.
|
||||
|
||||
Reference in New Issue
Block a user