| name | optical-refinement |
| description | Reviews designs for optical balance issues that mathematical precision misses. Covers typography kerning, visual alignment, spacing rhythm, color weight, and the human touch that distinguishes professional design from AI-generated output. |
Optical Refinement Skill
You are operating with optical refinement capabilities. This skill addresses the fundamental difference between mathematically correct and visually correct design.
Core Philosophy
"The way humans see and process images isn't always going in pair with what the numbers say. What may seem perfectly aligned and balanced for a computer may not seem the same way for your eyes." — Rafal Tomal
Professional designers trust their eyes over rulers. AI uses mathematical precision — which often looks wrong to human eyes. This skill teaches how to identify and correct optical issues.
Why This Matters
Mathematical precision fails because:
- Human vision is not a camera
- We perceive some shapes as "heavier" than others
- Optical illusions affect all viewers consistently
- Context changes how we perceive elements
Examples:
- A mathematically centered circle in a square looks too low
- Letters A and V need tighter kerning than H and I
- A 10px gap after text looks smaller than a 10px gap after an icon
- Warm colors appear to advance; cool colors recede
Category 1: Typography Optical Issues
Kerning and Letter Spacing
How to Check:
- Flip the text upside down (removes semantic reading)
- Squint to blur the letterforms
- Look for "rivers" of white space
- Check if any letter pairs feel disconnected
Correction Approach:
- Space by optical area, not mathematical distance
- Tighten pairs with diagonal/round edges
- Loosen pairs with vertical stems
<kerning_issue>
<location>Element containing the text</location>
<problem_pair>AV, LT, etc.</problem_pair>
<current_spacing>Mathematical spacing</current_spacing>
<recommended_action>Tighten by X units or percentage</recommended_action>
</kerning_issue>
Vertical Rhythm and Line Height
How to Check:
- Measure paragraph "color" — should be even gray when squinted
- Check for "stacking" — lines that feel too tight
- Check for "floating" — lines that feel disconnected
- Compare line spacing to paragraph spacing ratios
Correction Approach:
- Body text: 1.4-1.6x font size
- Headings: 1.1-1.3x font size
- All-caps: 1.0-1.2x font size
- Maintain proportional paragraph spacing (usually 1.5-2x line height)
<rhythm_issue>
<location>Text block or section</location>
<current_line_height>Current value</current_line_height>
<problem>Lines feel too tight/loose because...</problem>
<recommended_line_height>Adjusted value</recommended_line_height>
</rhythm_issue>
Type Size Relationships
How to Check:
- List all font sizes used — are they intentional?
- Do size jumps create clear hierarchy?
- Can you identify the importance of text by size alone?
Correction Approach:
- Use a type scale (1.25, 1.333, 1.5, or 1.618 ratio)
- Larger jumps for clearer hierarchy (don't be timid)
- Fewer sizes, more consistent use
<scale_issue>
<sizes_in_use>12, 14, 16, 18, 20, 24, 32, 48</sizes_in_use>
<problem>Too many sizes / No clear ratio / Hierarchy unclear</problem>
<recommended_scale>base: 16, ratio: 1.25 = 16, 20, 25, 31, 39</recommended_scale>
</scale_issue>
Category 2: Spatial Optical Issues
Visual Centering
How to Check:
- Cover half the container — does the element look centered?
- Squint — where does your eye land?
- Compare to similar elements — is centering consistent?
Common Fixes:
- Play icons: shift right ~5-10% of their width
- Triangles pointing up: shift down slightly
- Text: align to cap-height or x-height, not bounding box
- Icons in circles: adjust per icon shape
<centering_issue>
<element>Play button icon</element>
<container>Circular button</container>
<mathematical_center>50%, 50%</mathematical_center>
<visual_adjustment>Shift right 2px, no vertical change</visual_adjustment>
<reason>Triangle visual weight is left of geometric center</reason>
</centering_issue>
Spacing Consistency
How to Check:
- Do all similar elements feel equally spaced?
- Does spacing create clear groupings?
- Are there any "awkward gaps" or "crowded areas"?
Correction Approach:
- Space by visual separation, not pixels
- Heavier elements need more space
- Group related items with tighter spacing
- Separate unrelated items with more space
<spacing_issue>
<location>Card header area</location>
<elements>Icon, title, subtitle</elements>
<current_spacing>All 8px gaps</current_spacing>
<problem>Icon-to-title gap feels larger than title-to-subtitle</problem>
<recommended_adjustment>Icon-title: 6px, Title-subtitle: 10px</recommended_adjustment>
<reason>Icon has inherent padding; text lines relate more closely</reason>
</spacing_issue>
Edge Alignment
How to Check:
- Turn on alignment guides — do "aligned" elements actually align?
- Does the page feel structured or chaotic?
- Are there hidden alignment lines creating order?
Correction Approach:
- Align to optical edge, not bounding box
- Text should "hang" slightly into margins (optical margin alignment)
- Icons may need individual offsets
- Create consistent alignment zones, then optically adjust
<alignment_issue>
<elements>Paragraph text and bullet icon</elements>
<current_state>Mathematically left-aligned</current_state>
<problem>Bullet feels indented compared to text</problem>
<recommended_adjustment>Shift bullet left 2px to align visually</recommended_adjustment>
</alignment_issue>
Category 3: Color Optical Issues
Perceived Weight
How to Check:
- Does the visual hierarchy match the importance hierarchy?
- Are accent colors being used for the right elements?
- Do any colors "jump out" inappropriately?
Correction Approach:
- Reduce saturation for background elements
- Increase saturation for focal points
- Balance warm/cool to create depth
- Use color weight to reinforce hierarchy
<color_weight_issue>
<element>Secondary action button</element>
<current_color>#FF5733 (saturated orange)</current_color>
<problem>Competes with primary action despite lower importance</problem>
<recommended_adjustment>Desaturate to #D4A57B or switch to neutral</recommended_adjustment>
</color_weight_issue>
Contrast Perception
How to Check:
- Pass WCAG is minimum — does it FEEL readable?
- Check on multiple devices/lighting conditions
- Look for "vibrating" color combinations
Correction Approach:
- Exceed WCAG minimums for body text
- Test with actual content, not placeholder
- Avoid pure black on pure white (too harsh)
- Adjust for adjacent color influence
<contrast_issue>
<element>Body text on colored card</element>
<wcag_ratio>4.8:1 (passes AA)</wcag_ratio>
<problem>Thin font weight makes text feel hard to read</problem>
<recommended_adjustment>Increase font weight OR darken text to 7:1</recommended_adjustment>
</contrast_issue>
Category 4: Component Optical Issues
Icon Consistency
How to Check:
- Line up icons — do they feel the same size?
- Do some icons feel "bolder" than others?
- Is there consistent visual density?
Correction Approach:
- Standardize on one icon set/style
- Adjust individual icons to match visual weight
- Simpler icons may need slight size increase
- Complex icons may need slight size decrease
<icon_issue>
<icons>Menu (3 lines), Search (magnifier), User (person)</icons>
<problem>Search icon feels smaller than others</problem>
<current_size>All 24px</current_size>
<recommended_adjustment>Search icon: 26px to match visual weight</recommended_adjustment>
</icon_issue>
Button and Touch Targets
How to Check:
- Do all buttons feel equally "clickable"?
- Do icon buttons feel balanced?
- Is there enough touch target area? (44px minimum)
Correction Approach:
- Minimum width for short labels
- Optical padding adjustment for icons
- Consider visual padding vs actual padding
<button_issue>
<buttons>"OK" button vs "Cancel Changes" button</buttons>
<current_padding>12px 24px for both</current_padding>
<problem>"OK" feels too narrow despite same padding</problem>
<recommended_adjustment>Add min-width: 80px for short labels</recommended_adjustment>
</button_issue>
Refinement Process
Second Pass — Component Audit
- Check each component category
- Apply category-specific checks
- Document issues found
Third Pass — Context Check
- View in realistic context
- Check responsive breakpoints
- Test on actual devices if possible
Fourth Pass — Fresh Eyes
- Step away, return later
- View as a user would
- Note any remaining friction
Output Format
Key Principle
"Font design is all about minute adjustments to create optically pleasing letterforms."
The same applies to all design. The difference between "pretty good" and "exceptional" is in the optical refinements — the adjustments that defy mathematical precision but satisfy the human eye.