Back to Devoured - November 13, 2026
DEVOURED
Why a Button Takes a Month

Why a Button Takes a Month

Design South Left
DS Contracts is a project using deterministic JSON contracts to synchronize React components and Figma assets to bridge the design-to-code gap.
What: The system validates design intent by testing for visual discrepancies like icon rotation and font naming between code and design files. In a test with IBM's Carbon, only 40 of 84 button variants passed strict validation.
Why it matters: This approach replaces imprecise AI-based design-to-code tools with rigorous, contract-based verification, which is essential for maintaining large-scale design systems.
Deep dive
  • Uses JSON contracts to define layout, tokens, and properties
  • Moves away from AI approximation toward strict visual comparison
  • Discovered significant drift in icon dimensions and layout in IBM's Carbon library
  • Focuses on automated failure reporting rather than just generating code
Decoder
  • Design Tokens: The raw values (colors, spacing, typography) used to maintain a design system across different platforms.
  • Deterministic: A system that produces the same output for the same input, eliminating the ambiguity or 'hallucinations' found in current AI tools.
Original article

DS Contracts is an experimental system that converts React components into editable Figma components and back using deterministic JSON contracts that describe layout, tokens, properties, and visual appearance. A test with IBM's Carbon design system generated 84 button variants in roughly 30 seconds, but only 40 passed validation, exposing subtle differences in icon dimensions, font naming, rotations, and layout behavior. Rather than relying on AI-generated approximations, the project uses strict visual comparisons, explicit failure reporting, and planned held-out tests to measure whether conversions genuinely preserve design intent.

Explore all 57 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi