A local-first multi-agent app development platform, built on PenguinHarness
Icons, status marks and actions move into the shared UI package
- Date: 2026-09-30
- Type: refactor
- Scope:
ui,web,ui-gallery
The first wave of the UI package migration moved the Web App's basic components into @prismshadow/penguin-ui. The web copies were deleted and their importers read the package root; the package components take their copy as props and their colours from theme tokens.
What moved
- Icons: the
ICONSregistry, keyed by what each glyph draws, withGlyphIcon,Chevron, the fixed-grid marks (ChevronDown,CheckIcon,PlusIcon,DownloadIcon,UploadIcon,CloseIcon) andICON_SIZE/ICON_GAP. Feature files' copies of a shared glyph (the plus, the back arrow and chevrons, the rotate arrow, the key, the eye, the book, the clock and others) now read the registry, which gainedplus,key,keyOff,rotateCw,arrowLeft,chevronLeftandchevronRightfor them. - Avatars and logos:
AgentAvatar,UserAvatar, a newAvatarStackin place of two hand-built stacks,ProviderLogoandPenguinLogo. - Status and feedback: a new
Dot,StatusIcon,ActivityIcon(formerlySessionActivityIcon) withBackgroundTasksMarkandScheduleMark,UpdateDotandUpdatePill,Badge(tones by name, plusvariantandsize) with a newCount,SkeletonandEmptyState. - Actions:
Button(alinkvariant,xs/icon-smsizes andloading), a newIconButton, a newLink,CloseButton,CopyButton, a newKbdandHiddenFileInput. - Strings: a
UiStringsprovider carries the package's own accessibility fallbacks (close, copied, loading), which the Web App supplies in the interface language.
Details
- A web guard holds the glyph paths still typed out in feature files to a list keyed by the wave that removes them; a new one fails.
- A new theme token,
--ui-mark-new, colours the update dot. Every theme declares it, and Primer keeps the pale red.
Visible changes in the default theme (Primer)
- Badge and update-pill text 11 → 12 px. Badges come in soft, outline and solid weights; the former
brandbadge is neutral solid, and the "Free" badge is info (sky) instead of yellow. - Status icons 13 → 14 px, with the running state drawn by the Spinner's arc.
- Tone inks (success, attention, danger) one step deeper in light mode.
- The unread dot emerald-500 → emerald-700, at a fixed 6 px.
- Buttons: the
secondaryink one step darker, theghostink one step lighter, hover fills shifted one step. - Links take the link colour token and the external-link glyph instead of "↗".
- Labels styled as buttons (the import controls) take the theme's focus outline on keyboard focus.
- Copy buttons in rows are 20 px squares.
- The close button's hover fill and ink one step lighter.
- The empty-state ink one step lighter.
- Skeletons keep their gray-200 fill, now through the line token.
- Avatar tile inks re-measured against each theme's surfaces.