Opinionated UI/UX and high-performance animation system for Next.js App Router projects: layout, spacing, typography, and smooth, GPU-friendly motion patterns.
Is Skill ko tab use karo jab:
Ye Skill generic hai, kisi ek repo tak limited nahi, lekin Next.js App Router + React ecosystem assume karta hai.
Koi specific color palette enforce nahi hota; ye Skill sirf structure aur motion ke rules define karta hai.
Sectioning the page
py-16, py-20
level, not random values per section). [web:210][web:213]Spacing system
13px, 27px jaisi values avoid karo.Grids & alignment
max-w-5xl / max-w-6xl) and
horizontally centered.Type scale
h1, h2, h3 with decreasing sizes.font-size, line-height, font-weight. [web:216][web:219][web:222]Hierarchy
Color & contrast
Cards
p-4, p-6).transform + box-shadow change
(avoid layout reflow). [web:204][web:205][web:211]Lists & rows
gap-4, gap-6).Buttons & CTAs
Claude ko new UI banate waqt ye base patterns ko reuse karna chahiye, na ke har page pe completely naya button/card style invent karna.
Aim: smooth, 60fps‑ish animations jo CPU/GPU pe light hon. [web:204][web:205][web:211][web:214]
What to animate
transform (translate, scale, rotate).opacity. [web:204][web:205][web:211][web:223]top, left, width, height, margin, padding,
box-shadow in heavy/continuous animations (ye layout / paint
thrash kar sakte hain). [web:204][web:205][web:211][web:217]Duration & easing
fast ~ 120–180ms (small hovers/feedback).normal ~ 200–260ms (transitions, modal open).slow ~ 320–400ms (page transitions, major UI change). [web:206][web:208]ease-out / cubic functions for entry.ease-in for exit animations.Levels of motion
Performance
will-change: transform ya Framer Motion ki internal
optimizations only jahan zaroorat ho (excessive use se bhi perf
down ho sakta hai). [web:204][web:211]Reduced motion
@media (prefers-reduced-motion: reduce) ke andar animations
ko disable/simplify karo. [web:205][web:214]useReducedMotion hook se motion intensity kam
karo ya turn off karo. [web:209][web:221]Focus & usability
Jab Framer Motion use ho:
Variants & layout
variants objects define karo (e.g. fadeInUp, scaleOnHover)
jo multiple components reuse karein.layout prop everywhere.Page transitions
PageTransition wrapper component use karo jo:
opacity: 0, y: 8opacity: 1, y: 0opacity: 0, y: -4easeOut. [web:209][web:212][web:218][web:221]Scroll-reveal
whileInView (Framer) ka use karo:
initial off-screen + low opacity, whileInView on-screen. [web:209][web:212]Claude ko nayi animations likhte waqt yahi patterns reuse karne chahiye instead of har jaga naya custom Framer code likhne ke.
Jab ye Skill use ho:
frontend/styles/design-tokens.(ts|json) – spacing, durations,
easing, radii, etc.frontend/components/ui/ – base components (Button, Card, Section,
PageTransition, etc.) jo in rules ko enforce karein.frontend/components/motion/ – reusable motion primitives based on
is Skill ke patterns.Agar ye files missing hon, Claude ko propose karna chahiye ke pehle yeh base components/tokens create karein, phir nayi screens unka reuse kar ke banayein — is tarah tumhara UI/UX + animations ek signature style ban jayega jo har nayi app me recognizable rehega.