Design Engineering Principles
A comprehensive guide for building polished, accessible web interfaces based on Emil Kowalski's design engineering practices and ibelick's ui-skills.
Quick Reference
| Category |
When to Use |
| Stack Constraints |
Tooling, libraries, Tailwind conventions |
| 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 |
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. Ensure 44px minimum tap targets. 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 |
Animating height/width |
Use transform and opacity only |
| 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:
- stack-constraints.md - Tooling, libraries, Tailwind conventions
- animations.md - Easing, timing, springs, performance
- 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
- stack-constraints.md - Tooling, libraries, conventions
- accessability.md - WCAG checks, visual design review
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: kyh-kyh-io-design-engineering3description: Design Engineering Principles4---56# Design Engineering Principles78A comprehensive guide for building polished, accessible web interfaces based on Emil Kowalski's design engineering practices and ibelick's ui-skills.910## Quick Reference1112| Category | When to Use |13| --- | --- |14| [Stack Constraints](stack-constraints.md) | Tooling, libraries, Tailwind conventions |15| [Animations](animations.md) | Enter/exit transitions, easing, springs, performance |16| [UI Polish](ui-polish.md) | Typography, visual design, layout, colors |17| [Forms & Controls](forms-controls.md) | Inputs, buttons, form submission |18| [Touch & Accessibility](touch-accessibility.md) | Mobile, touch devices, keyboard nav, a11y |19| [Component Design](component-design.md) | Compound components, composition, props API |20| [Marketing](marketing.md) | Landing pages, blogs, docs sites |21| [Performance](performance.md) | Virtualization, preloading, optimization |2223## Core Principles2425### 1. No Layout Shift2627Dynamic 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.2829### 2. Touch-First, Hover-Enhanced3031Design for touch first, then add hover enhancements. Disable hover effects on touch devices. Ensure 44px minimum tap targets. Never rely on hover for core functionality.3233### 3. Keyboard Navigation3435Tabbing should work consistently. Only allow tabbing through visible elements. Ensure keyboard navigation scrolls elements into view with `scrollIntoView()`.3637### 4. Accessibility by Default3839Every animation needs `prefers-reduced-motion` support. Every icon button needs an aria label. Every interactive element needs proper focus states.4041### 5. Speed Over Delight4243Product UI should be fast and purposeful. Skip animations for frequently-used interactions. Marketing pages can be more elaborate.4445## Decision Flowcharts4647### Should I Animate This?4849```50Will users see this 100+ times daily?51├── Yes → Don't animate52└── No53 ├── Is this user-initiated?54 │ └── Yes → Animate with ease-out (150-250ms)55 └── Is this a page transition?56 └── Yes → Animate (300-400ms max)57```5859### What Easing Should I Use?6061```62Is the element entering or exiting?63├── Yes → ease-out64└── No65 ├── Is it moving on screen?66 │ └── Yes → ease-in-out67 └── Is it a hover/color change?68 ├── Yes → ease69 └── Default → ease-out70```7172## Common Mistakes7374| Mistake | Fix |75| --- | --- |76| `transition: all` | Specify exact properties |77| Hover effects on touch | Use `@media (hover: hover)` |78| Font weight change on hover | Use consistent weights |79| Animating `height`/`width` | Use `transform` and `opacity` only |80| No reduced motion support | Add `prefers-reduced-motion` query |81| z-index: 9999 | Use fixed scale or `isolation: isolate` |82| Custom page scrollbars | Only customize scrollbars in small elements |8384## Review Checklist8586When reviewing UI code, check:8788- [ ] No layout shift on dynamic content89- [ ] Animations have reduced motion support90- [ ] Touch targets are 44px minimum91- [ ] Hover effects disabled on touch devices92- [ ] Keyboard navigation works properly93- [ ] Icon buttons have aria labels94- [ ] Forms submit with Enter/Cmd+Enter95- [ ] Inputs are 16px+ to prevent iOS zoom96- [ ] No `transition: all`97- [ ] z-index uses fixed scale9899## Reference Files100101For detailed guidance on specific topics:102103- [stack-constraints.md](stack-constraints.md) - Tooling, libraries, Tailwind conventions104- [animations.md](animations.md) - Easing, timing, springs, performance105- [ui-polish.md](ui-polish.md) - Typography, shadows, gradients, scrollbars106- [forms-controls.md](forms-controls.md) - Inputs, buttons, form patterns107- [touch-accessibility.md](touch-accessibility.md) - Touch devices, keyboard nav, a11y108- [component-design.md](component-design.md) - Compound components, composition, props API109- [marketing.md](marketing.md) - Landing pages, blogs, docs110- [performance.md](performance.md) - Virtualization, preloading, optimization111- [stack-constraints.md](stack-constraints.md) - Tooling, libraries, conventions112- [accessability.md](accessability.md) - WCAG checks, visual design review113114---115> Converted and distributed by [TomeVault](https://tomevault.io/claim/kyh) — claim your Tome and manage your conversions.116<!-- tomevault:4.0:skill_md:2026-04-11 -->