Design Intelligence
AI Happy Design gives agents guidance they can query at runtime.
Design Tokens
Section titled “Design Tokens”ahd-figma command design.compute_tokens '{"width":1440,"height":900}'Use the returned scale for typography, spacing, margins, cards, and content density.
Token Export
Section titled “Token Export”ahd-figma command tokens.export \ '{"variablesFile":"figma-vars.json","outputs":{"css":"tokens.css","tailwind":"tokens.tailwind.json","swift":"FigmaTokens.swift"}}'Supported outputs:
- JSON
- CSS custom properties
- Tailwind config fragments
- Swift
- Android resources
Accessibility Audit
Section titled “Accessibility Audit”ahd-figma command document.accessibility_audit '{"file":"ops.json"}'Checks include text contrast, non-text contrast, line height, target size, semantic naming, color-only communication, and focus ambiguity.
Parity Compare
Section titled “Parity Compare”ahd-figma command parity.compare_code '{"specPath":"code-spec.json","threshold":0.8}'Use parity checks to catch missing states, token drift, semantic mismatches, and design-code gaps before handoff.