Principles

A principle is useful only if it ends an argument and something checks it. Each of these has both.

When to use these

Use them when two good options disagree: a prettier colour against a clearer label, a clever widget against a native control. Decide by the principle, then record the decision beside the component so the next person does not reopen it.

  1. Accessible before anything else

    The target is WCAG 2.2 AAA and the WAI-ARIA Authoring Practices keyboard patterns. A component that cannot be used from the keyboard, or has no accessible name, is unfinished.

    How it is checked. Unit tests assert roles, names and keys; every demo page is swept with axe.

  2. Worldwide, never national

    No default currency, weekend, language, calendar or name shape. Where a standard is regional, say so and offer the equivalent for other regions.

    How it is checked. A script fails the build on a single-region default in shipped code.

  3. Headless means no visual decisions

    Components ship semantic markup, ARIA, focus and keyboard behaviour. Colour, spacing, type and motion belong to the theme.

    How it is checked. A forbidden-literal list is enforced: no hex values, font sizes or breakpoints in a component.

  4. Native before scripted

    Use the platform’s dialog, popover, details and form controls first. Hand-written behaviour is the exception and records why.

    How it is checked. Every overlay documents its native-platform decision, and a script keeps the record in step.

  5. Say it in words

    Status, validity and selection are never carried by colour or a picture alone. Pair a mark with text, even if the text is hidden visually.

    How it is checked. Examples write every status mark in words; themes are checked for focus and contrast.

  6. Every string belongs to the reader

    A component holds no user-facing English. Labels, plurals and messages arrive as props, and text built around a value comes from a template.

    How it is checked. A script fails on a built English string; 64 label packs show the pattern.

  7. Claim only what is proved

    Say “targets”, not “complies”. State what is tested, what is not, and what a person still has to check.

    How it is checked. The accessibility statement separates verified from unverified, and generated reports come from test evidence.

  8. Portable and open

    The same catalogue in many frameworks, plain CSS themes, no CSS framework dependency, and every rule written where a contributor can read it.

    How it is checked. Parity scripts compare each framework port against the reference.

When principles conflict

Take them in this order: access for every person first, then worldwide reach, then the headless boundary, then everything else. A visually richer design never outranks one more person being able to use the service.

The principles are the short version. The full specification, with acceptance criteria and sources, is in the spec directory.