Skip to sheet

P-000Overview

Overview

Primitives, patterns and components for Rook’s product screens: Rook Library, the Portal, the docs and release notes.

Start here

Four entry points. Read them in this order the first time; after that, jump straight to the sheet you need.

Principles

What every screen we build should do, whether it lists details in the Library or seats in the Portal.

01 · Clarity over decoration
Engineers read our screens to make decisions. Hierarchy, labels and alignment carry the design; ornament doesn’t.
02 · Dense but calm
A detail grid or a members roster shows a lot at once. Every size sits on the 8px grid, so dense screens still read in order.
03 · Every state designed
Rest, hover, focus, pressed, disabled, empty, loading and failed are part of the spec, not left to the build.
04 · Accessible by default
WCAG 2.2 AA is the floor: 4.5:1 text, a visible focus ring, full keyboard use, never color alone.

Component status

What ships in src/components/ui today. Stable parts were restyled for depth; new parts replace markup that was built by hand; planned parts are designed first.

ComponentSourceNotesStatus
Button@/components/ui/buttonRestyled: edge, pressed inset, 40px.Stable
Input, Textarea@/components/ui/input · textareaRecessed, strong edge.Stable
Field@/components/ui/fieldLabel, hint and error.Stable
Badge@/components/ui/badgeThe one pill: 24px, 8px radius.Stable
StatusBadge, Tag@/components/library/StatusBadgeDot and word; built on Badge.Stable
Alert@/components/ui/alertFlat; no shadow.Stable
Sheet@/components/ui/sheetOverlay shadow, no border.Stable
Table@/components/ui/tableRuled; sortable header.Stable
Dialog@/components/ui/dialogReplaces the hand-built edit dialog.New
Lightbox@/components/ui/lightboxFull-screen drawing viewer.New
Menu@/components/ui/menuThe account menu.New
Switch@/components/ui/switchReview switches.New
SegmentedControl@/components/ui/segmented-controlRecessed track, raised segment.New
NativeSelect@/components/ui/native-selectA field with a chevron.New
RadioGroup, RadioCard@/components/ui/radio-groupImport matches.New
Collapsible@/components/ui/collapsibleOlder release notes.New
Card@/components/ui/cardResting shadow; hover edge.New
Skeleton@/components/ui/skeletonLoading placeholders.New
EmptyState@/components/ui/empty-stateWith the dog, or inline.New
SearchField, SearchTrigger@/components/ui/search-fieldField with a magnifier; palette trigger.New
SectionHeading@/components/ui/section-headingTitle, count, action, ink rule.New
MetaLine@/components/ui/meta-lineFacts joined with a middle dot.New
ListRow@/components/ui/list-rowTitle, meta, trailing action.New
KeyValueList@/components/ui/key-value-listRuled facts.New
NavTabs@/components/ui/nav-tabsRoute tabs with a cyan underline.New
Meter@/components/ui/meterNamed seats.New
LoadMore@/components/ui/load-moreThe next page of a list.New
Avatar, Kbd@/components/ui/avatar · kbdInitials; keyboard keys.New
DownloadButton@/components/ui/download-buttonWith the downloading swap.New
Toast—Inline alerts cover it today.Planned
Tooltip—Not yet needed.Planned
Tabs (in-page)—NavTabs covers route tabs.Planned