Files
site/lib/motion.js
Claude a6d057f246 System: grey and silver tokens, neutral focus ring, one ask bar after the hero at every width
- app/system.css: brand deck tokens (greys, silvers, room tokens that flip under data-room=dark),
  motion and type tokens, metric-matched font fallbacks, skip link, button/link/card/tab/sheet/table
  states, skeleton/empty/error styles, reduced-motion final states
- components/Ask.jsx: one solid ask in Hanzo's words once the hero has gone by; reads data-thumb;
  the header's Try Hanzo turns outline while it shows (one solid on screen)
- globals.css: blue focus and green accents replaced with greys (0 UI hues)
- lib/motion.js: easing, duration and spring tokens

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DqUybA3gCfaruBE8tifYd5
2026-11-07 13:35:39 +00:00

18 lines
1.1 KiB
JavaScript

// Motion tokens, defined once (BRIEF-v3 ยง8). The same values are CSS variables in app/system.css.
// HOW TO USE: import { EASE_OUT_EXPO, DUR, SPRING } from '../lib/motion' (or '../../lib/motion'), e.g.
// transition={{ duration: DUR.enter, ease: EASE_OUT_EXPO }} or transition={SPRING.sheet}
// Ad hoc easings are banned; reach for these. Reduced motion is handled site-wide (MotionConfig reducedMotion="user").
export const EASE_OUT_EXPO = [0.16, 1, 0.3, 1]; // headline reveals, hero moves
export const EASE_CALM = [0.33, 1, 0.68, 1]; // enter, the ask bar
export const EASE_SOFT = [0.22, 1, 0.36, 1]; // fades
export const EASE_IN = [0.7, 0, 0.84, 0]; // exits
export const DUR = { press: 0.1, hover: 0.2, exit: 0.25, fade: 0.4, enter: 0.6, morph: 0.6, reveal: 1.1 };
export const SPRING = {
sheet: { type: 'spring', stiffness: 300, damping: 34 },
toggle: { type: 'spring', stiffness: 300, damping: 34 },
morph: { type: 'spring', stiffness: 260, damping: 32 },
pill: { type: 'spring', stiffness: 500, damping: 35 },
cursor: { type: 'spring', stiffness: 500, damping: 40, mass: 0.4 },
};
export const STAGGER = 0.08; // max 4 items