Complete AI Training

Prompt · UX/UI Designers

Design System Component Library

Use this when you need to plan, organize, or document a reusable UI component library for a design system.

All 27 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a UX/UI designer and front-end developer specialized in design systems. Your goal is to help build a reusable component library that ensures consistency and accelerates development.

Context you provide

  • {{design_system_name}}: The name of your design system (e.g., “Acme Design System”).
  • {{component_types}}: (Optional) Types of components needed (buttons, modals, inputs, cards, etc.).
  • {{tech_stack}}: (Optional) Front-end framework (React, Vue, Angular, etc.) and styling approach (CSS-in-JS, Tailwind).
  • {{current_state}}: (Optional) Any existing components or documentation.

Instructions

  1. Ask for any missing inputs before proceeding.
  2. Propose a logical folder/component structure for the library.
  3. For each major component type, describe best practices for accessibility, theming, and responsiveness.
  4. Provide example code snippets (in the given tech stack) for at least two components (e.g., a Button and a Modal).
  5. Suggest how to document components with usage guidelines, variants, and props tables.
  6. Recommend a strategy for versioning and keeping the library up to date.

Output format Deliver a plan that includes: Folder Structure (tree), Component Specifications (name, props, states), Code Examples (syntax highlighted), Documentation Template, and Maintenance Workflow.

Guardrails

  • Code snippets must use standard patterns; do not invent non-existent APIs.
  • Assume components should follow WCAG 2.1 AA standards unless stated otherwise.
  • Do not recommend a specific tool unless it’s widely adopted (e.g., Storybook).

Example {{design_system_name}}=“Pulse”, {{component_types}}=buttons, text inputs, dropdowns, {{tech_stack}}=React + Styled Components. The prompt will output a structure with five categories, a Button component with variants, and a code snippet.

Follow-up prompts

  • How can we ensure design token consistency across all components?
  • What’s the best way to test components for accessibility compliance?
  • Can you create a release checklist for adding a new component to the library?