Skip to Content
CodeUI

Decisions

@codeui/inkstone v0.3.0

What was tried and rejected, how a rule changes, and where the kit still disagrees with its own rules.

How a rule changes

Every rule in Inkstone was decided by reviewing a working build. None comes from a mockup. A rule changes the same way:

  1. Build the alternative next to the current one: an Experiment in the app, or a story in the kit.
  2. Check it in dark and light at 1440×900, 1024×768 and 390×844.
  3. If the maintainer picks it, make it the default, delete the version that lost, and update DESIGN.md and this site in the same pull request.

Tried and rejected

TriedWhy it was rejectedInstead
Compact bordered panels, 28px rows, a 300px panel"troppo compatto e con bordi"Islands, 36px rows, 360px
Several accordion sections openThe panel scrolled further with each clickOne open section
"More / Less" inside a sectionIt hid options without making the panel clearerEverything visible
Each section restyled as its own islandIt lost the accordion's continuityThe accordion header with an icon
A hybrid of rail and accordion"poco sensato"One navigation, chosen in Settings
Inline dropdowns"devi scrollare"Overlays anchored to the row
A dock with its own rowThe canvas shrank when a menu openedA floating bar
A dimmed modal for pickersIt hid the content being changedNo backdrop
Code miniatures as theme thumbnailsAll themes looked alike at card sizeA window schematic in the theme's colours
A palette strip per themeIt showed colours, not the lookThe same schematic
Full-width buttons in toasts and dialogs"orrendi"Inline action; ghost tertiary on the left
A floating chip with × over the code"arraffazzonato"A marker in the gutter
Dropdowns to manage animation stepsIndirect and slowInline cards and direct manipulation
Draggable bezier handlesToo fiddly for the value they addRead-only curve and a typed value
A blocking "What's new" dialogIt interrupted workCorner card, dots, archive
A toast pointing to "7 new things" in SettingsIt sent the user away from their workDots on the controls themselves
A 9.5px timeline labelUnreadable11px minimum
Glass window style, dot grid backgroundsGlossy and busyHairline, flat or accent wash
title attributes for descriptionsSlow, unstyled, unreachable by touchA hover card
A status footer for ambient state"un po fuorviante"A header control shown only when it needs action
A full screen with "Back to …"It hid the workA tab in an island
A formatting toolbar under a text input"non servono a niente"Shortcuts that render as you type
A generic icon and the same label on every rowEvery row looked the sameThe item's own mark in the leading slot

Where the kit disagrees with Inkstone

The kit's tokens were measured from CodeImage, so they carry CodeImage's drift along with its decisions. These are the known gaps, each one waiting for a decision.

AreaTodayProposal
Surface namessurface-canvas is the island, surface-panel is the pageName by role: page, island, field, floating
Floating fillKit menu #282828; dialog and command menu #1d1d1dOne floating fill
Light rampIsland and field almost identical; CodeImage patches it in seven placesA light ramp with a visible field step
Text greysEight tokens and five greys in dark mode; light default and muted identical; inverted hierarchy in CodeImage lightPrimary, secondary and disabled
SelectionKit listbox fills the selected row with blueNeutral fill
RadiusEleven tokens; buttons at 9px, dialogs at 14px, the toolbar at 18pxThe nesting table
Selection ringDrawn with inset shadow, outline or border in different placesoutline with a negative offset
FocusMostly 2px offset, 3px in the accordion2px offset, inside the row in packed lists and toolbars
MotionButton press 200ms ease; focus ease-in; dialog ease-in-out keyframesThe movements on the Motion page
Island gapCodeImage sits 8px from the edge and between islands6px (--cui-space-1-5)
Breakpoints767, 768 and 769px768 / 769 only
Export colourCodeImage's Export still uses the old kit blue #0072f5--cui-action-brand-base
Tags, keycaps, gripsThree tag styles, three keycap styles, two gripsOne each

Open questions

  • Modes that take space. CodeImage's Animate timeline moves the frame when it opens. Should a mode float like every other panel, or is it allowed to take space? See Layout.
  • Light mode. Light mode is a supported theme, but it has received less review than dark mode. It needs its own pass through every rule on these pages.

On this page