modern-web-design

Implements modern web design patterns with accessibility, performance, and animation guidance.

1|Updated Aug 20, 2023
One-click install
npx skills add https://github.com/imanlangaran/mini-projects --skill modern-web-design-imanlangaran
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modern-web-design
Source: https://github.com/imanlangaran/mini-projects/tree/main/react/three-gsap/.claude/skills/modern-web-design
Command: npx skills add https://github.com/imanlangaran/mini-projects --skill modern-web-design-imanlangaran

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve? Designing modern websites requires balancing visual trends, accessibility compliance, and performance budgets, and this Skill consolidates those decisions into actionable patterns and code examples. ## Core Features & Use Cases - Design Pattern Library: Provides implementation-ready patterns for scrollytelling, micro-interactions, glassmorphism, cursor UX, 3D product viewers, and page transitions using GSAP, Framer Motion, and Three.js. - Accessibility & Performance Guidance: Includes WCAG AAA contrast rules, prefers-reduced-motion handling, keyboard navigation patterns, and Core Web Vitals optimization checklists. - Design Auditing: Ships a Python script that audits HTML files for accessibility, SEO, responsive design, and modern CSS practices. - Use Case: When building a landing page with scroll-driven animations, use this Skill to generate the GSAP ScrollTrigger setup, fluid typography tokens, and verify the result passes accessibility checks. ## Quick Start Use the modern-web-design skill to build an accessible hero section with scroll-triggered animations and fluid typography.

Frequently Asked Questions about modern-web-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement scroll-triggered animations with GSAP ScrollTrigger?

Use gsap.to() with a scrollTrigger config specifying trigger element, start/end positions, and scrub for scroll-linked playback. Pin sections for multi-step reveals and batch animations to maintain 60fps performance.

What CSS techniques create fluid responsive typography?

Use the clamp() function with a minimum size, viewport-relative preferred value, and maximum size, such as clamp(1rem, 0.9rem + 0.5vw, 1.25rem). This scales text smoothly across breakpoints without media queries.

How do I make animations accessible for motion-sensitive users?

Wrap animations in a @media (prefers-reduced-motion: reduce) query that sets animation and transition durations near zero. In JavaScript, detect the preference with window.matchMedia and skip scroll animations or use instant reveals.

Does backdrop-filter glassmorphism hurt mobile performance?

Yes, backdrop-filter is expensive on mobile GPUs. Limit glass elements to two or three per viewport, apply will-change only during animations, and test on real low-end devices rather than simulators.

What contrast ratio does WCAG AAA require for text?

WCAG AAA requires a 7:1 contrast ratio for normal text and 4.5:1 for large text (18pt or 14pt bold). The OKLCH color space helps build perceptually uniform palettes that meet these thresholds.

When should I avoid custom cursor effects?

Avoid custom cursors on touch devices, for users with prefers-reduced-motion enabled, and when they hide the native cursor entirely. Use CSS transforms with requestAnimationFrame and layer the custom cursor on top of the native one.