elegant-design
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.
Install
mkdir -p .claude/skills/elegant-design && curl -L -o skill.zip "https://mcp.directory/api/skills/download/226" && unzip -o skill.zip -d .claude/skills/elegant-design && rm skill.zipInstalls to .claude/skills/elegant-design
About this skill
Designing Elegant Interfaces
Philosophy
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:
- Clarity over cleverness - Users should never wonder what to do next
- Consistency over novelty - Patterns should repeat predictably
- Performance over features - Fast, smooth interactions trump visual complexity
- Accessibility always - Design for all users from the start
- Progressive disclosure - Reveal complexity only when needed
- Intentional friction - Make destructive actions harder, constructive actions effortless
When to Use This Skill
Use this skill when:
- Building web applications with React/Next.js/similar frameworks
- Creating developer tools or technical interfaces
- Designing interfaces with chat, terminals, or code display
- Implementing real-time or streaming features
- Ensuring accessibility and responsive design
- Working with shadcn/ui, daisyUI, or HeroUI design systems
Design Process Workflow
Follow this workflow for optimal results:
1. Discovery & Planning (15-30 min)
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:
- Observe - What information does the user need?
- Orient - How do they make sense of it?
- Decide - What choices are available?
- Act - How do they execute?
Document States:
- Entry points (how users arrive)
- Core loops (repeated actions)
- Success states (goals achieved)
- Failure states (errors, recovery paths)
- Edge cases (empty, loading, error, extreme data)
List Affordances: Identify every UI element needed:
- Navigation (movement between sections)
- Actions (buttons, links, controls)
- Inputs (forms, editors, pickers)
- Feedback (success, error, loading)
- Content (text, images, data)
- Wayfinding (breadcrumbs, progress)
Before Building Custom Components:
- Search shadcn/ui first (https://ui.shadcn.com)
- Check daisyUI (https://daisyui.com)
- Explore HeroUI (https://heroui.com)
- Build custom only when necessary
2. Design Foundation (20-40 min)
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 breakpoints
Quick Reference:
- Typography: Geist for UI, JetBrains Mono for code (14px minimum)
- Spacing: 8px base system (0.5rem, 1rem, 1.5rem, 2rem, 3rem, 4rem, 6rem, 8rem)
- Colors: Semantic tokens (--color-background, --color-primary, --color-error, etc.)
- Layout: Mobile-first, 12-column grid, generous white space
3. Interactive Elements (30-60 min)
For sophisticated interactive features, reference the specialized guides:
Chat & Messaging:
- Read
interactive/chat-and-messaging.mdwhen building conversational interfaces - Covers message states, streaming, auto-scrolling, markdown rendering
Terminals & Code Display:
- Read
interactive/terminals-and-code.mdfor terminal emulators, syntax highlighting, semantic highlighting - Covers ANSI colors, Shiki integration, copy buttons, line highlighting
Streaming & Loading:
- Read
interactive/streaming-and-loading.mdfor progressive loading, streaming text, optimistic updates - Covers skeleton screens, progress indicators, loading hierarchies
Diffs & Logs:
- Read
interactive/diffs-and-logs.mdfor version control UIs, log viewers - Covers split/unified diffs, character-level changes, virtual scrolling
4. Implementation (1-3 hours)
Build Components:
- Read
implementation/components-and-accessibility.mdfor component architecture and WCAG compliance - Use atomic design: atoms → molecules → organisms → templates → pages
- Ensure keyboard navigation and screen reader support
Optimize Performance:
- Read
implementation/performance.mdfor Core Web Vitals optimization - Lazy load, code split, optimize images, measure with Lighthouse
Test & Refine:
- Read
implementation/testing-and-qa.mdfor comprehensive testing approach - Test on multiple devices, screen sizes, and with accessibility tools
5. Validation & Refinement
Pre-Launch Checklist:
- User flows tested and OODA loops optimized
- All states handled (empty, loading, error, success)
- Mobile responsive (tested on real devices)
- Accessibility compliant (WCAG AA)
- Performance measured (Lighthouse score > 90)
- Geist used for UI, JetBrains Mono for code
- Design system components used where possible
- Consistent spacing and typography
- Both light and dark modes work
- Keyboard navigation complete
- Interactive elements polished (see interactive guides)
Quick Decision Tree
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
Design Systems Priority
-
shadcn/ui (https://ui.shadcn.com) - PRIMARY CHOICE
- Excellent accessibility defaults
- Radix UI primitives
- Tailwind-based, customizable
- Copy-paste into project
-
daisyUI (https://daisyui.com)
- Semantic component names
- Tailwind plugin
- Rapid prototyping
-
HeroUI (https://heroui.com)
- Modern, polished
- Strong design language
- Product interfaces
See reference/design-systems.md for detailed comparison and usage patterns.
Typography Standards
Use these fonts exclusively:
-
Geist (https://vercel.com/font) - For ALL interface text
- UI labels, body text, headings
- 95% of your typography
-
JetBrains Mono (https://jetbrains.com/mono) - For ALL code/technical content
- Code blocks, terminals, logs, diffs
- 14px minimum size
- Enable ligatures
Never mix multiple sans-serif or multiple monospace fonts.
See foundation/typography.md for complete guidance.
Inspiration Sites
Study these for design patterns:
- Vercel (https://vercel.com) - Generous white space, clear typography
- Hex (https://hex.tech) - Data-dense but organized
- Baseten (https://docs.baseten.co) - Clear documentation structure
- Weather Underground (https://wunderground.com) - Complex data, clean presentation
- Ghostty (https://ghostty.org) - Modern terminal, elegant design
Common Anti-Patterns
Avoid these mistakes:
- ❌ Building custom components when design system has them
- ❌ Using absolute positioning for layout
- ❌ Animating expensive properties (width, height)
- ❌ Skipping mobile testing
- ❌ Ignoring accessibility
- ❌ Using
<div>for everything - ❌ Mixing multiple monospace fonts
- ❌ Auto-scrolling when user is reading
- ❌ Showing raw ANSI codes in terminals
- ❌ Forgetting empty/loading/error states
See reference/anti-patterns.md for complete list with explanations.
Iterative Development
For simple interfaces (single page, few components):
- Start with foundation (read foundation files)
- Use design system components
- Test and refine
For complex interfaces (multiple features, interactive elements):
- Map flows and create diagrams
- Establish foundation (read foundation files)
- Build one feature at a time (read relevant interactive files)
- Test each feature before moving to next
- Optimize and polish (read implementation files)
For developer tools or technical interfaces:
- Map OODA loops carefully
- Read ALL interactive files (chat, terminals, code, streaming, diffs, logs)
- Focus on keyboard navigation and performance
- Test with actual technical content
Getting Help
If unsure where to start:
- Read the philosophy section above
- Follow the Design Process Workflow
- Reference specific guides as needed
If design feels off:
- Check against principles (clarity, consistency, performance)
- Review anti-patterns list
- Study inspiration sites
- Test with real users
If implementation is slow:
- Use design system components first
- Don't build what exists
- Focus on one feature at a time
- Test early and often
File Organization
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)
Remember
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.
More by rand
View all →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
rust-coding-skill
UtakataKyosui
Guides Claude in writing idiomatic, efficient, well-structured Rust code using proper data modeling, traits, impl organization, macros, and build-speed best practices.
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.