🤖 Merged. Paul approved on 2026-11-17. Hub CI passed at ab9fdd3; squash-merged through the gate as c1773e0, tree identical to the reviewed tip. Slides pins it from 07d2e96 on its main (oficina/slides discussion 44). Docs is unchanged and still to be moved onto the part.
desk: the floating card, its groups, the segmented control, the desk colour closed
On branch desk
🤖 Posted by the Claude agent account (Claude Fable 5.2, coordinating; implemented by a Claude Sonnet 5.5 subagent) for the session building the first slice of the Slides editor redesign, "the editor, tidied". Reviewed by GPT-6 Astra (task review, two scoped re-reviews, and a whole-branch review alongside the Slides branch). Not merged; pushed for CI and Paul's approval, then squash-merge.
Spec: Slides editor-tidy, docs/superpowers/specs/2026-11-16-editor-tidy-design.md §7 and call E9: Docs' floating inspector, its segmented controls and its desk colour go into estilo as a named part, Slides is the first user, Docs is not changed and moves onto the part later as its own change.
What is added
A new part, package desk (desk/desk.go, desk/desk.css, func CSS() []byte), beside chrome and menu. Values are copied from Docs internal/docs/views/show.html at Docs origin/main b45b7b2; the stylesheet's header names that commit.
| Hook | What it is | |---|---| | --estilo-desk, --estilo-desk-ink | Desk ground light-dark(#e3e7ee, #0e1015) and the muted ink on it light-dark(#586070, #9aa1ad) | | --estilo-inspector-inline-size (248px), --estilo-inspector-inset (12px) | The card's width and its gap from the desk's edges | | [estilo-card] | The floating surface only: 12px radius and padding, Docs' background, border, shadow and ::before backdrop. It sets no position; the app places it (its backdrop is position: absolute, so the card must be positioned) | | [estilo-inspector] | The card's inside: 13px type, a column of groups 14px apart, scrolls inside itself, [data-state="closed"] is not drawn | | [estilo-inspector-group], [estilo-inspector-label] | A labelled group and its label (650 11px/14px). A group whose direct children other than the label are all hidden is not drawn | | [estilo-seg], [estilo-seg-item] | Segmented control. A segment is a button (aria-pressed="true" selects) or a label wrapping a radio (:has(input:checked) selects); 28px tall, at least 24px wide |
Selects, text and number fields inside [estilo-inspector] take Docs' select rule (28px, 1px line, 8px radius, 13px/500).
Commits
fac0d5ethe part and its tests.65c3867forced colours: a selected segment gets a 2pxHighlightborder and a focused one a 2px outline offset by 2px, in a later rule, so one that is both shows both (review finding: the two had the same outline).ab9fdd3a segment's rounded ends are the first and last segment (:nth-child(1 of [estilo-seg-item])), not the first and last child. Found by the first user: in<fieldset estilo-seg><legend>…the legend is the first child, so the first segment stayed square.
Tests
make test passes. desk/desk_test.go, in the style of menu_test.go:
TestDeskTokensAreDefined:tokencheck.Undefined(CSS())is empty (and not vacuously).TestCardAndSegAreDocs: the numbers that make the look, one literal each (desk colours, 248px, 12px, the surface gradient, the deepest shadow, the backdrop filter, label font, 28px, the selected ring, the forced-colours outline). A change to them is then a deliberate one.TestForcedColoursSelectionAndFocusAreSeparate,TestSegEndsAreTheFirstAndLastSegment.
No rst- selectors (internal/lint/prefix_test.go passes); rst- custom properties are read, as chrome.css reads them.
Deviations and decisions for review
- Not copied from Docs: its tool hover flare and tooltip, which are Docs' own. The hover background (
--rst-line) and focus ring colour (--rst-accent) are this part's choices. - No browser test. estilo has no browser rig; the forced-colours and
:nth-child(… of …)rules are pinned as literals only. Slides' browser tests exercise the segment geometry (24px targets, rounded outer ends, square joins) through this CSS. - Docs keeps its own rules until it is moved onto the part. Until then the two are held alike by the recorded numbers above, not by a cross-app comparison. A side-by-side screenshot of each app's card goes in the Slides branch's discussion.
- README gained a paragraph for
desk, since it lists the parts.
Consumer
Slides editor-tidy (not yet pushed) uses every hook above. It currently reaches this branch through a temporary replace in its go.mod; once this merges it pins the merged commit and that replace goes.