Skip to content

Commit ddd3ed4

Browse files
authored
adding elegant-design skill
1 parent bcb6b23 commit ddd3ed4

16 files changed

Lines changed: 3728 additions & 0 deletions

skills/elegant-design/README.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Elegant Design Skill for Claude Code
2+
3+
A comprehensive, modular skill system for creating world-class, accessible, responsive interfaces with sophisticated interactive elements.
4+
5+
## Structure
6+
7+
This skill follows Anthropic's best practices with progressive disclosure:
8+
9+
```
10+
elegant-design/
11+
├── SKILL.md (302 lines - main entry point)
12+
├── foundation/ (design system basics)
13+
│ ├── typography.md (Geist, JetBrains Mono, scales)
14+
│ ├── colors-and-spacing.md (palettes, tokens, dark mode)
15+
│ └── layout-patterns.md (grids, responsive, containers)
16+
├── interactive/ (sophisticated UI elements)
17+
│ ├── chat-and-messaging.md (chat UIs, streaming)
18+
│ ├── terminals-and-code.md (terminals, syntax highlighting)
19+
│ ├── streaming-and-loading.md (progressive loading, skeletons)
20+
│ └── diffs-and-logs.md (version control UI, log viewers)
21+
├── implementation/ (building & optimizing)
22+
│ ├── components-and-accessibility.md (WCAG AA compliance)
23+
│ ├── performance.md (Core Web Vitals, optimization)
24+
│ └── testing-and-qa.md (comprehensive testing)
25+
└── reference/ (tools & resources)
26+
├── design-systems.md (shadcn, daisyUI, HeroUI)
27+
├── tools-and-libraries.md (complete toolkit)
28+
└── anti-patterns.md (what not to do)
29+
```
30+
31+
## Usage with Claude Code
32+
33+
### Quick Start
34+
35+
1. Read `SKILL.md` first - it's the orchestrator (under 500 lines)
36+
2. Follow the workflow for your project type
37+
3. Reference specific guides as needed
38+
39+
### Decision Tree
40+
41+
**Need basics?** → Read foundation/ files
42+
**Building chat?** → Read interactive/chat-and-messaging.md
43+
**Building terminal/code editor?** → Read interactive/terminals-and-code.md
44+
**Need loading states?** → Read interactive/streaming-and-loading.md
45+
**Building diffs/logs?** → Read interactive/diffs-and-logs.md
46+
**Ready to implement?** → Read implementation/ files
47+
**Need tools or anti-patterns?** → Read reference/ files
48+
49+
### Key Features
50+
51+
- **Typography**: Geist for UI, JetBrains Mono for code
52+
- **Chat interfaces**: Streaming, auto-scroll, markdown rendering
53+
- **Terminals**: ANSI colors, command history, beautiful aesthetics
54+
- **Code display**: Shiki syntax highlighting, copy buttons, line numbers
55+
- **Streaming**: Progressive loading, skeleton screens, optimistic updates
56+
- **Diffs & logs**: Split/unified views, virtual scrolling, filtering
57+
- **Accessibility**: WCAG 2.1 AA compliant from the start
58+
- **Performance**: Core Web Vitals optimization
59+
60+
## Design Process
61+
62+
1. **Discovery** (15-30 min): Map flows, OODA loops, identify affordances
63+
2. **Foundation** (20-40 min): Typography, colors, spacing, layout
64+
3. **Interactive** (30-60 min): Build sophisticated elements
65+
4. **Implementation** (1-3 hours): Components, accessibility, performance
66+
5. **Validation**: Test, refine, optimize
67+
68+
## Best Practices Compliance
69+
70+
This skill follows all Anthropic best practices:
71+
- ✅ Main SKILL.md under 500 lines (302 lines)
72+
- ✅ Progressive disclosure (13 referenced files)
73+
- ✅ One level deep references (no nested refs)
74+
- ✅ Descriptive file names
75+
- ✅ Consistent terminology
76+
- ✅ Forward slashes in paths
77+
- ✅ No time-sensitive information
78+
- ✅ Gerund form name ("Designing Elegant Interfaces")
79+
- ✅ Clear description with what+when
80+
81+
## For Developers
82+
83+
**Simple projects**: Read SKILL.md + foundation files
84+
**Complex projects**: Read SKILL.md + all interactive files
85+
**Developer tools**: Read ALL interactive files + performance
86+
87+
## Typography Standards
88+
89+
- **Geist** (https://vercel.com/font) - ALL UI text
90+
- **JetBrains Mono** (https://jetbrains.com/mono) - ALL code (14px min)
91+
92+
Never mix multiple sans-serif or monospace fonts.
93+
94+
## Design Systems Priority
95+
96+
1. shadcn/ui (https://ui.shadcn.com) - PRIMARY
97+
2. daisyUI (https://daisyui.com) - Alternative
98+
3. HeroUI (https://heroui.com) - Alternative
99+
100+
## License
101+
102+
MIT

0 commit comments

Comments
 (0)