All posts
Brand & UI/UX
3 min read• 12/2/2026

Designing for Generative UI: Beyond Static Figma Tokens

Static design systems break when interfaces are synthesized at runtime by LLMs. Here is how to architect fluid component contracts for generative UI.

Share X LinkedIn

Tip: use ← / → to browse posts.

Designing for Generative UI: Beyond Static Figma Tokens
## The Death of the Canvas-First Design System For nearly a decade, modern product teams operated under a comfortable paradigm: designers build atomic tokens in Figma, engineers map those tokens to CSS variables or Tailwind primitives, and QA validates pixel parity against a static mockup. This pipeline works brilliantly when human beings determine every screen state before code is written. That era is over. As LLMs transition from conversational text outputs to streaming structured UI payloads (JSON-driven ASTs rendering dynamically generated components), static component libraries crumble. When an interface is synthesized on the fly based on user intent, viewport physics, and real-time contextual data, your design system cannot merely be a collection of styled boxes. It must become an enforceable runtime constraint engine. If your design team is still handing off 40 artboards representing every permutation of a modal, you are accumulating architectural debt that will paralyze your product within twelve months. ## Component Synthesis and the Token Collapse When an AI model decides to assemble a comparison table, an inline action card, and an interactive telemetry chart on the fly, traditional CSS utility classes fail in two distinct ways: * **Semantic Hallucination:** Models frequently pair visually incompatible tokens (e.g., nesting heavy border radiuses within condensed data grids, or mixing conflicting elevation levels). * **Context Invalidation:** A layout optimized for a mobile portrait viewport gets populated with desktop-density elements because the model lacks spatial awareness of surrounding dynamic components. To survive generative rendering, we must invert the relationship between designers and tokens. Designers should no longer design *surfaces*; they must define *grammars* and *invariant boundaries*. ### The Three Laws of Runtime UI Contracts 1. **Zero Raw Styling Primitives Exposed to Models:** Never let an LLM emit CSS properties like `margin-top: 18px` or even `p-4`. The model must emit abstract structural nodes; the client-side renderer resolves layout. 2. **Context-Aware Token Resolution:** An alert component rendered inside a dynamic side-drawer must automatically shed its background fill and downscale its header typography based on inherited container query tokens. 3. **Strict Fallback Envelopes:** If a synthesized component exceeds pre-calculated bounding coordinates or introduces layout shifts exceeding 0.05 CLS, the client engine must instantly downgrade the render to a structured data card. ## Architecting Semantic Schemas for Generative Renders Instead of generating arbitrary React components, your runtime must ingest a bounded, strongly typed component tree. This payload maps directly into a deterministic client-side rendering engine that strictly controls typography, density, and spatial rhythm. ```json { "$schema": "https://brand.bettercallhashim.com/v2/generative-slot.json", "density": "compact", "intent": "transactional_confirmation", "root": { "type": "Surface", "elevation": "overlay", "children": [ { "type": "MetricSummary", "variant": "delta_positive", "value": "+$4,120.00", "context": "Calculated ARR increase" }, { "type": "ActionGroup", "distribution": "space-between", "actions": [ { "label": "Reject Changes", "role": "secondary" }, { "label": "Apply Patch", "role": "primary", "actionId": "patch_883" } ] } ] } } ``` By feeding the AI a schema containing strictly defined `types` rather than visual handles, the brand system guarantees that every element matches typographic scales, accessibility contrasts, and focus states natively. ## Moving from Visual QA to Statistical Brand Alignment How do product designers audit an app whose screens they will never personally inspect? We must replace manual visual reviews with programmatic design audits. ### Telemetry-Driven Design Heuristics Deploy headless synthetic sessions that prompt the underlying model with thousands of conversational scenarios. Run automated accessibility and hierarchy scanners across the rendered DOM nodes: * **Contrast Ratios:** Dynamic backgrounds must continuously satisfy WCAG AAA standards across all generated color palettes. * **Typographic Hierarchy Checks:** Verify that every dynamically populated screen maintains a singular H1 equivalent, with mathematical ratio compliance across heading children. * **Density Cohesion:** Calculate whitespace-to-content ratios across all generated surfaces to ensure the UI feels calm rather than cramped. Design is no longer about drawing fixed boundaries. It is about writing the mathematical rules that prevent chaos when the software designs itself.
design systems
generative ui
tokens
ux architecture
Share X LinkedIn

What clients say

Real reviews from founders and teams we've shipped with.

5.0 · 6 reviews
"Tailwind v4 + design tokens system Hashim delivered scales across four brands. Rock solid."
Nora E.
Design Systems, Halofold
"AI SDK integration for streaming tool-calls was textbook. Our agents finally feel alive."
Bilal H.
AI Lead, Agentworks
"From concept to launch in weeks. The browser project set a new bar for our team."
Vikram J.
Founder, Finup Browser
"SEO went from invisible to page-one in three months. Technical, content, and schema — all dialed in."
Karan V.
CMO, Brightscale
"Our design system in Figma → shadcn/ui pipeline just works. Ship velocity doubled."
Meera T.
Head of Design, Northbeam
"Real-time data, clean charts, zero downtime. Exactly what a trading platform should be."
Chen H.
CTO, Gold Online Trade