You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend-design/skills/frontend-design/SKILL.md
+228Lines changed: 228 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -455,3 +455,231 @@ When implementing frontend:
455
455
- Comments for non-obvious choices
456
456
457
457
Remember: Claude is capable of extraordinary creative work. Commit fully to a distinctive vision that could only have been designed for this specific context.
458
+
459
+
## Micro-Interaction Polish
460
+
461
+
The difference between good and exceptional interfaces lies in microscopic details that users feel but don't consciously notice. These patterns make interfaces feel "expensive" and polished.
462
+
463
+
### 1. Typography Enhancement
464
+
465
+
**Text Wrapping for Headlines**:
466
+
```css
467
+
/* Prevents awkward widows in headlines */
468
+
.hero-title {
469
+
text-wrap: balance; /* Optimizes line breaks for headlines */
470
+
}
471
+
472
+
/* For multi-line text where you want pretty breaks */
473
+
.description {
474
+
text-wrap: pretty; /* Last line minimum 4 characters */
475
+
}
476
+
```
477
+
- Use `balance` for headlines, titles, and short text blocks
478
+
- Use `pretty` for descriptions, summaries, and body text where you want to avoid orphans
479
+
480
+
**Font Smoothing**:
481
+
```css
482
+
body {
483
+
-webkit-font-smoothing: antialiased;
484
+
-moz-osx-font-smoothing: grayscale;
485
+
}
486
+
```
487
+
- Critical for Mac rendering—removes "thin" look from fonts
488
+
- Makes text appear more substantial and premium
489
+
- Apply globally to `body` or typography containers
490
+
491
+
**Tabular Numbers**:
492
+
```css
493
+
.price, .metric, .stat {
494
+
font-variant-numeric: tabular-nums;
495
+
}
496
+
```
497
+
- Essential for data, prices, metrics—prevents jitter when numbers animate
498
+
- Use for anything that changes value dynamically
499
+
- Avoids visual shifting during countdowns, tickers, or live data
0 commit comments