Guidelines

Principles, foundations, desktop and touch, and which component to reach for.

These guidelines are for the apps built on @orz/ui: tools people keep open all day, used at a desk with a mouse and a keyboard, and on a phone with a thumb. Storybook says what each component takes; these pages say when to reach for it, how big it is on each kind of pointer, and what to do around it.

How a page reads#

Each page opens with its rule in one sentence. A live example follows, built from the real components, with the file it came from behind Source; Pointer and Touch above it preview either kind of pointer on any device. Then come Do and Don't pairs, a decision table where a choice has more than two branches, what changes on each platform, and the Storybook pages for the components the page is about. A page leaves out the parts it has nothing for.

Sources#

Where a page quotes a number from outside this library, it links where the number comes from. The library's own sizes, such as row heights, breakpoints and durations, are its choices and link nothing.

Pages#

Foundations

Platforms

Patterns

Content