Perform a meticulous final pass to catch the small details that separate good work from great work.
Design System Discovery
Before polishing, understand the system you are polishing toward:
- Find the design system: Search for design system documentation, component libraries, style guides, or token definitions. Study the core patterns: color tokens, spacing scale, typography styles, component API.
- Note the conventions: How are shared components imported? What spacing scale is used? Which colors come from tokens vs hard-coded values? What motion and interaction patterns are established?
- Identify drift: Where does the target feature deviate from the system? Hard-coded values that should be tokens, custom components that duplicate shared ones, spacing that doesn't match the scale.
If a design system exists, polish should align the feature with it. If none exists, polish against the conventions visible in the codebase.
Pre-Polish Assessment
Understand the current state and goals:
Review completeness:
- Is it functionally complete?
- Are there known issues to preserve (mark with TODOs)?
- What's the quality bar? (MVP vs flagship feature?)
- When does it ship? (How much time for polish?)
Identify polish areas:
- Visual inconsistencies
- Spacing and alignment issues
- Interaction state gaps
- Copy inconsistencies
- Edge cases and error states
- Loading and transition smoothness
CRITICAL: Polish is the last step, not the first. Don't polish work that's not functionally complete.
Polish Systematically
Work through these dimensions methodically:
Visual Alignment & Spacing
- Pixel-perfect alignment: Everything lines up to grid
- Consistent spacing: All gaps use spacing scale (no random 13px gaps)
- Optical alignment: Adjust for visual weight (icons may need offset for optical centering)
- Responsive consistency: Spacing and alignment work at all breakpoints
- Grid adherence: Elements snap to baseline grid
Check:
- Enable grid overlay and verify alignment
- Check spacing with browser inspector
- Test at multiple viewport sizes
- Look for elements that "feel" off
Typography Refinement
- Hierarchy consistency: Same elements use same sizes/weights throughout
- Line length: 45-75 characters for body text
- Line height: Appropriate for font size and context
- Widows & orphans: No single words on last line
- Hyphenation: Appropriate for language and column width
- Kerning: Adjust letter spacing where needed (especially headlines)
- Font loading: No FOUT/FOIT flashes
Color & Contrast
- Contrast ratios: All text meets WCAG standards
- Consistent token usage: No hard-coded colors, all use design tokens
- Theme consistency: Works in all theme variants
- Color meaning: Same colors mean same things throughout
- Accessible focus: Focus indicators visible with sufficient contrast
- Tinted neutrals: No pure gray or pure black—add subtle color tint (0.01 chroma)
- Gray on color: Never put gray text on colored backgrounds—use a shade of that color or transparency
Interaction States
Every interactive element needs all states:
- Default: Resting state
- Hover: Subtle feedback (color, scale, shadow)
- Focus: Keyboard focus indicator (never remove without replacement)
- Active: Click/tap feedback
- Disabled: Clearly non-interactive
- Loading: Async action feedback
- Error: Validation or error state
- Success: Successful completion
Missing states create confusion and broken experiences.
Micro-interactions & Transitions
- Smooth transitions: All state changes animated appropriately (150-300ms)
- Consistent easing: Use ease-out-quart/quint/expo for natural deceleration. Never bounce or elastic—they feel dated.
- No jank: 60fps animations, only animate transform and opacity
- Appropriate motion: Motion serves purpose, not decoration
- Reduced motion: Respects
prefers-reduced-motion
Content & Copy
- Consistent terminology: Same things called same names throughout
- Consistent capitalization: Title Case vs Sentence case applied consistently
- Grammar & spelling: No typos
- Appropriate length: Not too wordy, not too terse
- Punctuation consistency: Periods on sentences, not on labels (unless all labels have them)
Icons & Images
- Consistent style: All icons from same family or matching style
- Appropriate sizing: Icons sized consistently for context
- Proper alignment: Icons align with adjacent text optically
- Alt text: All images have descriptive alt text
- Loading states: Images don't cause layout shift, proper aspect ratios
- Retina support: 2x assets for high-DPI screens
Forms & Inputs
- Label consistency: All inputs properly labeled
- Required indicators: Clear and consistent
- Error messages: Helpful and consistent
- Tab order: Logical keyboard navigation
- Auto-focus: Appropriate (don't overuse)
- Validation timing: Consistent (on blur vs on submit)
Edge Cases & Error States
- Loading states: All async actions have loading feedback
- Empty states: Helpful empty states, not just blank space
- Error states: Clear error messages with recovery paths
- Success states: Confirmation of successful actions
- Long content: Handles very long names, descriptions, etc.
- No content: Handles missing data gracefully
- Offline: Appropriate offline handling (if applicable)
Responsiveness
- All breakpoints: Test mobile, tablet, desktop
- Touch targets: 44x44px minimum on touch devices
- Readable text: No text smaller than 14px on mobile
- No horizontal scroll: Content fits viewport
- Appropriate reflow: Content adapts logically
Performance
- Fast initial load: Optimize critical path
- No layout shift: Elements don't jump after load (CLS)
- Smooth interactions: No lag or jank
- Optimized images: Appropriate formats and sizes
- Lazy loading: Off-screen content loads lazily
Code Quality
- Remove console logs: No debug logging in production
- Remove commented code: Clean up dead code
- Remove unused imports: Clean up unused dependencies
- Consistent naming: Variables and functions follow conventions
- Type safety: No TypeScript
any or ignored errors
- Accessibility: Proper ARIA labels and semantic HTML
Polish Checklist
Go through systematically:
IMPORTANT: Polish is about details. Zoom in. Squint at it. Use it yourself. The little things add up.
NEVER:
- Polish before it's functionally complete
- Spend hours on polish if it ships in 30 minutes (triage)
- Introduce bugs while polishing (test thoroughly)
- Ignore systematic issues (if spacing is off everywhere, fix the system)
- Perfect one thing while leaving others rough (consistent quality level)
- Create new one-off components when design system equivalents exist
- Hard-code values that should use design tokens
Final Verification
Before marking as done:
- Use it yourself: Actually interact with the feature
- Test on real devices: Not just browser DevTools
- Ask someone else to review: Fresh eyes catch things
- Compare to design: Match intended design
- Check all states: Don't just test happy path
Clean Up
After polishing, ensure code quality:
- Replace custom implementations: If the design system provides a component you reimplemented, switch to the shared version.
- Remove orphaned code: Delete unused styles, components, or files made obsolete by polish.
- Consolidate tokens: If you introduced new values, check whether they should be tokens.
- Verify DRYness: Look for duplication introduced during polishing and consolidate.
Remember: You have impeccable attention to detail and exquisite taste. Polish until it feels effortless, looks intentional, and works flawlessly. Sweat the details - they matter.
Related
layout — fix the underlying spacing scale, hierarchy, and grid first when the composition itself is what feels wrong; polish refines, it does not restructure.
1---2name: polish3description: Runs the last pass over a functionally complete feature — pixel alignment, interaction and loading states, empty and error states, copy consistency, transition smoothness, and micro-details measured against the design system. Requires the work to be finished first; it refines, it never restructures. Use when the user asks for polish, finishing touches, a pre-launch review, or wants to go from good to great. To fix the underlying composition instead, use `layout`.4---5
6Perform a meticulous final pass to catch the small details that separate good work from great work.
7
8## Design System Discovery
9
10Before polishing, understand the system you are polishing toward:
11
121. **Find the design system**: Search for design system documentation, component libraries, style guides, or token definitions. Study the core patterns: color tokens, spacing scale, typography styles, component API.
132. **Note the conventions**: How are shared components imported? What spacing scale is used? Which colors come from tokens vs hard-coded values? What motion and interaction patterns are established?
143. **Identify drift**: Where does the target feature deviate from the system? Hard-coded values that should be tokens, custom components that duplicate shared ones, spacing that doesn't match the scale.
15
16If a design system exists, polish should align the feature with it. If none exists, polish against the conventions visible in the codebase.
17
18## Pre-Polish Assessment
19
20Understand the current state and goals:
21
221. **Review completeness**:
23 - Is it functionally complete?
24 - Are there known issues to preserve (mark with TODOs)?
25 - What's the quality bar? (MVP vs flagship feature?)
26 - When does it ship? (How much time for polish?)
27
282. **Identify polish areas**:
29 - Visual inconsistencies
30 - Spacing and alignment issues
31 - Interaction state gaps
32 - Copy inconsistencies
33 - Edge cases and error states
34 - Loading and transition smoothness
35
36**CRITICAL**: Polish is the last step, not the first. Don't polish work that's not functionally complete.
37
38## Polish Systematically
39
40Work through these dimensions methodically:
41
42### Visual Alignment & Spacing
43
44- **Pixel-perfect alignment**: Everything lines up to grid
45- **Consistent spacing**: All gaps use spacing scale (no random 13px gaps)
46- **Optical alignment**: Adjust for visual weight (icons may need offset for optical centering)
47- **Responsive consistency**: Spacing and alignment work at all breakpoints
48- **Grid adherence**: Elements snap to baseline grid
49
50**Check**:
51
52- Enable grid overlay and verify alignment
53- Check spacing with browser inspector
54- Test at multiple viewport sizes
55- Look for elements that "feel" off
56
57### Typography Refinement
58
59- **Hierarchy consistency**: Same elements use same sizes/weights throughout
60- **Line length**: 45-75 characters for body text
61- **Line height**: Appropriate for font size and context
62- **Widows & orphans**: No single words on last line
63- **Hyphenation**: Appropriate for language and column width
64- **Kerning**: Adjust letter spacing where needed (especially headlines)
65- **Font loading**: No FOUT/FOIT flashes
66
67### Color & Contrast
68
69- **Contrast ratios**: All text meets WCAG standards
70- **Consistent token usage**: No hard-coded colors, all use design tokens
71- **Theme consistency**: Works in all theme variants
72- **Color meaning**: Same colors mean same things throughout
73- **Accessible focus**: Focus indicators visible with sufficient contrast
74- **Tinted neutrals**: No pure gray or pure black—add subtle color tint (0.01 chroma)
75- **Gray on color**: Never put gray text on colored backgrounds—use a shade of that color or transparency
76
77### Interaction States
78
79Every interactive element needs all states:
80
81- **Default**: Resting state
82- **Hover**: Subtle feedback (color, scale, shadow)
83- **Focus**: Keyboard focus indicator (never remove without replacement)
84- **Active**: Click/tap feedback
85- **Disabled**: Clearly non-interactive
86- **Loading**: Async action feedback
87- **Error**: Validation or error state
88- **Success**: Successful completion
89
90**Missing states create confusion and broken experiences**.
91
92### Micro-interactions & Transitions
93
94- **Smooth transitions**: All state changes animated appropriately (150-300ms)
95- **Consistent easing**: Use ease-out-quart/quint/expo for natural deceleration. Never bounce or elastic—they feel dated.
96- **No jank**: 60fps animations, only animate transform and opacity
97- **Appropriate motion**: Motion serves purpose, not decoration
98- **Reduced motion**: Respects `prefers-reduced-motion`
99
100### Content & Copy
101
102- **Consistent terminology**: Same things called same names throughout
103- **Consistent capitalization**: Title Case vs Sentence case applied consistently
104- **Grammar & spelling**: No typos
105- **Appropriate length**: Not too wordy, not too terse
106- **Punctuation consistency**: Periods on sentences, not on labels (unless all labels have them)
107
108### Icons & Images
109
110- **Consistent style**: All icons from same family or matching style
111- **Appropriate sizing**: Icons sized consistently for context
112- **Proper alignment**: Icons align with adjacent text optically
113- **Alt text**: All images have descriptive alt text
114- **Loading states**: Images don't cause layout shift, proper aspect ratios
115- **Retina support**: 2x assets for high-DPI screens
116
117### Forms & Inputs
118
119- **Label consistency**: All inputs properly labeled
120- **Required indicators**: Clear and consistent
121- **Error messages**: Helpful and consistent
122- **Tab order**: Logical keyboard navigation
123- **Auto-focus**: Appropriate (don't overuse)
124- **Validation timing**: Consistent (on blur vs on submit)
125
126### Edge Cases & Error States
127
128- **Loading states**: All async actions have loading feedback
129- **Empty states**: Helpful empty states, not just blank space
130- **Error states**: Clear error messages with recovery paths
131- **Success states**: Confirmation of successful actions
132- **Long content**: Handles very long names, descriptions, etc.
133- **No content**: Handles missing data gracefully
134- **Offline**: Appropriate offline handling (if applicable)
135
136### Responsiveness
137
138- **All breakpoints**: Test mobile, tablet, desktop
139- **Touch targets**: 44x44px minimum on touch devices
140- **Readable text**: No text smaller than 14px on mobile
141- **No horizontal scroll**: Content fits viewport
142- **Appropriate reflow**: Content adapts logically
143
144### Performance
145
146- **Fast initial load**: Optimize critical path
147- **No layout shift**: Elements don't jump after load (CLS)
148- **Smooth interactions**: No lag or jank
149- **Optimized images**: Appropriate formats and sizes
150- **Lazy loading**: Off-screen content loads lazily
151
152### Code Quality
153
154- **Remove console logs**: No debug logging in production
155- **Remove commented code**: Clean up dead code
156- **Remove unused imports**: Clean up unused dependencies
157- **Consistent naming**: Variables and functions follow conventions
158- **Type safety**: No TypeScript `any` or ignored errors
159- **Accessibility**: Proper ARIA labels and semantic HTML
160
161## Polish Checklist
162
163Go through systematically:
164
165- [ ] Visual alignment perfect at all breakpoints
166- [ ] Spacing uses design tokens consistently
167- [ ] Typography hierarchy consistent
168- [ ] All interactive states implemented
169- [ ] All transitions smooth (60fps)
170- [ ] Copy is consistent and polished
171- [ ] Icons are consistent and properly sized
172- [ ] All forms properly labeled and validated
173- [ ] Error states are helpful
174- [ ] Loading states are clear
175- [ ] Empty states are welcoming
176- [ ] Touch targets are 44x44px minimum
177- [ ] Contrast ratios meet WCAG AA
178- [ ] Keyboard navigation works
179- [ ] Focus indicators visible
180- [ ] No console errors or warnings
181- [ ] No layout shift on load
182- [ ] Works in all supported browsers
183- [ ] Respects reduced motion preference
184- [ ] Code is clean (no TODOs, console.logs, commented code)
185
186**IMPORTANT**: Polish is about details. Zoom in. Squint at it. Use it yourself. The little things add up.
187
188**NEVER**:
189
190- Polish before it's functionally complete
191- Spend hours on polish if it ships in 30 minutes (triage)
192- Introduce bugs while polishing (test thoroughly)
193- Ignore systematic issues (if spacing is off everywhere, fix the system)
194- Perfect one thing while leaving others rough (consistent quality level)
195- Create new one-off components when design system equivalents exist
196- Hard-code values that should use design tokens
197
198## Final Verification
199
200Before marking as done:
201
202- **Use it yourself**: Actually interact with the feature
203- **Test on real devices**: Not just browser DevTools
204- **Ask someone else to review**: Fresh eyes catch things
205- **Compare to design**: Match intended design
206- **Check all states**: Don't just test happy path
207
208## Clean Up
209
210After polishing, ensure code quality:
211
212- **Replace custom implementations**: If the design system provides a component you reimplemented, switch to the shared version.
213- **Remove orphaned code**: Delete unused styles, components, or files made obsolete by polish.
214- **Consolidate tokens**: If you introduced new values, check whether they should be tokens.
215- **Verify DRYness**: Look for duplication introduced during polishing and consolidate.
216
217Remember: You have impeccable attention to detail and exquisite taste. Polish until it feels effortless, looks intentional, and works flawlessly. Sweat the details - they matter.
218
219## Related
220
221- `layout` — fix the underlying spacing scale, hierarchy, and grid first when the composition itself is what feels wrong; polish refines, it does not restructure.