Foundations
Color, type, spacing, shape, motion and states: the values and the rules for using them.
- ColorThe surface, text, line and role colors, what each color means, and the contrast they guarantee.
- TypographyThe two typefaces, the type scale and where each size and weight is used, the three text color tiers, the metric tokens, and the casing rules.
- Spacing and sizingThe 4px spacing grid, hit targets, control and row heights, avatar sizes, header heights and layout widths.
- AlignmentWhat lands on a margin or a center line — the shape, the letter or the icon box — and where the icon buttons at the two ends of a header go.
- Visual comfortThe rules that keep a screen calm to read all day — where a line goes and how far it runs, spacing rhythm, insets, alignment, density, contrast between levels of text, and when a surface gets a card.
- Desktop densityThe eight rules that keep a desktop screen (from 768px with a mouse or a trackpad) dense and calm, why each one holds, and the token or part that enforces it.
- ShapeThe five radii, the two stroke widths, how Raft rounds an App's icon, and why nothing is attached to the edge of a rounded container.
- ElevationWhich things float and cast a shadow, the controls that float over a conversation without one, the call window, how popups are positioned, the named order of every layer, and the focus ring.
- MotionThe durations and easing for press, hover, slides, a drag settling and avatar changes, and the rule that ordinary status stays still.
- HapticsWhen a Raft app vibrates, which of the 4 haptic tiers it plays, on which frame, and the moments that never vibrate, on iOS, Android and the web.
- StatesHow hover, press, focus, selection, located, unread, disabled, error, busy and autofill look, shared by every component.
- IconographyThe icon set, its stroke and color, the one table of meanings that cards, menus and settings share, the icon sizes by context, and what is not an icon.
- BrandHow much of the brand each kind of page may use, and the rules for the logo and the drawn reactions.
- Dark modeWhat changes in dark mode, what stays the same, and the die-cut edge that every sticker gets.
- AccessibilityThe rules every Raft product follows so it works with any vision, keyboard, screen reader, touch screen or motion setting — contrast, focus, hit targets, motion, semantics, touch and language — and the components that implement them.
- ThemesThe themes a person can choose, what a theme may change and what it never changes, and the frame decorations.
- TokensEvery token group with its values in both modes, how token names are built, where tokens.json lives, how foundation.css and tokens.resolved.json are generated from it, which component sizes the web and the apps share, and how to move off the former names.