Maka is a desktop and terminal workspace for directing and supervising agents. The layout stays quiet, native, and compact: spacious where users read or make decisions, dense where side-by-side comparison matters. Activity, permissions, failures, and artifacts remain inspectable inline without turning the window into a telemetry dashboard.
The NSH design guide sets the foundation; this document specifies Maka's rules on top of it. ui.tsx is the source of truth for design tokens—when prose and code diverge, update the wrong one in the same change. Terminal mode runs the same workbench on a character grid, gating desktop-only pixel geometry behind platform.idiom === 'terminal'.
background, surface, raised) first, a hairline border second, and shadow last.card, and cardRaised for interactive fills inside a card). Components inside the panel consume semantic region tokens from ui.tsx rather than raw palette steps.text, secondary, and muted, reinforced by size, weight, and spacing.warning, danger, success) appear only to communicate actual state.C; literal color values belong only in theme definitions or data-driven content.2, 4, 8, 12, 16, 24, 32. Tighter spacing binds related parts: parts inside a control sit closer than sibling controls, and sibling controls closer than distinct groups.4 inline, 8 controls, 12 panels and popovers, 16/24 large cards and composer surfaces, full for circular buttons and pills. Nested corners stay concentric (inner_radius = outer_radius - inset).24, 28, or 32 (default 32). Containers own their padding; parents own the gap between children—never patch alignment drift with ad-hoc local margins.radius 24, inset 8, 32 pt round buttons), the + icon aligns with the first character of the input, the send button sits equidistant from the right and bottom edges, toolbar items share one centerline, and the composer card aligns flush with both edges of the reading column. Icon buttons and disclosure rows extend 8 pt outside the reading column so their glyphs land directly on the text edge.ui.tsx.The desktop shell forms an inverted L: the sidebar and top strip share the chrome base fill, framing a rounded panel (radius 12, inset 8 on top, right, and bottom). The sidebar and main panel separate by fill step alone; side-by-side split panes inside the panel separate with a 1 px line.
Window chrome occupies a single 32 pt top row: window controls and the sidebar toggle sit above the sidebar (moving into the panel header when the sidebar collapses), while each pane header aligns on the same vertical center—showing title, workspace badge, and a trailing segmented view switcher without repeating the title elsewhere.
Sidebar navigation keeps core actions (New conversation, Search conversations) alongside user-pinned optional features (Maka Bot, Automations, Rooms) managed from a More features popover, and omits redundant filter entries such as Waiting for you. Navigation rows use secondary text and muted icons so conversation titles (text) stand out; selected rows use raised fill and 500 weight. A Conversations section header switches between project grouping and chronological order using the same 13 pt caption scale as group headings and full-width Show N more rows. A fixed 16 pt trailing slot holds the unread dot, active spinner, or hover More button so titles never shift horizontally.
Working for 22s while running, updating in place to Worked for 37s · 2 thoughts · 3 tools and auto-collapsing to the final answer on clean completion (unless the user manually toggled it). Turns that fail, stop, or pause for user input lead with their terminal status (Stopped after 12s) and stay expanded.Read files, ran commands). On desktop, turns use two unindented lanes: a 24 pt leading icon lane aligned with the reading column's left edge, and a content lane to its right. Expanded steps sit one lane inward behind a vertical guide line under the group icon.$, label output only for stderr, and display exit codes only when non-zero.Menus, selects, context menus, popovers, and modal dialogs are the only surfaces that combine a line border (radius 12) with drop shadow (floatingStyle, menuRowStyle, ModalDialog.tsx).
floating surface with 4 pt inset and 32 pt concentric rows (radius 8, hover/focus floatingRaised). Rows use three lanes: 16 pt icon at 12 pt, label at 36 pt, and trailing check/switch/shortcut/chevron. Every command in a menu uses a distinct icon; destructive actions sit last in danger; commands that open a prompt end with …. Active choices show an accent checkmark (never radio buttons). Press outside or Escape dismisses; menus carry neither title bars nor close buttons.ModalDialog centers over a scrim on surface fill (inset 16). Titles state the concrete action and target (Delete “Roadmap”?, weight 600); body text adds only scope or consequence. Primary actions sit bottom-right (Cancel followed by a specific verb like Delete or Save—never generic OK/Confirm), with initial focus on Cancel for destructive prompts. Escape cancels; clicking the scrim dismisses lightweight launchers (command palette, search) but never discards form edits or active work.tooltipStyle / richTooltipStyle in floating tokens without shadow or color inversion, the narrowest floating surface at 280 pt and four lines of text at most: a hint folds, and what a longer one cannot say belongs inline. A hovered image is the one preview that sets its own width, up to 480 pt. Menu rows never carry tooltips.All settings screens compose primitives from SettingsPage.tsx without custom per-page layouts:
surface over background with aligned left text edges: label on the left, control on the right, and helper copy only when the label alone would be ambiguous.Save bar that appears once dirty. Navigating away with unsaved edits prompts for confirmation.Retry action and error reason. Healthy rows stay quiet; actionable issues highlight in warning.Inspect UI changes in the native desktop renderer across both light and dark themes at narrow and wide viewport widths. Shared-edge invariants belong in automated layout-bound assertions (such as shell_shares_its_lines in the desktop integration suite) rather than eyeball checks alone. On macOS, the offscreen test backend rasterizes Helvetica rather than SF Pro, so check optical text-to-icon centering in a real desktop window.