Prompt
Generative UI constraint set
Define the guardrails that keep AI-generated interfaces on-brand, accessible, and usable at runtime.
By Gus · founder — Agentic Design
The prompt
For a generative UI in [DESIGN SYSTEM + GENERATION CONTEXT], define the constraint set the generator must obey. Produce hard rules and soft preferences across: layout (grid, density, hierarchy), tokens (color, type, spacing — from the system), accessibility (contrast, focus order, target size, motion — as non-negotiable floors), and content (tone, length, what it may never generate). Format it so it could be handed to a model as a system prompt.
How to adapt
When the interface is generated at runtime, you can't design every screen — so you design the constraints the generator must obey. This produces the constraint set: the tokens, layout rules, accessibility floors, and content boundaries that make generated UI trustworthy instead of chaotic.
How to adapt
Provide [DESIGN SYSTEM + GENERATION CONTEXT]. The accessibility constraints are non-negotiable — keep them as hard rules, not preferences, in whatever you ship.