// Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content. Use when building user interfaces that need professional polish and developer-focused features.
| name | elegant-design |
| description | Create world-class, accessible, responsive interfaces with sophisticated interactive elements including chat, terminals, code display, and streaming content. Use when building user interfaces that need professional polish and developer-focused features. |
World-class design is intentional, accessible, and delightful. Every element serves a purpose, every interaction feels natural, and the experience adapts gracefully across contexts.
Core Principles:
Use this skill when:
Follow this workflow for optimal results:
Map User Experience:
# Create flow diagrams with Graphviz
cat > user-flow.dot << 'EOF'
digraph UserFlow {
Start -> "Observe State"
"Observe State" -> "Orient Understanding"
"Orient Understanding" -> "Decide Action"
"Decide Action" -> "Act Execute"
"Act Execute" -> "Observe State" [label="OODA loop"]
}
EOF
dot -Tpng user-flow.dot -o user-flow.png
OODA Loop Mapping: For each major user goal, optimize the cycle:
Document States:
List Affordances: Identify every UI element needed:
Before Building Custom Components:
Establish Visual System:
Read the detailed foundation guides:
foundation/typography.md - Font selection (Geist, JetBrains Mono), scales, loadingfoundation/colors-and-spacing.md - Color palettes, spacing systems, dark modefoundation/layout-patterns.md - Grids, containers, white space, responsive breakpointsQuick Reference:
For sophisticated interactive features, reference the specialized guides:
Chat & Messaging:
interactive/chat-and-messaging.md when building conversational interfacesTerminals & Code Display:
interactive/terminals-and-code.md for terminal emulators, syntax highlighting, semantic highlightingStreaming & Loading:
interactive/streaming-and-loading.md for progressive loading, streaming text, optimistic updatesDiffs & Logs:
interactive/diffs-and-logs.md for version control UIs, log viewersBuild Components:
implementation/components-and-accessibility.md for component architecture and WCAG complianceOptimize Performance:
implementation/performance.md for Core Web Vitals optimizationTest & Refine:
implementation/testing-and-qa.md for comprehensive testing approachPre-Launch Checklist:
Need to understand the basics?
โ Read foundation/ files first
Building chat or messaging?
โ Read interactive/chat-and-messaging.md
Building terminal or code editor?
โ Read interactive/terminals-and-code.md
Need streaming or loading states?
โ Read interactive/streaming-and-loading.md
Building diffs or log viewers?
โ Read interactive/diffs-and-logs.md
Ready to implement?
โ Read implementation/ files
Need tools or want to avoid mistakes?
โ Read reference/ files
shadcn/ui (https://ui.shadcn.com) - PRIMARY CHOICE
daisyUI (https://daisyui.com)
HeroUI (https://heroui.com)
See reference/design-systems.md for detailed comparison and usage patterns.
Use these fonts exclusively:
Geist (https://vercel.com/font) - For ALL interface text
JetBrains Mono (https://jetbrains.com/mono) - For ALL code/technical content
Never mix multiple sans-serif or multiple monospace fonts.
See foundation/typography.md for complete guidance.
Study these for design patterns:
Avoid these mistakes:
<div> for everythingSee reference/anti-patterns.md for complete list with explanations.
For simple interfaces (single page, few components):
For complex interfaces (multiple features, interactive elements):
For developer tools or technical interfaces:
If unsure where to start:
If design feels off:
If implementation is slow:
elegant-design/
โโโ SKILL.md (you are here)
โโโ foundation/
โ โโโ typography.md (fonts, scales, loading)
โ โโโ colors-and-spacing.md (palettes, spacing system, dark mode)
โ โโโ layout-patterns.md (grids, containers, responsive)
โโโ interactive/
โ โโโ chat-and-messaging.md (chat UIs, streaming messages)
โ โโโ terminals-and-code.md (terminals, syntax highlighting)
โ โโโ streaming-and-loading.md (progressive loading, skeletons)
โ โโโ diffs-and-logs.md (version control UI, log viewers)
โโโ implementation/
โ โโโ components-and-accessibility.md (architecture, WCAG)
โ โโโ performance.md (Core Web Vitals, optimization)
โ โโโ testing-and-qa.md (testing checklist, tools)
โโโ reference/
โโโ design-systems.md (shadcn, daisyUI, HeroUI details)
โโโ tools-and-libraries.md (complete tool list)
โโโ anti-patterns.md (what not to do, with explanations)
World-class design is invisible. Users shouldn't notice your clever solutions - they should simply accomplish their goals effortlessly and maybe smile along the way.
Start simple, iterate based on real use. Don't build everything at once. Build what's needed, test it, refine it, then move to the next feature.
Accessibility is not optional. Design for keyboard navigation, screen readers, and sufficient contrast from the start. Retrofitting is much harder.
Performance matters. A beautiful interface that's slow is a bad interface. Measure performance early and often.