Prompier
ApprovedDesign and mediadesign-systemaccessibility

Design system tokens and component spec

PL by Prompier Library ☆☆☆☆☆ New Version 1 · updated Nov 10, 2026
Reviewed by moderator Prompier Library on Nov 10, 2026. Checked for personal data, secrets, risky instructions and a clear license.

About this prompt

Creates a design system specification with the reasoning behind it: color, type, spacing and radius tokens, component state rules, contrast checks and do/don't pairs. Use when starting a product's visual system or making an inconsistent UI coherent.

Prompt text

You are a design systems lead. Your goal is a specification that designers and developers (or a coding assistant) can apply consistently, with the reasons written down so nobody overrides them by accident. Inputs - Product and brand personality (audience, three adjectives, any brand colors or fonts): {{product_and_brand}} - Platforms (web, iOS, Android, desktop): {{platforms}} - Existing assets or style guide notes, if any: {{existing_assets}} - Components needed first (for example buttons, inputs, cards, navigation): {{key_components}} How to work 1. If there are no brand colors and the personality is unclear, ask 1-2 questions about tone (for example calm and editorial vs. bold and playful). Otherwise proceed. 2. Write the rationale first: brand voice, what the palette should feel like, readability goals. Derive token values from that rationale. 3. Define tokens with semantic names (primary, on-primary, surface, on-surface, error, success, warning) rather than color names. Include a type scale (display, headings, body sizes, label) with size, weight and line height; a spacing scale; radius steps; and elevation levels. 4. For each component in {{key_components}}, give purpose, the tokens it uses, and a state matrix: default, hover, pressed, focus, disabled, error where relevant. Specify the focus indicator. 5. Validate: every text/background pair reaches at least 4.5:1 contrast (3:1 for large text), every token is used by at least one component, and every component reference resolves to a token. Flag any pair you cannot verify exactly. 6. Add 3-5 do/don't pairs and a note on reduced motion. Output format ## Overview and rationale ## Tokens (one fenced YAML block) ## Typography and layout rules (grid, breakpoints, max widths) ## Components (per component: purpose, tokens, state table, accessibility notes) ## Do and don't ## Validation summary (contrast results, unused tokens, component count) Quality bar - Components reference tokens only, never raw hex values. - Prefer system or variable fonts unless the brand requires a specific typeface. - If a dark theme is requested, give a separate token set with the same names. - Keep prose tight; the tokens and tables carry the detail.

Variables

4 variables
VariableWhat to enterExampleDefault
{{product_and_brand}}Your product, its audience, three words for its personality, and any brand colors or fontsAcme Budget app for young savers; friendly, calm, trustworthy; brand teal #0F8B8D—
{{platforms}}Where the product runsWeb and iOS—
{{existing_assets}}Paste any existing style guide notes, or write noneLogo in teal and navy, headings in a rounded sans serif, nothing else written down—
{{key_components}}The interface pieces you need specified firstButtons, text inputs, cards, top navigation, toast messages—

Try it

Live preview
Your product, its audience, three words for its personality, and any brand colors or fonts
Where the product runs
Paste any existing style guide notes, or write none
The interface pieces you need specified first
Your finished prompt
You are a design systems lead. Your goal is a specification that designers and developers (or a coding assistant) can apply consistently, with the reasons written down so nobody overrides them by accident. Inputs - Product and brand personality (audience, three adjectives, any brand colors or fonts): {{product_and_brand}} - Platforms (web, iOS, Android, desktop): {{platforms}} - Existing assets or style guide notes, if any: {{existing_assets}} - Components needed first (for example buttons, inputs, cards, navigation): {{key_components}} How to work 1. If there are no brand colors and the personality is unclear, ask 1-2 questions about tone (for example calm and editorial vs. bold and playful). Otherwise proceed. 2. Write the rationale first: brand voice, what the palette should feel like, readability goals. Derive token values from that rationale. 3. Define tokens with semantic names (primary, on-primary, surface, on-surface, error, success, warning) rather than color names. Include a type scale (display, headings, body sizes, label) with size, weight and line height; a spacing scale; radius steps; and elevation levels. 4. For each component in {{key_components}}, give purpose, the tokens it uses, and a state matrix: default, hover, pressed, focus, disabled, error where relevant. Specify the focus indicator. 5. Validate: every text/background pair reaches at least 4.5:1 contrast (3:1 for large text), every token is used by at least one component, and every component reference resolves to a token. Flag any pair you cannot verify exactly. 6. Add 3-5 do/don't pairs and a note on reduced motion. Output format ## Overview and rationale ## Tokens (one fenced YAML block) ## Typography and layout rules (grid, breakpoints, max widths) ## Components (per component: purpose, tokens, state table, accessibility notes) ## Do and don't ## Validation summary (contrast results, unused tokens, component count) Quality bar - Components reference tokens only, never raw hex values. - Prefer system or variable fonts unless the brand requires a specific typeface. - If a dark theme is requested, give a separate token set with the same names. - Keep prose tight; the tokens and tables carry the detail.

Sample output

## Overview and rationale A bookkeeping tool for small business owners: calm, trustworthy, quietly confident. Neutral surfaces keep numbers readable; one deep teal accent marks actions. ## Tokens colors: primary: '#0F5C5C' on-primary: '#FFFFFF' surface: '#F7F8F8' on-surface: '#1C2526' error: '#B3261E' spacing: { xs: 4px, sm: 8px, md: 16px, lg: 24px, xl: 40px } radius: { sm: 4px, md: 8px, full: 9999px } ... ## Components Button (primary) | State | Background | Text | Notes | |---|---|---|---| | Default | primary | on-primary | radius.md | | Focus | primary | on-primary | 2px outline, 2px offset | | Disabled | surface | on-surface at 40% | not focusable | ... ## Validation summary - on-primary on primary: 7.9:1 (pass) - Unused tokens: 0 - Components: 6

An example the author shared. Your result will differ.

Reviews

No written reviews yet. If you have used this prompt, tell others how it went.