# Motion Phase B — UI Kit Design

**Date:** 2026-08-07  
**Branch:** `feature/ui-ux-revamp`  
**Status:** Approved via Phase A lock + user request to implement  
**Depends on:** Phase A (`overlayVariants`, Select/FilterSelect)

## Goal

Apply consistent premium-presence Motion.dev polish across shared UI primitives so overlays, forms, tabs, toggles, tables, and toasts match the purple shell — without changing business logic.

## Locked decisions (from Phase A)

- Radix + Motion layer (not custom from scratch)
- Premium presence (soft springs, fade+scale; no bounce-heavy demos)
- Honor `prefers-reduced-motion`
- Light + dark parity
- No API/auth/business-logic changes

## Scope

| Area | Files | Treatment |
|------|-------|-----------|
| Overlays | dialog, alert-dialog, sheet, popover, tooltip, hover-card | Motion enter/exit via `overlayVariants` or aligned CSS + purple polish |
| Forms | input, textarea | Focus ring primary, subtle transition; optional soft scale on focus if reduced-motion safe |
| Toggles | checkbox, switch, radio-group | Check/thumb spring; primary wash |
| Navigation | tabs | `layoutId` active pill |
| Disclosure | accordion | Smooth height/content; rounded-xl |
| Feedback | toast, sonner | Enter/exit polish; purple accents |
| Data | table | Row hover wash; header polish |
| Already done | button, card, sidebar, page-transition, select, dropdown, skeleton, app-loader | Light consistency only if needed |

## Out of scope

- Page-by-page content redesign
- Replacing Sonner with a custom toast system
- Rich-text-editor native selects
- New features / API changes

## Acceptance

1. Opening dialog/sheet/popover feels like Select menus (fade+scale)
2. Tabs show sliding active indicator
3. Checkbox/switch/radio feel responsive with primary color
4. Inputs use consistent focus treatment
5. `prefers-reduced-motion` respected
6. `npx tsc --noEmit` passes
