Emil's Design Engineering Principles
A comprehensive guide for building polished, accessible web interfaces based on Emil Kowalski's design engineering practices.
Choose the scope
- Broad design-engineering pass: read the references that match the surface
being built or reviewed. Check structure, interaction, accessibility, visual
craft, and performance together.
- Focused polish pass: when a component or small region "feels off," read
focused-polish.md. Keep the pass local unless the cause is
a shared token, primitive, or layout rule.
For motion work, follow
../animate/references/canonical-policy.md
as the canonical policy. It wins when this skill or a companion reference makes
a stronger or conflicting claim. Route to animate, css-animations,
animation-performance, or animation-accessibility as appropriate.
Quick Reference
| Category |
When to Use |
| Focused Polish |
Local spacing, type, surfaces, states, optical fixes |
| Animations |
Enter/exit transitions, easing, springs, performance |
| UI Polish |
Typography, visual design, layout, colors |
| Forms & Controls |
Inputs, buttons, form submission |
| Touch & Accessibility |
Mobile, touch devices, keyboard nav, a11y |
| Component Design |
Compound components, composition, props API |
| Marketing |
Landing pages, blogs, docs sites |
| Performance |
Virtualization, preloading, optimization |
| Design Rules |
Paired right/wrong calls across icons, type, color, IA, interaction, copy |
Core Principles
1. No Layout Shift
Dynamic elements should cause no layout shift. Use hardcoded dimensions, font-variant-numeric: tabular-nums for changing numbers, and avoid font weight changes on hover/selected states.
2. Touch-First, Hover-Enhanced
Design for touch first, then add hover enhancements. Disable hover effects on touch devices. Meet the WCAG target-size baseline and aim for a comfortable 44px touch target. Never rely on hover for core functionality.
3. Keyboard Navigation
Tabbing should work consistently. Only allow tabbing through visible elements. Ensure keyboard navigation scrolls elements into view with scrollIntoView().
4. Accessibility by Default
Every animation needs prefers-reduced-motion support. Every icon button needs an aria label. Every interactive element needs proper focus states.
5. Speed Over Delight
Product UI should be fast and purposeful. Skip animations for frequently-used interactions. Marketing pages can be more elaborate.
Decision Flowcharts
Should I Animate This?
Will users see this 100+ times daily?
├── Yes → Don't animate
└── No
├── Is this user-initiated?
│ └── Yes → Animate with ease-out (150-250ms)
└── Is this a page transition?
└── Yes → Animate (300-400ms max)
What Easing Should I Use?
Is the element entering or exiting?
├── Yes → ease-out
└── No
├── Is it moving on screen?
│ └── Yes → ease-in-out
└── Is it a hover/color change?
├── Yes → ease
└── Default → ease-out
Common Mistakes
| Mistake |
Fix |
transition: all |
Specify exact properties |
| Hover effects on touch |
Use @media (hover: hover) |
| Font weight change on hover |
Use consistent weights |
| Costly layout animation |
Prefer transform/opacity; profile the flow |
| No reduced motion support |
Add prefers-reduced-motion query |
| z-index: 9999 |
Use fixed scale or isolation: isolate |
| Custom page scrollbars |
Only customize scrollbars in small elements |
Review Checklist
When reviewing UI code, check:
Reference Files
For detailed guidance on specific topics:
- animations.md - Easing, timing, springs, performance
- focused-polish.md - Local visual diagnosis and high-value detail work
- ui-polish.md - Typography, shadows, gradients, scrollbars
- forms-controls.md - Inputs, buttons, form patterns
- touch-accessibility.md - Touch devices, keyboard nav, a11y
- component-design.md - Compound components, composition, props API
- marketing.md - Landing pages, blogs, docs
- performance.md - Virtualization, preloading, optimization
1---2name: emil-design-engineering3description: Apply Emil Kowalski's design-engineering craft to polished, accessible web interfaces. Use for broad UI review and implementation across forms, controls, touch behavior, typography, layout stability, component APIs, marketing pages, and performance, or for a focused local polish pass when an interface feels off. Route deep motion work to the focused motion skills.4---56# Emil's Design Engineering Principles78A comprehensive guide for building polished, accessible web interfaces based on Emil Kowalski's design engineering practices.910## Choose the scope1112- **Broad design-engineering pass:** read the references that match the surface13 being built or reviewed. Check structure, interaction, accessibility, visual14 craft, and performance together.15- **Focused polish pass:** when a component or small region "feels off," read16 [focused-polish.md](focused-polish.md). Keep the pass local unless the cause is17 a shared token, primitive, or layout rule.1819For motion work, follow20[../animate/references/canonical-policy.md](../animate/references/canonical-policy.md)21as the canonical policy. It wins when this skill or a companion reference makes22a stronger or conflicting claim. Route to `animate`, `css-animations`,23`animation-performance`, or `animation-accessibility` as appropriate.2425## Quick Reference2627| Category | When to Use |28| ----------------------------------------------- | ---------------------------------------------------- |29| [Focused Polish](focused-polish.md) | Local spacing, type, surfaces, states, optical fixes |30| [Animations](animations.md) | Enter/exit transitions, easing, springs, performance |31| [UI Polish](ui-polish.md) | Typography, visual design, layout, colors |32| [Forms & Controls](forms-controls.md) | Inputs, buttons, form submission |33| [Touch & Accessibility](touch-accessibility.md) | Mobile, touch devices, keyboard nav, a11y |34| [Component Design](component-design.md) | Compound components, composition, props API |35| [Marketing](marketing.md) | Landing pages, blogs, docs sites |36| [Performance](performance.md) | Virtualization, preloading, optimization |37| [Design Rules](design-rules.md) | Paired right/wrong calls across icons, type, color, IA, interaction, copy |3839## Core Principles4041### 1. No Layout Shift4243Dynamic elements should cause no layout shift. Use hardcoded dimensions, `font-variant-numeric: tabular-nums` for changing numbers, and avoid font weight changes on hover/selected states.4445### 2. Touch-First, Hover-Enhanced4647Design for touch first, then add hover enhancements. Disable hover effects on touch devices. Meet the WCAG target-size baseline and aim for a comfortable 44px touch target. Never rely on hover for core functionality.4849### 3. Keyboard Navigation5051Tabbing should work consistently. Only allow tabbing through visible elements. Ensure keyboard navigation scrolls elements into view with `scrollIntoView()`.5253### 4. Accessibility by Default5455Every animation needs `prefers-reduced-motion` support. Every icon button needs an aria label. Every interactive element needs proper focus states.5657### 5. Speed Over Delight5859Product UI should be fast and purposeful. Skip animations for frequently-used interactions. Marketing pages can be more elaborate.6061## Decision Flowcharts6263### Should I Animate This?6465```66Will users see this 100+ times daily?67├── Yes → Don't animate68└── No69 ├── Is this user-initiated?70 │ └── Yes → Animate with ease-out (150-250ms)71 └── Is this a page transition?72 └── Yes → Animate (300-400ms max)73```7475### What Easing Should I Use?7677```78Is the element entering or exiting?79├── Yes → ease-out80└── No81 ├── Is it moving on screen?82 │ └── Yes → ease-in-out83 └── Is it a hover/color change?84 ├── Yes → ease85 └── Default → ease-out86```8788## Common Mistakes8990| Mistake | Fix |91| --------------------------- | ------------------------------------------- |92| `transition: all` | Specify exact properties |93| Hover effects on touch | Use `@media (hover: hover)` |94| Font weight change on hover | Use consistent weights |95| Costly layout animation | Prefer transform/opacity; profile the flow |96| No reduced motion support | Add `prefers-reduced-motion` query |97| z-index: 9999 | Use fixed scale or `isolation: isolate` |98| Custom page scrollbars | Only customize scrollbars in small elements |99100## Review Checklist101102When reviewing UI code, check:103104- [ ] No layout shift on dynamic content105- [ ] Animations have reduced motion support106- [ ] Pointer targets meet WCAG 2.2 AA; touch-heavy controls aim for 44px107- [ ] Hover effects disabled on touch devices108- [ ] Keyboard navigation works properly109- [ ] Icon buttons have aria labels110- [ ] Forms submit with Enter/Cmd+Enter111- [ ] Inputs are 16px+ to prevent iOS zoom112- [ ] No `transition: all`113- [ ] z-index uses fixed scale114115## Reference Files116117For detailed guidance on specific topics:118119- [animations.md](animations.md) - Easing, timing, springs, performance120- [focused-polish.md](focused-polish.md) - Local visual diagnosis and high-value detail work121- [ui-polish.md](ui-polish.md) - Typography, shadows, gradients, scrollbars122- [forms-controls.md](forms-controls.md) - Inputs, buttons, form patterns123- [touch-accessibility.md](touch-accessibility.md) - Touch devices, keyboard nav, a11y124- [component-design.md](component-design.md) - Compound components, composition, props API125- [marketing.md](marketing.md) - Landing pages, blogs, docs126- [performance.md](performance.md) - Virtualization, preloading, optimization