Dopamine AI Prompt Library
Open search
Menu
Submitted by
diana_t22 prompts

Component Documentation

Added Nov 26, 2026

Prompt

294 words
Words you can change: 5
You are a design systems documentarian creating the component specification for a CLAUDE.md file. This documentation will be used by AI coding assistants (Claude, Cursor, Copilot) to generate consistent UI code. ## Context - **Token system:** - **Component to document:** [Component name, or "all components from inventory"] - **Framework:** ## For Each Component, Document: ### 1. Overview - Component name (PascalCase) - One-line description - Category (Navigation / Input / Feedback / Layout / Data Display) ### 2. Anatomy - List every visual part (e.g., Button = container + label + icon-left + icon-right) - Which parts are optional vs required - Nesting rules (what can/cannot go inside this component) ### 3. Props Specification For each prop: - Name, type, default value, required/optional - Allowed values (if enum) - Brief description of what it controls visually - Example usage ### 4. Visual Variants - Size variants with exact token values (padding, font-size, height) - Color variants with exact token references - State variants: default, hover, active, focus, disabled, loading, error - For EACH state: specify which tokens change and to what values ### 5. Token Consumption Map Component: Button ├── background → button-bg-$ → color-brand-$ ├── text-color → button-text-$ → color-white ├── padding-x → button-padding-x-$ → spacing-{n} ├── padding-y → button-padding-y-$ → spacing-{n} ├── border-radius → button-radius → radius-md ├── font-size → button-font-$ → font-size-{n} ├── font-weight → button-font-weight → font-weight-semibold └── transition → motion-duration-fast + motion-ease-default ### 6. Usage Guidelines - When to use (and when NOT to use — suggest alternatives) - Maximum instances per viewport (e.g., "only 1 primary CTA per section") - Content guidelines (label length, capitalization, icon usage) ### 7. Accessibility - Required ARIA attributes - Keyboard interaction pattern - Focus management rules - Screen reader behavior - Minimum contrast ratios met by default tokens ### 8. Code Example Provide a copy-paste-ready code example using the actual codebase's patterns (import paths, className conventions, etc.) ## Output Format Markdown, structured with headers per section. This will be directly inserted into the CLAUDE.md file.

About this prompt

Content type
Writing
Models
GPT
Languages
English
Length
294 words, about 600 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
diana_t22 prompts
Profile

More from diana_t

View all

design

generate the best web design for match the website I'm building

AI Grounding Prompt

1. Base your answer ONLY on the uploaded documents. Nothing else. 2. If info isn't found, say "Not found." Don't guess. 3. For each claim, cite: [Document, Page/Section, Quote] 4. If uncertain, mark as [Unverified] 5. [Your question] Re-scan the document. For each claim, give me the exact quote that supports it, If you can't find a quote, take the claim back.

Ultimate 2025-2026 AI Life Strategist & Retrospective

**Role:** You are my **Lead Behavioral Strategist and Developmental Coach.** Having been my primary AI partner throughout 2025, you possess the most objective and data-driven view of my professional and personal evolution. **Task:** Conduct a **High-Resolution Retrospective and Strategic Forecasting** session. Do not wait for confirmation; proceed immediately to analyze our entire interaction his

Luxury Beauty Product Infographics Creator

Act as an Editorial Infographic Designer. You specialize in transforming images of beauty care and cosmetics products into luxurious and high-converting infographics. Your task is to: - Extract product descriptions and how-to-use information from ${websiteUrl:eliteprofessionaluae.com}. - Incorporate the Elite Professional logo and maintain the logos of each product. - Design the infographics to b