- Plant the tomatoesAlice Example · due FridayDue soon
- Fix the fenceBob Example
Every shared piece of the suite, drawn from tokens.css and recipes.css. A pane copies the
rules it needs (with node design/embed.mjs) and renames the ui- prefix to its own.
Light theme only. Read DESIGN.md for the rules and the pane contract.
Tokens --sui-*. Primary blue for the header and the one main action; light neutrals everywhere else.
System font, 15 px body, a 4 px grid, 44 px targets. ui-title 24 · ui-heading 20 · ui-subheading 17 · body 15 · ui-small 13.
Title, 24 px
Heading, 20 px
Sub-heading, 17 px
Body text, 15 px, line height 1.5. Bold is 600; no italics or capitals for emphasis.
Small and muted, 13 px: sublines, captions, dates.
ui-header, ui-header-btn, ui-header-apps (current: aria-current="page"), ui-header-app, ui-header-spacer, ui-header-search, avatar. 50 px tall, primary blue, white.
ui-popover ui-launcher › ui-caption, ui-launcher-grid › ui-launcher-tile › ui-launcher-badge (ui-alt for tool-index entries). Menus: ui-popover › ui-menu-head, ui-menu › ui-menu-item.
ui-toolbar › ui-crumbs (last: aria-current="page"), buttons.
ui-list › ui-row (selected: aria-selected="true") › ui-row-icon or avatar, ui-row-main › ui-row-title, ui-row-sub; ui-row-meta (hidden under 520 px), ui-row-actions. 56 px tall.
ui-btn (secondary: light blue) · ui-btn-primary (one per view) · ui-btn-tertiary · ui-btn-danger · ui-btn-icon (needs aria-label) · ui-btn-wide. Pills, 44 px tall. Group: ui-btns.
ui-field › ui-label, ui-input, ui-hint; error: aria-invalid="true"; ui-search wraps an icon and an input; textarea.ui-input.
ui-switch › input[type=checkbox][role=switch] + text. Chips: ui-chips › ui-chip (a filter: button with aria-pressed), ui-chip-primary, -success, -warning, -error.
ui-avatar (32 px; initials, or an img.ui-avatar of the person's photo) · ui-avatar-lg (64 px) · ui-avatar-xl (96 px, a profile or contact header).
ui-empty › ui-empty-icon, ui-empty-title, ui-empty-text, one button.
Add the people you know, and they show up here.
Toast (after an action, 4 s): ui-toasts › ui-toast, -success, -error (role="status" / "alert"). In place: ui-status, -success, -error; a lasting message: ui-note, -success, -warning, -error. Late dates: ui-late.
Saving…
Saved a moment ago
Not saved: you are offline
Due yesterday · a late date uses ui-late (--sui-late)
A plain live region (role="status") with no class: no box, thanks to the base reset.
ui-backdrop › ui-modal (role="dialog", aria-modal) › ui-modal-head (heading + close), ui-modal-body, ui-modal-foot (cancel, then the action, on the right).
The folder and the 14 things in it are deleted from your pod. This cannot be undone.
ui-details (alone; in the shell the column is given) › ui-details-head › ui-details-figure, ui-details-titles › ui-details-title, ui-details-sub; ui-tabs › ui-tab (role="tab", aria-selected); ui-details-body › ui-props. The head leaves room on the right for the shell's close button.
ui-select › select.ui-input · label.ui-btn.ui-file › input[type=file] · ui-checkbox › input.ui-check (ui-check-round for a task tick) · ui-segmented (role="group") › ui-segment (aria-pressed) · in a row: ui-row-check.
ui-fields › ui-field-row › icon, ui-field-row-label, ui-field-row-value, optional ui-field-row-action. For a contact card or a details panel.
Bob Example
Friends
ui-cards (a grid, one column under 300 px each) › ui-card › ui-card-head (icon, ui-card-title, an action), body, ui-card-foot. Dashboard widgets; Settings and Profile sections.
ui-board (scrolls sideways inside itself) › ui-column (--sui-column-width) › ui-column-head, ui-column-card.
ui-viewer (--sui-surface-dark, -text, -muted; buttons inside turn light) · ui-viewer-muted. Long text: ui-reading (--sui-reading-width, 760 px).
A note, a document or a pad is set at the reading width, about seventy characters a line at 15 px, centred in the content column. Wider lines are harder to follow; narrower ones break up every sentence.
What the shell draws: header, navigation (left, a drawer under 900 px), content, details (right, over the content under 1100 px). Shown here in miniature.