Skip to content

[ai] Add motion design tokens + fix reduced-motion rule#73

Draft
MaggieAppleton wants to merge 1 commit into
mainfrom
add-motion-tokens-57-268f8cef931b1c1f
Draft

[ai] Add motion design tokens + fix reduced-motion rule#73
MaggieAppleton wants to merge 1 commit into
mainfrom
add-motion-tokens-57-268f8cef931b1c1f

Conversation

@MaggieAppleton

Copy link
Copy Markdown
Owner

Implements

Closes #57

Parent plan

#56

What changed

  • Added --duration-instant/fast/base/slow/slower and --ease-out/out-strong/in-out/hover/spring CSS custom properties to :root in src/global.css — the single source of truth for all future animation work
  • Created src/utils/motion.ts exporting durations, easings, and prefersReducedMotion() for use with the Motion library in JS animations
  • Replaced the 0.01ms !important reduced-motion override in global.css with the skill-recommended transition: none; animation: none; (no !important), while retaining scroll-behavior: auto !important

How to verify

  • Open browser DevTools → Elements → :root computed styles and confirm the 10 new --duration-* / --ease-* custom properties appear
  • Enable "Emulate CSS prefers-reduced-motion: reduce" in DevTools → verify no transitions or animations fire on hover/interaction across the site
  • Confirm no visual regression: all existing animations still run normally without reduced-motion enabled (tokens are additive; nothing consumes them yet)

Notes

  • This is a pure foundation slice — no existing animation behaviour is changed. Subsequent phases (PRD §§2–7) will wire up the tokens.
  • scroll-behavior: auto !important is kept with !important because it overrides the html { scroll-behavior: smooth } that many browsers inject via UA stylesheet or inline styles; the other two declarations don't need it.
  • easings in motion.ts omits hover because Motion library accepts string easings (e.g. "ease") directly; only the bezier tuples are provided as arrays.

Generated by Implement sub-issue → PR for issue #57 · ● 159.1K ·

- Add --duration-* and --ease-* CSS custom properties to :root in global.css
- Add src/utils/motion.ts with durations, easings, and prefersReducedMotion()
- Replace 0.01ms !important reduced-motion override with transition: none; animation: none;

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
maggieappleton-com-v3 Ignored Ignored Apr 26, 2026 7:27pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated Opened by an agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add motion design tokens + fix reduced-motion rule

1 participant