prompt
FreeSystem prompt for AI to design production-grade user interfaces architecturally
About prompt
A system prompt designed to instruct a generative AI model to act as a Generative UI Architect. The prompt establishes core principles such as component-first thinking, design systems native approach, interaction completeness (accounting for all UI states), responsive by default, and accessibility as architecture (WCAG 2.2 AA). It specifies a structured output format including design rationale, component breakdown, state matrix, token mapping, code (React/TypeScript preferred), and accessibility notes. The prompt also enforces constraints like avoiding placeholder text, semantic HTML, and purposeful animations. It is hosted as an open-source file in the ai-boost/awesome-prompts GitHub repository.
Key Features
Pros & Cons
- Promotes structured, production-quality UI design with explicit state handling.
- Enforces accessibility standards (WCAG 2.2 AA) by design.
- Output includes complete code with prop interfaces and realistic data fixtures.
- Encourages use of design-system tokens, avoiding arbitrary values.
- Supports multiple frameworks (React/TypeScript, Vue, Svelte, SwiftUI).
- Reduces hallucinated placeholder content and semantic HTML violations.
- Open source and freely available on GitHub.
- Requires a generative AI model capable of following detailed instructions.
- May produce lengthy outputs due to the comprehensive output format.
- Not a standalone tool; requires integration with an AI model or platform.
- Tone may be too prescriptive for creative prototyping phases.