modern-web-design

Modern web design trends, principles, and implementation patterns for 2024-2025. Use this skill when designing websites, creating interactive experiences, implementing design systems, ensuring accessibility, or building performance-first interfaces. Triggers on tasks involving modern design trends,

By freshtechbro · 2,365 installs

npx skills add freshtechbro/claudedesignskills --skill modern-web-design

Source repository · Upstream listing

Modern Web Design Overview Modern web design in 2024 2025 emphasizes performance, accessibility, and meaningful interactions. This skill provides comprehensive guidance on current design trends, implementation patterns, and best practices for creating engaging, accessible, and performant web experiences. This meta skill synthesizes knowledge from all animation, interaction, and 3D skills in this repository to provide holistic design guidance. Core Design Principles (2024 2025) 1. Performance First Design Philosophy : Design decisions should prioritize Core Web Vitals and user experience on all devices. Key Metrics : Largest Contentful Paint (LCP): < 2.5s First Input Delay (FID): < 100ms Cumulative Layout Shift (CLS): < 0.1 Interaction to Next Paint (INP): < 200ms Implementation Guidelines : Defer non critical animations until after page load Use CSS transforms/opacity for animations (GPU accelerated) Implement lazy loading for images, videos, and 3D content Progressive enhancement: core content without JavaScript Related Skills : gsap scrolltrigger , motion framer , lottie animations for optimized animations 2. Bold Minimalism Characteristics : Large, impactful typography (clamp() for fluid sizing) Ample white space (negative space as design element) Limited color palettes (3 5 primary colors) Intentional use of bold accent colors Geometric shapes and clean lines Typography Scale (Modern fluid system): Color System (Accessibility first): Related Skills : animated component libraries for UI components 3. Micro Interactions Definition : Small, purposeful animations that provide feedback, guide users, and enhance perceived performance. Categories : a) Hover States (Desktop): Scale transformations (1.05 1.1x) Color transitions (200 300ms) Shadow depth changes Cursor transformations b) Loading States : Skeleton screens (better than spinners) Progressive image loading (blur up technique) Optimistic UI updates Staggered content reveals c) Interactive Feedback : Button press states (scale down 0.95x) Toggle switches with spring physics Form field validation (immediate, kind feedback) Success/error states with motion Implementation Example (Framer Motion): Related Skills : motion framer , react spring physics , animejs for micro interactions 4. Scrollytelling Definition : Narrative driven experiences where content reveals and transforms as the user scrolls. Patterns : a) Scroll Triggered Reveals : Fade in on scroll entry (with offset) Slide in from sides with stagger Scale + opacity transitions Clip path reveals b) Scroll Linked Animations : Parallax layers (different scroll speeds) Horizontal scrolling sections Pinned sections with scrubbing animations 3D object rotation tied to scroll c) Progress Indicators : Reading progress bars Step by step visual guides Animated SVG paths following scroll Implementation Example (GSAP ScrollTrigger): Related Skills : gsap scrolltrigger , locomotive scroll , scroll reveal libraries , react three fiber for 3D scrollytelling 5. Cursor UX Evolution : Custom cursors that enhance interaction and provide contextual feedback. Patterns : a) Custom Cursor Shapes : Circle/dot followers (delayed with easing) Text based cursors ("View", "Drag", "Click") Blend modes for visual interest Scale/morph on hover b) Contextual Transformations : Expand on links/buttons Magnetic attraction to interactive elements Color inversion over images Custom icons for actions (play, zoom, expand) c) Performance Considerations : Use CSS transforms only (no top/left) RequestAnimationFrame for JS cursors Disable on mobile/touch devices Respect prefers reduced motion Implementation Example : Related Skills : gsap scrolltrigger (for easing), motion framer (for React cursor components) 6. Glassmorphism & Depth Characteristics : Frosted glass effect (backdrop filter) Layered UI with depth hierarchy Subtle shadows and borders Translucent backgrounds Modern Glassmorphism (2024): Depth System (Layering): Related Skills : animated component libraries for glassmorphic components 7. AI Enhanced Personalization Patterns : a) Adaptive Content : Dynamic layout based on user behavior Personalized content recommendations Adaptive color schemes (system preference + user history) Smart defaults based on context b) Intelligent Interactions : Predictive search with instant results Smart form completion Context aware suggestions Progressive disclosure based on usage c) Performance + Privacy : Client side personalization (localStorage, IndexedDB) Edge computing for fast personalization Privacy preserving analytics Transparent data usage Implementation Considerations : Fallback to default experience No layout shift from personalization Respect "Do Not Track" GDPR/CCPA compliance Common Design Patterns Pattern 1: Immersive Hero Section Use Case : Landing pages, product launches, portfolio sites Characteristics : Full viewport height Subtle 3D background or animated gradient Large headline with fluid typography Smooth scroll indicator Parallax on scroll exit Implementation (Combined approach): HTML Structure : Technologies : Background: Vanta.js WAVES effect ( lightweight 3d effects ) Text animation: GSAP SplitText with stagger ( gsap scrolltrigger ) Button: Framer Motion hover states ( motion framer ) Scroll indicator: CSS animation + GSAP fade out on scroll Related Skills : lightweight 3d effects , gsap scrolltrigger , motion framer Pattern 2: Horizontal Scroll Gallery Use Case : Portfolio work, product showcases, case studies Implementation (GSAP ScrollTrigger): Enhancements : Lazy load images as they scroll into view Parallax within cards Scale transformation on active card Smooth momentum scrolling with Locomotive Related Skills : gsap scrolltrigger , locomotive scroll Pattern 3: 3D Product Viewer Use Case : E commerce, product marketing, showcases Implementation (React Three Fiber): Enhancements : Material variants (color picker) Hotspots with annotations AR mode on mobile Screenshot/share functionality Related Skills : react three fiber , threejs webgl , model viewer component Pattern 4: Animated Data Visualization Use Case : Dashboards, analytics, infographics Patterns : Count up animations on scroll into view Animated chart reveals (progress bars, pie charts) Staggered grid animations Particle backgrounds representing data Implementation (Framer Motion + IntersectionObserver): Related Skills : motion framer , pixijs 2d for canvas based visualizations Pattern 5: Page Transitions Use Case : Multi page apps, portfolio sites, storytelling experiences Implementation (Barba.js + GSAP): Modern Alternatives : View Transitions API (Chrome 111+, progressive enhancement) Framer Motion's AnimatePresence for React SPAs Shared element transitions Related Skills : barba js , gsap scrolltrigger , motion framer Pattern 6: Interactive Cursor Effects Use Case : Creative agencies, portfolios, interactive experiences Patterns : Text cursor that follows with delay Magnetic buttons (cursor attracted to elements) Blend mode cursor (inverts colors) Cursor that reveals content Implementation (Vanilla JS + GSAP): Related Skills : gsap scrolltrigger , motion framer Pattern 7: Staggered Content Reveals Use Case : Feature sections, testimonials, team grids Implementation (Framer Motion variants): Related Skills : motion framer , gsap scrolltrigger , scroll reveal libraries Integration with Other Skills Animation Skills Integration GSAP ScrollTrigger ( gsap scrolltrigger ): Use for scroll driven storytelling Pin sections for multi step reveals Scrub animations tied to scroll position Batch animations for performance Framer Motion ( motion framer ): React component animations Page transitions with AnimatePresence Gesture based interactions (drag, hover, tap) Layout animations (shared element transitions) React Spring ( react spring physics ): Physics based animations (more natural feel) Interactive springs (drag, pull) Trail animations (sequential reveals) Use for UI feedback that feels "real" Anime.js ( animejs ): SVG path animations (line drawing) SVG morphing transitions Stagger grid animations Timeline based sequences Lottie ( lottie animations ): Complex designer created animations Icon animations and micro interactions Loading states Scroll driven playback 3D Skills Integration Three.js ( threejs webgl ): Custom 3D scenes and experiences Shader effects and post processing WebGL based particle systems Advanced lighting and materials React Three Fiber ( react three fiber ): 3D in React applications Product viewers and configurators Interactive 3D UI components Scroll driven 3D animations Babylon.js ( babylonjs engine ): Physics based 3D experiences VR/XR applications Game like interactions PBR materials for realism Lightweight 3D ( lightweight 3d effects ): Background effects (Vanta.js) Subtle 3D illustrations (Zdog) Tilt effects (Vanilla Tilt) Performance friendly 3D accents Component Libraries Animated Components ( animated component libraries ): Magic UI components (backgrounds, text effects) Pre built interactive components Design system foundations Rapid prototyping Scroll Reveals ( scroll reveal libraries ): Simple fade/slide on scroll AOS library integration Lightweight alternative to ScrollTrigger Quick implementation for basic reveals Accessibility Best Practices 1. Motion & Animation Respect User Preferences : JavaScript Detection : 2. Color Contrast WCAG AAA Standards : Normal text: 7:1 contrast ratio Large text (18pt+): 4.5:1 contrast ratio Use OKLCH color space for perceptual uniformity Testing : 3. Keyboard Navigation Requirements : All interactive elements focusable Visible focus indicators (not outline: none) Logical tab order Skip links for long navigation Escape key closes modals/overlays Focus Styles (Modern): 4. Screen Reader Support Semantic HTML : Use proper heading hierarchy (h1 h6) Landmark regions (header, nav, main, footer) aria labels for icon buttons aria live regions for dynamic content Animation Announcements : 5. Touch Targets Minimum Size : 44x44px (iOS), 48x48px (Android) Spacing : Minimum 8px between touch targets Implementation : Performance Optimization 1. Animation Performance 60 FPS Checklist : Use CSS transforms (translateX/Y/Z, scale, rotate) GPU accelerated Use opacity for fades GPU accelerated Avoid: top/left, width/height, margin, padding animations Use will change sparingly (memory cost) RequestAnimationFrame for JS animations GSAP Performance : 2. Loading Strategies Critical Path : Inline critical CSS (above the fold) Defer non critical CSS Async JavaScript loading Preload fonts and hero images Progressive Enhancement : 3. Image Optimization Modern Formats : Responsive Images : 4. 3D Content Optimization Loading Strategy : Show placeholder while loading Load low poly model first Progressive enhancement with high poly Lazy load 3D scenes below fold Runtime Performance : Use object pooling Implement LOD (Level of Detail) Frustum culling Texture compression (Basis Universal) Related Skills : threejs webgl , react three fiber , babylonjs engine 5. JavaScript Bundle Size Code Splitting : Tree Shaking : Use ES6 imports Import only what you need Use modern build tools (Vite, esbuild) Common Pitfalls Pitfall 1