gpt-taste
gpt taste
docs-creating-accessible-diagrams
WCAG-compliant Mermaid diagrams using verified accessible color palette. Use when creating diagrams, flowcharts, or any color-dependent visualizations requiring accessibility compliance for color blindness.
Full skill instructions
This Skill provides guidance on creating accessible Mermaid diagrams using a verified color-blind friendly palette that meets WCAG AA standards. Use this when creating visual diagrams to ensure accessibility for all users, including those with color blindness (~300 million people worldwide).
Use this Skill when:
CRITICAL: Use ONLY these colors in all diagrams. This palette is scientifically verified to work for all color blindness types and meets WCAG AA standards.
| Color | Hex Code | Use Cases | WCAG AA (Light) | WCAG AA (Dark) |
|---|---|---|---|---|
| Blue | #0173B2 | Primary elements, main flow | ✅ 8.59:1 (AAA) | ✅ 6.93:1 (AAA) |
| Orange | #DE8F05 | Warnings, decisions, secondary | ✅ 6.48:1 (AAA) | ✅ 5.24:1 (AAA) |
| Teal | #029E73 | Success, validation, tertiary | ✅ 8.33:1 (AAA) | ✅ 6.74:1 (AAA) |
| Purple | #CC78BC | Special states, implementors | ✅ 4.51:1 (AA) | ✅ 3.65:1 (AA) |
| Brown | #CA9161 | Neutral elements, secondary | ✅ 5.23:1 (AAA) | ✅ 4.23:1 (AAA) |
| Black | #000000 | Text on light, borders | ✅ 21.00:1 (AAA) | N/A |
| White | #FFFFFF | Text on dark, backgrounds | N/A | ✅ 21.00:1 (AAA) |
| Gray | #808080 | Disabled, secondary elements | ✅ 7.00:1 (AAA) | ✅ 4.00:1 (AA) |
Quick copy-paste hex codes:
#0173B2 - Blue
#DE8F05 - Orange
#029E73 - Teal
#CC78BC - Purple
#CA9161 - Brown
#000000 - Black
#FFFFFF - White
#808080 - Gray
CRITICAL: Never use these colors where color conveys information:
Exception: Emoji indicators (🔴🟠🟡🟢) can use standard colors when ALWAYS paired with text labels (color is supplementary, not primary identifier).
Always combine color with:
Example:
Color should enhance information already conveyed through other means. A grayscale version should remain understandable.
All text and UI components must meet minimum contrast:
Before publishing diagrams:
Use this as a starting point for all Mermaid diagrams:
%% Color Palette: Blue #0173B2, Orange #DE8F05, Teal #029E73, Purple #CC78BC, Brown #CA9161, Gray #808080
%% All colors are color-blind friendly and meet WCAG AA contrast standards
graph TD
A["Start Process<br/>Primary"]:::blue
B{"Decision Point<br/>Evaluate"}:::orange
C["Success Path<br/>Complete"]:::teal
D["Alternate Path<br/>Optional"]:::gray
A --> B
B -->|Yes| C
B -->|No| D
classDef blue fill:#0173B2,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef orange fill:#DE8F05,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef teal fill:#029E73,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef gray fill:#808080,stroke:#000000,color:#FFFFFF,stroke-width:2px
stroke:#000000 for shape definitioncolor:#FFFFFF for readabilitycolor:#000000 when neededstroke-width:2px for visibilitygraph TD (top-down) for mobile viewingCORRECT - Use double-percent for comments:
%% This is a comment
%% Color palette: Blue #0173B2, Orange #DE8F05
WRONG - Do NOT use this syntax (causes syntax errors):
%%{ This breaks rendering }%%
CRITICAL: Escape special characters in node text AND edge labels to prevent syntax errors:
| Character | Entity Code | Example Usage |
|---|---|---|
( | #40; | A[Function#40;param#41;] |
) | #41; | Same as above |
[ | #91; | B[Array#91;index#93;] |
] | #93; | Same as above |
{ | #123; | C[Object#123;key#125;] |
} | #125; | Same as above |
< | #60; | D[Generic#60;T#62;] |
> | #62; | Same as above |
Edge labels also need escaping:
A -->|Function#40;param#41;| B
Avoid literal quotes - Remove or use descriptive text instead:
F[let x = "hello"] - Breaks renderingF[let x = hello] - Works correctlyF[Variable Assignment] - Descriptive alternative❌ Problem: ~8% of males cannot distinguish red/green
✅ Solution: Use Orange and Teal from verified palette
❌ Problem: Color-blind users can't distinguish elements
✅ Solution: Add text labels, use different shapes, provide context
❌ Problem: Yellow invisible to tritanopia (blue-yellow blindness)
✅ Solution: Use Orange or Teal instead
❌ Problem: Insufficient contrast causes readability issues
✅ Solution: Use verified palette (all colors tested for WCAG AA)
❌ Problem: Inconsistent across platforms
fill: red; /* WRONG */
✅ Solution: Always use hex codes
fill: #de8f05; /* CORRECT */
❌ Problem: Colors may not work in dark backgrounds
✅ Solution: Verified palette works in both light and dark modes
Coblis Simulator: https://www.color-blindness.com/coblis-color-blindness-simulator/
Figma Color Blind Plugin: https://www.figma.com/community/plugin/733159460536249875/Color%20Blind
This Skill integrates with:
Verified Palette (Copy-Paste):
Blue: #0173B2 - Primary flow
Orange: #DE8F05 - Decisions, warnings
Teal: #029E73 - Success, validation
Purple: #CC78BC - Special states
Brown: #CA9161 - Neutral
Gray: #808080 - Secondary, disabled
Black: #000000 - Borders, text
White: #FFFFFF - Text on dark
Mermaid classDef Template:
classDef blue fill:#0173B2,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef orange fill:#DE8F05,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef teal fill:#029E73,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef purple fill:#CC78BC,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef brown fill:#CA9161,stroke:#000000,color:#FFFFFF,stroke-width:2px
classDef gray fill:#808080,stroke:#000000,color:#FFFFFF,stroke-width:2px
Pre-commit Checklist:
See examples.md in this Skill directory for complete working examples:
repository-architecture - Understanding how accessibility fits into governance layershugo-ayokoding-development (Phase 2) - Hugo-specific diagram requirementsfactual-validation-methodology (Phase 2) - Verifying color accessibility claimsNote: This Skill provides action-oriented guidance for creating accessible diagrams. The authoritative Color Accessibility Convention contains complete scientific research, WCAG standards, and detailed testing procedures.
gpt taste
Premium brand-kit image generation for high-end identity systems, logo concepts, and visual-world presentations.
Premium website design-to-code skill that generates visual references first, then builds faithful frontend implementations.
Premium frontend image direction for landing pages and marketing sites, generating one distinct horizontal image per section.
Premium mobile app screen concepts and flows with clean hierarchy, strong imagery, and distinctive art direction.
Emil Kowalski's philosophy on UI polish, component design, and the invisible details that make software feel good.
Frontend design and iteration for production-grade interfaces, from concept to ship.
Reverse-engineer design tokens from public websites into starter token files for your project.
Builds an animation from scratch by making the decisions in the order that determines whether it feels right.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
Chat-to-edit AI studio for product photos, portraits, branding, and video.
Generate your dream room in seconds.
Redesign your interior in seconds using AI
Transform rooms with AI-generated designs.
Transform Your Space with AI-Powered Japanese Interior Designs by Jife
AI-powered wireframes for non-designers.
Revolutionize Property Viewing with AI-Generated Floor Plans and Virtual Tours
Transform sketches into stunning architectural renders with AI.