Initial commit: FA 2.0 Design System foundation

Token pipeline (Style Dictionary v4, DTCG format):
- Primitive tokens: colour palettes (brand, sage, neutral, feedback),
  typography (3 font families, 21-variant type scale), spacing (4px grid),
  border radius, shadows, opacity
- Semantic tokens: text, surface, border, interactive, feedback colours;
  typography roles; layout spacing
- Component tokens: Button (4 sizes), Input (2 sizes)
- Generated outputs: CSS custom properties, JS ES6 module, flat JSON

Atoms (3 components):
- Button: contained/soft/outlined/text × primary/secondary, 4 sizes,
  loading state, underline for text variant
- Typography: 21 variants across display/heading/body/label/caption/overline,
  maxLines truncation
- Input: external label, helper text, error/success validation,
  start/end icons, required indicator, 2 sizes, multiline support

Infrastructure:
- MUI v5 theme with full token mapping
- Storybook 8 with autodocs
- Claude Code agents and skills for token/component workflows
- Design system documentation and cross-session memory

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 15:08:15 +11:00
commit 732c872576
56 changed files with 12690 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
name: create-tokens
description: Create design tokens from brand colours, fonts, and reference material
argument-hint: "[brand colours, fonts, or Figma URL]"
---
Create design tokens for the FA Design System.
Use the token-architect agent to handle this task. The user's input follows — it may include brand colours, font choices, reference images, or Figma URLs.
**Instructions for the agent:**
1. Read all memory files and conventions before starting
2. If the user provides a Figma URL, use the Figma MCP to extract design context
3. Create primitive tokens (colour scales, typography, spacing, effects)
4. Create semantic tokens (map primitives to design intent)
5. Run `npm run build:tokens` to generate outputs
6. Update the MUI theme in `src/theme/index.ts` to use generated values
7. Update all memory files when done
User input: $ARGUMENTS