This repo contains the single-page pedagogical demo behind design.trilogyai.co. It explains how design standards and agent skills can give coding agents better design memory, sharper defaults, and clearer review checks.
The page is intentionally small. It is a teaching surface for three ideas:
- DESIGN.md stores design facts in a portable file: YAML front matter for tokens, plus Markdown rationale for how the design system should be used.
- Design tokens are named design decisions such as colors, type, spacing, radii, and component values. They let an agent preserve intent instead of copying isolated CSS values.
- OKLCH is a CSS color format that separates lightness, chroma, and hue. It is useful for palettes because lightness steps behave more predictably than older color models.
The demo enumerates a small stack of design and frontend quality skills:
impeccablefrontend-designmake-interfaces-feel-betterweb-design-guidelinesuserinterface-wikiaccessibilitycore-web-vitalsreact-best-practicesimagegen
The page presents these as a workflow: Impeccable supplies taste, refusal rules, and context loading; DESIGN.md supplies portable design memory; focused quality skills cover accessibility, Core Web Vitals, React performance, UI mechanics, and visual craft.
The repo includes a sample DESIGN.md. The page features the standard lint command:
npx @google/design.md lint DESIGN.mdThat check catches invalid token values, missing foundations, broken references, and contrast issues before agents reuse bad design context.
npm install
npm run dev
npm run buildFirebase Hosting serves the production build from dist/.