Code panel
A live editor: token-themed CodeMirror in the code-block frame (type in it)
8 lines · 278 chars. The ramp mirrors the CodeBlock canon (keywords, strings, numbers, comments), selection is the sanctioned soft wash, and the whole theme is var(--token)-driven. The island is live.
The web console’s editor panel is a real CodeMirror 6 instance whose entire look is
the design system: the ground is a recessed well (fields sink), the caret and
selection ride the accent (selection = the sanctioned soft wash, never an opaque brand
fill), the gutter sits on the surface ramp, and the syntax ramp mirrors the
Code block canon exactly. Keywords on accent-secondary,
strings on status-success, functions on accent-tertiary, numbers on the categorical
orange, comments muted italic. One code voice whether it’s read-only or live.
The chrome reuses the code-block header grammar verbatim: filename ·
LanguageBadge · the shared CopyButton (copying the
live document). Focus reads on the panel (an inner accent outline), never a CodeMirror
default.
The design deliverable for the dashboard is nockerlCodeMirrorTheme()
(_codeMirrorTheme.ts), an Extension[] built ONLY from var(--token) strings, so it
theme-flips for free and never forks a hue. Web-only by scope;
native surfaces read code through the cross-platform CodeBlock.