Skip to content

Get started

For developers

Install, import, and the rules the gate enforces.

Run it

Terminal
npm install
npm run dev

# the full gate: tokens, manifest, types, lint, build, axe, screenshots
npm run check

Import

tsx
import { Button, Eyebrow, Display } from "@/ds";

export function Hero() {
  return (
    <>
      <Eyebrow>Case study</Eyebrow>
      <Display as="h1">Calm. Clear. Precise.</Display>
      <Button>Request a project</Button>
    </>
  );
}

Rules the gate enforces

Each rule fails npm run check; none can be switched off in a screen.
  • Only token utilities. Tailwind's default colours, sizes and spacing are switched off; a class without a token produces no CSS and is reported.
  • No arbitrary values, no inline styles, no hex, rgba or px literals.
  • Screens use components from src/ds instead of raw buttons, inputs, tables, dialogs, links and headings.
  • Every documented prop exists on the component's TypeScript type, and every example compiles.
  • Every page passes axe at desktop and phone width, without horizontal overflow.
  • Interactive screens declare their states in states.json; the gate clicks through them.