Pattern Library

200 patterns

Visual reference for product builders. Learn the design patterns behind every professional interface.

Aesthetics

Static design styles that define visual personality. Colors, textures, and treatments—from brutalist to maximalist—that establish your product's look at rest.

10 newUpdated Jan 2025

BRUTALIST

RAW CONCRETE—EXPOSED—NO POLISH

❌ SOFT
polished
✓ BRUTAL
HARSH
THICK BORDERS
HARD SHADOWS
RAW BLOCKS
• CONCRETE GRAY
• ZERO CURVES
• HEAVY TYPE
• NO GRADIENTS
USED BY:BALENCIAGABLOOMBERG

Minimalist

Clean, sparse, whitespace-heavy design with only essential elements

Visual Comparison
Cluttered
Minimal
Used by:AppleMujiStripe

Neo-Brutalism

Modern brutalism with vibrant colors, thick borders, hard shadows, playful yet bold

Signature Style
CLICK ME
CARD

Material Design

Google's design language—elevation shadows, bold colors, paper-like layers

Elevation System
Elevation 1dp
Elevation 4dp
Elevation 8dp

Glassmorphic

Frosted glass blur effects with translucent layers, transparency, and soft depth

Live Example

Multiple translucent layers create depth

Used by:AppleMicrosoft

Neumorphic

Soft embossed/debossed shadows creating tactile, pressable depth with subtle lighting

Interactive Demo
Flat
No depth
Neumorphic
Used by:Smart Home AppsApple Design
Note: Works best with monochromatic color schemes and consistent lighting direction

Claymorphic

Soft 3D renders, inflated shapes, pastel colors, rounded edges

3D Elements
Used by:MailchimpAsana

MAXIMALIST

Dense layering, rich patterns, abundant ornamentation, and vibrant colors— controlled chaos with maximum visual impact

MINIMALIST
MAXIMALIST

Skeuomorphic

Realistic textures and physical material mimicry—leather, wood, stitching

Texture Examples
Wood
Leather
Used by:iOS 6iBooks

Flat Design

No depth, no gradients, solid colors, simple shapes—anti-skeuomorphic

Comparison
With Depth
Button
Flat
Button
Used by:Windows 8Duolingo

Gradient

Bold gradient overlays, vibrant color meshes, neo-retro aesthetic

Gradient Types
"Create a gradient-heavy design with vibrant color meshes, bold overlays, and modern neo-aesthetic"
Used by:InstagramFigmaStripe

Monochromatic

Single color palette, minimal variation, austere and formal

Tonal Range

Dark Mode

Dark backgrounds, high contrast, OLED-optimized, reduced eye strain

Comparison
Light Mode
Dark Mode
Used by:DiscordGitHubSpotify

MEMPHIS

Bold geometric shapes, clashing colors, 80s revival, playful asymmetry

Signature Elements
Used by:MTVSwatch

Organic

Curved forms, nature-inspired shapes, flowing layouts, soft edges

Natural Forms
Angular
Organic

Geometric

Decorative shapes as art—triangles, circles, hexagons, colorful geometric patterns

Decorative Shapes
"Create a geometric design with colorful shapes as decoration"

Swiss Style

Mathematical grids, Helvetica font, asymmetric typography, objective clarity

Typography + Grid
DESIGN
6-column grid
Characteristics:
• Helvetica typography
• Mathematical grids
• Asymmetric balance

BAUHAUS

Form follows function—primary colors only, basic shapes, no ornamentation

• Red/Yellow/Blue only
• Circle/Square/Triangle
• No decoration
• Function first

RETRO

Aged textures, nostalgic palettes, old-school typography, vintage aesthetics

Vintage Palette
Used by:Coca-ColaLevi's
美学

VAPORWAVE

90s nostalgia, pink/purple gradients, Japanese text, surreal internet aesthetic

A E S T H E T I C
90s
🗿

SYNTHWAVE

80s retro-futuristic—neon sunsets, perspective grids, chrome, outrun aesthetic

Retro Future
NEON
GRID
"Create a SYNTHWAVE design with neon sunset gradients, perspective grids, 80s retro-futuristic aesthetic, and chrome accents"
Used by:Stranger ThingsHotline Miami
💫

Y2K

Futuristic 2000s—metallic, bubbly, chrome, translucent plastics, optimistic tech aesthetic

2000s Future
CLICK ME!
Translucent
Plastic
Bubbly

CYBERPUNK

High contrast neon, dark backgrounds, sci-fi inspired, glitch effects

Neon Palette
CYAN
MAGENTA
NEON
Used by:Cyberpunk 2077Razer

PIXEL ART

Retro gaming aesthetic—8-bit/16-bit, limited palette, pixel-perfect grid

8-Bit Graphics
PRESS START
GAME OVER

NEON

Glowing signs aesthetic—bright tubes, urban nightlife, retro storefronts, electric glow

Glowing Signs
OPEN
BAR
"Create a NEON design with glowing sign aesthetics, electric tube lights, urban nightlife vibe, and bright neon colors"
Used by:Red BullLas Vegas

ART DECO

Luxury geometric patterns, 1920s glamour, symmetrical elegance, metallic accents

Signature Patterns
Used by:Tiffany & CoChrysler Building

Corporate

Blue/gray palette, conservative, hierarchical, trust-focused, enterprise-grade

Enterprise Layout

Editorial

Print-inspired—serif typography, column layouts, high contrast, magazine aesthetic

The Future of Design

"Typography is the voice of the written word."

42

Handcrafted

Hand-drawn elements, imperfect lines, human touch, warm and approachable

Click Me!

GRUNGE

Rough textures, distressed overlays, rebellious, unpolished, raw energy

Distressed Textures
WORN
ROUGH
"Create a grunge design with rough textures, distressed overlays, scratched surfaces, and rebellious aesthetic"
Used by:SupremeNirvana

Gothic

Dark cathedral—ornate details, dramatic shadows, deep purples and blacks, gold accents, luxury meets darkness

Characteristics:
• Deep blacks and purples
• Gold/silver accents
• Ornate decorative elements
• Dramatic shadows

Miami Vice

80s neon paradise—hot pink, electric cyan, purple nights, palm trees, sunset gradients, retro futurism

🌴

NEON NIGHTS

☀️
🌊
• Neon pink, cyan
• Sunset gradients
• Bold typography
• Retro 80s

Bohemian

Free-spirited artisan—earthy tones, textures, handcrafted, organic shapes, eclectic patterns, wanderlust vibes

🌿

Natural Beauty

🪶
🍂
• Earthy palette
• Organic textures
• Handcrafted feel
• Eclectic mix

Nordic

Scandinavian simplicity—clean lines, natural materials, white space, light wood, functional beauty, hygge warmth

❄️

Clean & Functional

Light
Natural
• White, gray, wood
• Maximum space
• Simple forms
• Function first

Steampunk

Victorian industrial—brass gears, copper pipes, rivets, mechanical details, vintage machinery, retro-futurism

⚙️

Mechanical Beauty

🔩
Rivets
⚙️
Gears
🔧
Tools
Characteristics:
• Brass, copper, bronze tones
• Mechanical gear patterns
• Rivets and industrial details
• Victorian era typography
🌸
🌿
🦋

Cottagecore

Pastoral romance—soft pastels, floral patterns, handmade quilts, wildflowers, cozy cottages, countryside charm

🌻

Countryside Bliss

🧺
Handmade
🌼
Floral
Characteristics:
• Soft pastel color palette
• Floral and botanical patterns
• Handmade, quilted textures
• Romantic, nostalgic mood

Luxury Minimalism

Refined restraint—premium materials, precise details, subtle elegance, expensive simplicity, Apple aesthetic, quiet luxury

Precision & Quality

Characteristics:
• Monochromatic neutrals
• Maximum negative space
• Premium materials
• Precise details
Used by:AppleTesla

Art Nouveau

Organic elegance—flowing curves, botanical motifs, nature-inspired

🌺

Natural Forms

🌿
Lines
🦋
Motifs
Characteristics:
• Flowing curves
• Botanical motifs
• Organic forms
• Ornate details

Maximalist Luxury

Opulent abundance—rich gold, jewel tones, ornate patterns, baroque details, Versace vibes, more is more

Characteristics:
• Gold and jewel tones
• Baroque patterns
• Abundant details
• Luxurious textures

HIGH FASHION

Editorial drama—stark contrast, bold typography, runway aesthetics, magazine layouts, Vogue vibes, timeless elegance

EDITORIAL EXCELLENCE

Characteristics:
• Stark black/white
• Bold typography
• Magazine layouts
• Negative space

Wabi-Sabi

Japanese philosophy of imperfect beauty—natural textures, asymmetry, weathered surfaces, embracing age and wear

Imperfect Beauty
Weathered
Organic
Characteristics:
• Embrace imperfection
• Natural, muted colors
• Asymmetric layouts

Soft Brutalism

Bold brutalist layouts meet soft pastels—thick borders, heavy type, rounded corners, gentle colors

Bold + Soft
HELLO
Characteristics:
• Bold, heavy typography
• Thick borders (4-8px)
• Soft pastel colors

GRAFFITI

GRAFFITI

Street art—spray paint, wild style letters, tags, throws, drips

TAG
THROW
PIECE
ELEMENTS:
• Wild style lettering
• Vibrant spray colors
• Drips & splatters
• Tags, throws, pieces
SPACE AGE

SPACE AGE

1960s retro-futurism—chrome, orbs, atomic age, space race optimism

ORB
ATOM
CHROME
FUTURE
ELEMENTS:
• Chrome & metallic finishes
• Orbs, spheres, curves
• Atomic starbursts
• Optimistic futurism

Dark Academia

Vintage scholarly aesthetic—library vibes, leather & wood, classical references, old books, gothic romance

Scholarly Elegance
VOL I
1847
Characteristics:
• Serif typography
• Leather and wood textures
• Classical references

Frutiger Aero

2000s tech optimism—glossy buttons, aqua colors, bubbles, nature meets technology

Highlight on top, shadow below

Signature Colors:
Key Elements:
• Glossy gradients
• Aqua + white palette
• Bubble effects
• Nature imagery
• Soft shadows
• Optimistic tone
"Design with Frutiger Aero style: glossy buttons, aqua blues and greens, skeuomorphic bubbles, glass reflections, nature imagery, optimistic tech aesthetic"

Solarpunk

Eco-futurism—green tech, renewable energy, nature-tech harmony

🌿
Green Cities
Renewable
♻️
Circular
Core Palette:
Key Elements:
• Bright greens + golds
• Solar/wind symbols
• Plants + technology
• Optimistic future
• Natural lighting
• Eco-friendly icons
"Design in Solarpunk aesthetic: eco-futurism, green technology, renewable energy, hopeful sustainability, nature integrated with tech, bright greens and golds"

Afrofuturism

African diaspora meets sci-fi—cultural heritage, advanced technology, geometric patterns, rich symbolism

Advanced Tech
Geometric
👁️
Symbols
Signature Palette:
Key Elements:
• Rich golds + purples
• Geometric patterns
• Cultural symbols
• Advanced tech
• Empowering vision
• African heritage
"Design in Afrofuturism aesthetic: African diaspora meets sci-fi, rich golds and purples, geometric patterns, cultural symbolism, advanced technology with African roots"

Anti-Design

Intentional rule-breaking—chaotic typography, clashing colors, experimental, rebellious

CHAOS
NO RULES

REBEL

Clashing Colors:
Key Elements:
• Break conventions
• Clash colors
• Distort typography
• Chaotic layouts
• Provocative
• Experimental
"Design with Anti-Design aesthetic: intentionally broken rules, chaotic typography, clashing colors, experimental layouts, rebellious and provocative"

SOVIET

CONSTRUCTIVISM

Revolutionary propaganda—bold geometry, red/black/white, diagonal lines, avant-garde

Revolutionary Palette:
Key Elements:
• Red, black, white
• Diagonal geometry
• Bold sans-serif
• Propaganda style
• Strong angles
• Political messaging
"Design in Soviet Constructivism style: bold red and black, diagonal geometry, revolutionary propaganda, photomontage, strong political messaging, avant-garde"

ACID GRAPHICS

Psychedelic distortion—liquid chrome, warped type, iridescent gradients, surreal trippy visuals

LIQUID
Warped
Chrome
Trippy
Psychedelic Palette:
Key Elements:
• Liquid chrome
• Iridescent colors
• Warped type
• Rainbow gradients
• Surreal distortion
• Trippy visuals
"Design with Acid Graphics aesthetic: psychedelic colors, liquid chrome, warped typography, surreal distortions, iridescent gradients, trippy visuals"

Web 1.0

Early internet nostalgia—table layouts, under construction GIFs, basic HTML, blue links

Welcome to My Homepage! 🚧

Visitor #0 0 4 2 3

Classic Palette:
Key Elements:
• Times New Roman
• Blue links (#0000ee)
• Table layouts
• Visitor counters
• Under construction
• Basic HTML/CSS
"Design with Web 1.0 aesthetic: table layouts, under construction GIFs, visitor counters, guestbooks, basic HTML, Times New Roman, blue hyperlinks, retro internet nostalgia"

Corporate Memphis

Modern tech illustration—flat diverse people, pastel colors, geometric shapes, friendly corporate

Signature Palette:
Key Elements:
• Flat 2D style
• Bright pastels
• Abstract people
• Geometric shapes
• Diverse bodies
• Corporate-friendly
"Design with Corporate Memphis (Alegria) style: flat illustration, diverse abstract people, pastel colors, geometric shapes, modern tech company aesthetic, friendly and inclusive"

Risograph

Print aesthetic—limited colors, grainy texture, slight misalignment, DIY zine feel

Magenta

Blue

Spot Colors:
Key Elements:
• Limited palette
• Grainy texture
• Spot colors (2-4)
• Layer misalignment
• DIY zine feel
• Analog print look
"Design with Risograph aesthetic: limited color printing, grainy texture, slight misalignment, vibrant spot colors, DIY zine feel, analog print imperfections"

KINETIC

TYPOGRAPHY

Motion-first type—animated text, dynamic letterforms, text as primary visual element

MOVE
MOVE
MOVE
TILT
STRETCH
Motion Types:

Slide

Rotate

Scale

Dynamic Palette:
Key Elements:
• Text as visual
• Animated motion
• Bold typography
• Dynamic layouts
• Experimental forms
• Energy + movement
"Design with Kinetic Typography aesthetic: animated text, motion-first design, dynamic letterforms, text as primary visual, experimental typography, movement and energy"

Visual Effects

Interactive polish and micro-details that elevate products from functional to memorable. Strategic use of these patterns adds perceived value and differentiates in crowded markets.

Updated Jan 2025

MAGNETIC CURSOR

Buttons attract cursor when nearby—creating gravity-like pull effect

HOVER NEAR BUTTON
"Create a magnetic cursor effect where buttons attract the cursor within 60-100px range. Use transform with smooth easing for gravity-like pull. Apply to primary CTAs."
Used by:StripeAwwwardsApple

WAVE DIVIDER

Curved organic section breaks using SVG—replaces straight lines between sections

SECTION TRANSITIONS
Hero Section
Content Section
Footer
"Create wave dividers with SVG paths using viewBox="0 0 1200 120". Use bezier (C) or quadratic (Q) curves for organic flow. Match fill to section background. Apply between landing page sections."
Used by:WebflowWixSquarespace

STICKY HEADER

Navigation follows scroll—adds backdrop blur and shadow when scrolled for depth

AUTO-SCROLLING DEMO
Logo
HomeAboutContact
Section 1
Section 2
Section 3
Section 4
"Create a sticky header with position:sticky that gains backdrop-blur-md and shadow-lg on scroll. Detect scroll with Intersection Observer. Keep z-index high. Apply to navigation bars."
Used by:MediumNotionLinear

SCROLL REVEAL

Elements fade/slide in when entering viewport—cinematic progressive reveal effect

STAGGERED ANIMATIONS
Fade Up
Slide Right
Scale In
"Create scroll reveal animations using Intersection Observer API. Stagger delays (0ms, 200ms, 400ms) for sequential reveals. Combine opacity + transform for depth. Keep transitions under 800ms."
Used by:AppleStripePitch

3D Card Tilt

Card tilts toward cursor. Fake 3D depth effect. Hover effect that screams "look at me." Portfolio site staple.

Hover over card

Tilt Card

Move your cursor around to see the 3D effect

Key Rules
  • • Keep tilt angle under 15 degrees
  • • Add subtle shine/highlight following cursor
  • • Smooth easing back to flat on mouse leave

Cursor Trail

Graphics follow your mouse. Circles, sparkles, gradient trails. Portfolio site staple. Pure delight.

Move cursor around

Move your cursor here

Key Rules
  • • Limit trail length (10-20 particles max)
  • • Fade out smoothly, don't pop
  • • Can distract from content—use sparingly

Glitch Effect

RGB split, scan lines, distortion. Error aesthetic. Cyberpunk staple. Makes everything look hacker-y.

Auto-glitching

GLITCH

Key Rules
  • • Use sparingly—constant glitch is annoying
  • • RGB split = red/cyan offset layers
  • • Add horizontal displacement bars

Gradient Border

Border that shifts colors or moves. Animated stroke. Neon button effect. Makes CTAs impossible to ignore.

Multiple techniques
Static
Animated
Glow
Key Rules
  • • Use padding trick: gradient bg + inner element
  • • Rotate gradient angle for animation
  • • Add box-shadow for neon glow effect

Text Reveal

Words appear as you scroll down. Cinematic effect. Overused in agency sites. Still looks cool when done right.

Auto-revealing

Design

with

Impact

Key Rules
  • • Stagger word reveals, don't show all at once
  • • Keep transitions smooth (600-800ms)
  • • Works best with short, punchy phrases

Morphing Blob

Animated amorphous shapes that pulse and shift. Gradient blobs that look alive. Background decoration gold standard.

Always animating

Blob Magic

Organic movement

Key Rules
  • • Use blur-3xl for soft organic feel
  • • Animate scale + rotate for morphing effect
  • • Layer 2-3 blobs with different speeds

Typography

Text styling fundamentals that form the foundation of clear communication. Understanding these concepts enables precise control over readability and visual hierarchy.

Updated Jan 2025

Font Pairing

Combining typefaces

Elegant Headline
Clean sans-serif body. Creates contrast and readability.
Modern Headline
Traditional serif body. Classic editorial style.
Avoid
Multiple serifs
Best
1 serif + 1 sans
When to Use:
Editorial layouts, magazines, blogs
"Pair serif + sans-serif fonts"

Type Scale

Harmony in sizing

Display
Headline
Subhead
Body text reads comfortably.
Caption
Without
Chaotic
With Scale
Rhythm
Ratio: 1.25× (Major Third)
When to Use:
Editorial sites, blogs, content interfaces
"Use type scale: 14, 16, 20, 24, 32px"

Fluid Typography

No breakpoints needed

clamp(16px, 4vw, 32px)
Min
16px
Scales
4vw
Max
32px
Fixed
Breaks
Fluid
Perfect
Scales smoothly—no media queries.
When to Use:
Headlines, hero text, responsive layouts
"Use clamp() for fluid typography"

Contrast

Readable text requires contrast

Poor Contrast
This gray text is hard to read
Good Contrast
Black text is clear and accessible
Body
4.5:1 min
Large
3:1 min
WCAG AA compliance ensures readability.
When to Use:
All text—especially body copy and interfaces
"Use 4.5:1 contrast for readable text"

Line Width

Optimal reading width

Too Wide (100+ chars)
Long lines force eyes to travel far, making it hard to track back to the next line. Readers lose their place and tire quickly.
Perfect (60 chars)
Comfortable reading. Eyes move smoothly from line to line.
Sweet Spot
50-75 chars
Width
~600px
When to Use:
Articles, blogs, any long-form reading
"Limit lines to 50-75 characters"

Hierarchy

Guide readers through content

Primary Headline
Secondary Subhead
Body text follows with smaller size and lighter weight for comfortable reading.
Caption or metadata appears smallest
Tools:
Size • Weight • Spacing • Color
Weak
Same sizes
Strong
Clear levels
When to Use:
Any content with multiple information levels
"Use size, weight, spacing for hierarchy"

Kerning vs Tracking

Letter spacing fundamentals

Kerning (Pairs)
WAVE
Specific letter pairs adjusted
Tracking (Overall)
LUXURY
All letters spaced evenly
Headlines
Tight tracking
ALL CAPS
Loose tracking
When to Use:
Professional typography, luxury brands, headlines
"Use kerning for pairs, tracking for spacing"

Leading

Line-height spacing

Too Tight (1.2)
Lines blur together when leading is too tight. Hard to track from one line to the next.
Perfect (1.6)
Proper breathing room. Eyes move smoothly line to line.
Headlines
1.2-1.3
Body
1.5-1.7
Named after lead spacers in printing presses. Rhymes with "bedding."
When to Use:
All typography—affects readability and comfort
"Use 1.2-1.3 for headlines, 1.5-1.7 for body"

Interaction Patterns

Response patterns that make interfaces feel alive. Animations, gestures, and feedback systems that react to user input—from hover states to drag-and-drop mechanics.

Updated Jan 2025

KINETIC

Motion-based design—animated transitions, dynamic elements, movement that guides

LIVE ANIMATION DEMO
Bounce
Rotate
Pulse
Scale
"Create a kinetic interface with smooth animations, dynamic transitions, and purposeful motion"
Used by:StripeAppleLinear

PARALLAX

Depth through multi-layer scrolling—background moves slower than foreground

LAYER MOVEMENT DEMO
Layer 1 (Slow)
Layer 2 (Medium)
Layer 3 (Fast)
30%
Background
50%
Midground
100%
Foreground
"Create a parallax scrolling experience with multi-layer depth, where background elements move slower than foreground"
Used by:AppleFirewatchWebflow

Hover States

Visual feedback on mouse-over—reveals affordances, shows interactivity

HOVER TO SEE EFFECTS!
"Design hover states with clear visual feedback—lift, glow, scale, or color changes to show interactivity"
Used by:StripeLinearGitHub

Drag & Drop

Direct manipulation—grab, move, place objects intuitively

TRY IT! DRAG TO REORDER
Task 1
Task 2
Task 3
Idle
Grabbing
Drop Zone
"Implement drag and drop for direct manipulation, with clear visual feedback, drop zones, and cursor states"
Used by:TrelloNotionFigma

Microinteractions

Small, delightful moments—button animations, toggle transitions, loading states

INTERACTIVE EXAMPLES
Like Button
Toggle Switch
OFF
Loading State
Checkbox
"Design microinteractions for small delightful moments—button animations, toggle transitions, loading states"
Used by:DuolingoStripeTwitter

Pull-to-Refresh

Mobile gesture—drag down to reload content, spinner indicates loading

LIVE DEMO (AUTO-ANIMATING)
Idle
Pulling
Refreshing
"Implement pull-to-refresh with threshold detection, spinner feedback, and natural rubber-band physics"
Used by:TwitterInstagramGmail

Infinite Scroll

Endless content loading—scroll to bottom, automatically fetch more

LIVE DEMO (AUTO-SCROLLING)
Items: 5
"Implement infinite scroll with automatic content loading, scroll position detection, and loading indicators"
Used by:TwitterPinterestTikTok

Swipe Gestures

Touch-based navigation—horizontal slides, card dismissal, reveal actions

LIVE DEMO (AUTO-SWIPING)
Card 1
Swipe to Delete
Email
Swipe to Reveal
Swipe left
"Design swipe gestures for touch navigation with velocity detection, spring animations, and clear visual feedback"
Used by:TinderInstagramGmail

Architecture

Structural patterns for organizing content and navigation. From hierarchical trees to flat structures—these determine how users mentally model and navigate your product.

Updated Jan 2025

Card-Based

Grid of self-contained cards—each item is independent, Pinterest/Twitter feed style, scannable

Card Grid Layout
"Organize content in a card-based layout with independent, self-contained units in a grid structure"

Hierarchical

Tree structure navigation—parent-child relationships, folders, nested menus, top-down flow

Interactive Tree Structure
Root Folder
Subfolder 1
Subfolder 2
"Structure content hierarchically with clear parent-child relationships, nested navigation, and tree structure"

Hub & Spoke

Central dashboard pattern—main hub connects to separate sections, always return to center

Radial Structure
HUB
Home
Profile
Settings
Search
Help
Messages
"Design a hub-and-spoke architecture with central dashboard connecting to separate feature sections"

Sequential

Step-by-step flow—onboarding wizards, checkout processes, multi-step forms, linear progression

Interactive Stepper
1
2
3
4

Step 1: Account

Create your account

"Design a sequential flow with step-by-step progression, progress indicators, and clear next/back navigation"

Database

Filterable collection—search, sort, filter large datasets, table views, spreadsheet-like

Search & Filter Demo
NameCategoryPrice
Product AElectronics$299
Product BClothing$49
Product CElectronics$599
Product DHome$129
Showing 4 of 4 items
"Organize content as a database with search, filter, and sort capabilities for large datasets"

Flat

Minimal hierarchy—all content at same level, simple navigation, no deep nesting

Single-Level Structure
Home
About
Services
Portfolio
Blog
Contact
All pages accessible from top level - no submenus
Page 1
Page 2
Page 3
Page 4
Equal hierarchy - all same level
"Organize with a flat architecture where all content is accessible at top level with minimal nesting"

Matrix

Two-axis navigation—rows and columns, comparison tables, feature matrices, dual categorization

Interactive Comparison Matrix
Feature 1Feature 2Feature 3Feature 4
Plan A
Plan B
Plan C
Matrix Structure:
Col 1
Col 2
Col 3
Col 4
Row 1
Row 2
"Organize content in a matrix with two-axis navigation for comparing multiple attributes across options"

Network

Web of connections—nodes and links, Wikipedia-style, cross-references, non-linear exploration

Network Structure
A
B
C
D
E
"Create a network architecture with interconnected nodes, cross-references, and non-linear exploration paths"

Tabs

Horizontal categorization—switch between views, same-level sections, keeps context visible

Interactive Tab Switcher

Overview Content

Overview section with general information.

"Organize content with tabs for same-level sections with quick switching and preserved context"

Modals/Layers

Temporary overlays—dialogs, drawers, popups, focused tasks without leaving context

Interactive Examples
"Use modals/layers for temporary focused tasks with overlay patterns that preserve main context"

Accordion

Vertical stack—expand/collapse sections, progressive disclosure, space-efficient content organization

Interactive Accordion
A vertically stacked list where items expand/collapse to show content.
"Organize content with accordion for progressive disclosure and space-efficient vertical stacking"

Breadcrumb

Path trail—shows location, navigational hierarchy, "you are here" indicator, backward navigation

Interactive Path Trail
/
/
/
"Add breadcrumb navigation to show location path and enable backward navigation through hierarchy"

Mega Menu

Expansive dropdown—multi-column panels, rich content, visual categories, complex navigation made simple

Hover to Expand
"Create a mega menu with multi-column panels for complex navigation with visual categories"

Infinite Canvas

Boundless workspace—pan and zoom, spatial thinking, mind maps, whiteboards, free-form exploration

Drag to Pan Canvas
Main
Concept A
Concept B
Detail 1
Detail 2
Detail 3
"Create an infinite canvas with pan/zoom for spatial thinking and free-form exploration"

Timeline

Chronological flow—events in sequence, temporal organization, history view, progress tracking

Interactive Timeline
2020
Project Started
Initial concept
2021
Beta Launch
Public release
2022
Series A
$10M funding
2023
Global Expansion
50 countries
"Organize content with timeline for chronological events and temporal progress tracking"

Layouts

Spatial arrangements that structure content. Grids, splits, bento boxes, and dashboards—the foundational scaffolding that establishes hierarchy and visual flow.

Updated Jan 2025

Bento Box

Mosaic grid layout—tiles of varied sizes, asymmetric arrangement, modern dashboard aesthetic

Mosaic Grid
2x2
1x2
1x1
1x1
2x1
1x2
"Create a bento box layout with mosaic grid tiles of different sizes and asymmetric arrangement"

Masonry

Waterfall grid—Pinterest-style columns, varying heights, organic vertical flow

Vertical Flow
COLUMN STRUCTURE
"Masonry grid with Pinterest-style columns, varying heights, waterfall layout"

Split Screen

Dual pane layout—50/50 vertical split, side-by-side content, clear division

Vertical Division
Left Pane
50% width
Right Pane
50% width
IMAGE
PREVIEW
"Split screen with 50/50 vertical division, dual pane design"

Hero Section

Full-screen landing—centered content, large headline, prominent CTA, above-the-fold impact

Landing Impact
Centered
Left-Aligned
"Create a hero section with full-screen landing, centered content, large headline, and CTA"

Sidebar

Side navigation—fixed nav panel, main content area, app-style interface, persistent menu

Nav + Content
Navigation
Dashboard
Projects
"Create a sidebar layout with fixed navigation panel and main content area"

Card Grid

Uniform grid—equal-sized cards, consistent spacing, clean gallery layout

Equal Cards
"Card grid with uniform cards, equal sizes, clean spacing"

Dashboard

Widget-based layout—data panels, charts, metrics, multi-section grid, analytics interface

Data Widgets
USERS
2.4k
REVENUE
$12k
ORDERS
845
RATE
94%
REVENUE TREND
SPLIT
"Create a dashboard layout with data widgets, charts, and metrics grid"

Holy Grail

Classic 5-section—header, footer, left sidebar, right sidebar, central content

5 Sections
HEADER
L
CONTENT
R
FOOTER
"Holy grail with header, footer, two sidebars, central content"

Magazine

Editorial layout—multi-column text, large images, print-inspired typography

Editorial Style
"Magazine layout with multi-column text, large images, editorial style"

Floating Cards

Layered depth—overlapping cards, elevated shadows, z-axis stacking

Depth & Elevation
ELEVATION LEVELS
Level 1 - sm
Level 2 - lg
"Floating cards with overlapping layers, elevated shadows, depth"

Terminal

CLI aesthetic—command-line interface, monospace fonts, dark theme

$ COMMAND_LINE
bash
$npm run dev
→ Starting server...
Local: localhost:3000
✓ Ready in 842ms
$
1functiongreet(){
2 console.log('Hi')
3}
$ "Terminal layout with CLI aesthetic, monospace fonts, dark theme"

Forms

Input controls and validation mechanisms for data collection. Text fields, dropdowns, date pickers, and validation states—designed for accuracy and efficiency.

Updated Jan 2025

Input Field

Text entry—labels, placeholders, types (email, password), focus states

States & Types
Default
Focus
Error
Success
Key Rules:
✓ Label above field, not inside
✓ Clear focus states (border + ring)
✓ Min height 44px for touch targets
✓ Use correct input type (email, tel, number)
"Input fields with labels, focus states, and input types"

Validation

Error feedback—inline validation, real-time checks, clear error messages, prevent bad data submission

Real-Time Validation
Key Rules:
• Validate on blur, not every keystroke
• Show success states, not just errors
• Clear, specific error messages
"Add validation with error messages"

Autocomplete

Smart suggestions—type-ahead search, filtered results, keyboard navigation, faster data entry

Working Autocomplete
Typing
san...
Suggestions
San Francisco
San Diego
Santa Monica
Key Rules:
• Highlight matching text in suggestions
• Show results after 2-3 characters
• Support keyboard navigation (up/down)
• Close dropdown on selection or blur
"Add autocomplete with suggestions"

File Upload

Document picker—drag & drop, browse button, progress indication, file type restrictions, multi-file support

Drag & Drop Upload
📁
Drag & drop files
or
Max 10MB • PDF, JPG, PNG
Key Rules:
• Show visual feedback when dragging
• Display progress for large files
• List uploaded files with remove option
• Validate file type and size limits
"Add file upload with drag & drop"

Checkbox

Multi-select—independent choices, check/uncheck, multiple selections allowed, binary options

Interactive Checkboxes
Notification Settings
Unchecked
Checked
Key Rules:
• Allow multiple selections at once
• Each checkbox is independent
• Use for "agree to terms" scenarios
"Add checkboxes for multiple selections"

Radio Group

Single choice—mutually exclusive options, one selection only, circular buttons, grouped decisions

Pricing Plans (One Choice)
Choose Plan
Key Rules:
• Only one option can be selected
• Use for 2-5 mutually exclusive choices
• Always have one option pre-selected
"Add radio groups for single selection"

Toggle Switch

On/Off control—instant action, binary state, physical switch metaphor, immediate effect

Settings Toggles
🌙
Dark Mode
Use dark theme
🔔
Notifications
Push alerts
Key Rules:
• Takes effect immediately (no submit)
• Use for on/off settings only
• Show current state clearly
"Add toggle switches for on/off actions"

Date Picker

Calendar selector—visual date selection, month/year navigation, prevents invalid dates, better than typing

Calendar Interface
Input Field
📅 MM/DD/YY
Calendar Grid
Key Rules:
• Show calendar on input click
• Prevent invalid date entry
• Highlight current/selected date
• Allow keyboard input as alternative
"Add a date picker with calendar"

Search Bar

Universal finder—magnifying glass icon, query input, instant results, clear button, the gateway to content

Instant Search
🔍
Pill Style
🔍
Active
🔍
Key Rules:
• Show results as user types (debounced)
• Include clear button when input has text
• Always show search icon on left
• Display result count and empty states
"Add a search bar with icon and clear button"

Dropdown

Select menu—expandable list, single selection, space-efficient, better for many options than radio buttons

Custom Dropdown
Key Rules:
• Use for 5+ options (radio for fewer)
• Show selected value clearly
• Native select better on mobile
"Add a dropdown for single selection"

Motion & Animation

Timing functions and animation styles that bring interfaces to life. Easing curves, springs, bounces—each creates distinct emotional responses from playful to professional.

Updated Jan 2025

Ease In-Out

Animation that starts slowly, accelerates in the middle, then decelerates smoothly at the end. Creates natural, comfortable motion.

Animation Demo
Key Rules:
• Use for UI transitions and element movements
• Duration should be 200-400ms for most interactions
• Best for natural, comfortable motion that doesn't draw attention
"Animate with ease-in-out timing for smooth, natural motion that accelerates in the middle and gently comes to rest. Use for button transitions, modal openings, and subtle UI movements."

Spring

Physics-based animation that mimics spring behavior with natural overshoot and settling. Creates playful, organic motion.

Animation Demo
Key Rules:
• Perfect for interactive elements and playful interfaces
• Overshoot adds personality but should be subtle
• Use stiffness and damping to control bounce intensity
"Use spring physics for bouncy, playful animations with natural overshoot and settling. Perfect for button presses, drag-and-drop, and interactive elements that need personality."

Snap

Instant animation with no interpolation. Element jumps from one state to another immediately. Creates emphasis and urgency.

Animation Demo
Key Rules:
• Use for instant feedback and state changes
• Perfect for toggles, switches, and binary states
• Combine with other animations for dramatic effect
"Create instant snap animations with no transition time for immediate visual feedback. Use for toggles, visibility changes, and moments where you want sharp, decisive state changes."

Fade

Gradual opacity transition from invisible to visible or vice versa. Creates subtle, elegant appearances and disappearances.

Animation Demo
FADE
Key Rules:
• Use for subtle entrances and exits of elements
• Duration should be 200-400ms for UI, longer for content
• Combine with other transforms for richer effects
"Fade elements in and out for subtle, elegant transitions. Use fade-in for loading content, fade-out for dismissing notifications, and crossfade for smooth content swaps."

Slide

Movement along a single axis from one position to another. Creates directional, purposeful transitions with clear spatial relationships.

Animation Demo
SLIDE
Key Rules:
• Direction should match user action or content flow
• Use for panels, drawers, and navigation transitions
• Combine with fade for smoother effect
"Slide elements from off-screen for dramatic entrances. Use slide-in from right for next content, slide-in from left for previous content, and slide-up for modal appearances."

Scale

Size transformation that grows or shrinks elements from a center point or origin. Creates emphasis and focus.

Animation Demo
Key Rules:
• Scale from center for balanced growth
• Use scale-up for emphasis, scale-down for dismissal
• Keep transforms between 0.8x and 1.2x for subtlety
"Animate scale transforms to create emphasis and focus. Use scale-up on hover for interactive elements, scale-in for appearing modals, and pulse effects for notifications."

Bounce

Animation with elastic rebound effect that simulates physical bounce. Creates playful, energetic motion with personality.

Animation Demo
Key Rules:
• Use sparingly - bounce is high-energy and attention-grabbing
• Perfect for success states and celebration moments
• Reduce intensity for professional/serious contexts
"Create bounce animations with elastic rebound for playful, energetic effects. Use for success notifications, gamification elements, and moments that celebrate user achievement."

Morph

Smooth transformation between different shapes, sizes, or states. Creates fluid, organic transitions that show relationships.

Animation Demo
Key Rules:
• Use to show state changes and transformations
• Keep transition smooth with proper easing
• Combine shape, size, and color changes for rich effects
"Animate smooth morphing between shapes and states to show transformation. Use for loading spinners that become checkmarks, buttons that expand to forms, and icon state changes."

Parallax

Layered animation where elements move at different speeds to create depth. Creates immersive, dimensional scrolling experiences.

Animation Demo
DEPTH
LAYERS
Key Rules:
• Background layers move slower than foreground
• Use 2-4 layers maximum for performance
• Keep speed differences subtle for natural effect
"Create parallax scrolling with layered elements moving at different speeds. Use for hero sections, storytelling experiences, and immersive landing pages that need depth."

Stagger

Sequential animation where multiple elements animate with progressive delays. Creates rhythm and visual flow.

Animation Demo
Key Rules:
• Delay between items should be 50-100ms for smooth flow
• Use for lists, grids, and groups of related items
• Stagger direction should match reading/scan pattern
"Animate multiple elements with staggered delays for cascading effects. Use for list items appearing, card grids loading, and navigation menus expanding to create visual rhythm."

Voice & Tone

Communication patterns that define brand personality. Voice is consistent identity—tone adapts to context. Reference these for copy across support, marketing, and product.

Updated Jan 2025

Professional

Formal, authoritative voice—expert tone, precise language, credible communication

Example Copy
WELCOME

"We appreciate your business. Our enterprise solutions are designed to optimize operational efficiency and deliver measurable results."

ERROR

"Authentication failed. Please verify your credentials and attempt to access the system again."

Key Traits:
• Formal language structure
• Industry-specific terminology
• Evidence-based claims
"Write in professional voice: formal, authoritative, expert, precise, credible"

Friendly

Warm, conversational voice—approachable, welcoming, personable communication

Example Copy
WELCOME

"Hey there! We're so glad you're here. Our team is ready to help make things easy for you. Feel free to reach out anytime!"

ERROR

"Oops! Something didn't work quite right. Let's try that again together—we're here to help!"

Key Traits:
• Conversational language
• Welcoming greetings
• Personal pronouns (we, you)
"Write in friendly voice: warm, conversational, approachable, welcoming"

Playful

Fun, lighthearted voice—entertaining, energetic, whimsical communication

Example Copy
WELCOME

"Welcome to the party! 🎉 Ready to dive in? We've got some awesome stuff lined up that'll knock your socks off!"

ERROR

"Whoopsie-daisy! Looks like something went sideways. Give it another whirl!"

Key Traits:
• Playful expressions & wordplay
• Emojis and visual elements
• Energetic, upbeat tone
"Write in playful voice: fun, lighthearted, entertaining, energetic"

Authoritative

Commanding, confident voice—expert knowledge, decisive tone, trustworthy delivery

Example Copy
WELCOME

"This platform delivers proven solutions backed by 20 years of industry leadership. Trust the experts."

ERROR

"Access denied. Invalid credentials. Follow protocol and re-enter authorized information."

Key Traits:
• Direct, commanding statements
• Expert credentials emphasized
• Decisive language choices
"Write in authoritative voice: commanding, confident, expert, decisive"

Inspirational

Uplifting, motivational voice—empowering, aspirational, encouraging communication

Example Copy
WELCOME

"Your journey to greatness starts here. Together, we'll unlock your full potential and achieve extraordinary results."

ERROR

"Every setback is a setup for a comeback. Let's try again—you've got this!"

Key Traits:
• Empowering language
• Aspirational messaging
• Growth-oriented framing
"Write in inspirational voice: uplifting, motivational, empowering, aspirational"

Quirky

Unconventional, witty voice—unique personality, memorable, distinctively offbeat

Example Copy
WELCOME

"Plot twist: you just stumbled into the coolest corner of the internet. Buckle up, buttercup—things are about to get interesting."

ERROR

"Well, that was awkward. The digital gremlins are at it again. Let's give this another shot!"

Key Traits:
• Unexpected word choices
• Distinctive personality
• Memorable turns of phrase
"Write in quirky voice: unconventional, witty, unique, offbeat, memorable"

Celebratory

Excited, festive voice—joyful, enthusiastic, achievement-focused communication

Example Copy
WELCOME

"Congratulations! 🎊 You're about to achieve something amazing. Let's celebrate every win, big and small!"

ERROR

"Not quite there yet, but you're so close! One more try and we'll be celebrating together!"

Key Traits:
• Enthusiastic language
• Achievement recognition
• Festive, joyful tone
"Write in celebratory voice: excited, festive, joyful, enthusiastic"

Empathetic

Understanding, compassionate voice—supportive, caring, emotionally aware delivery

Example Copy
WELCOME

"We understand this might feel overwhelming. You're not alone—we're here to support you every step of the way."

ERROR

"We know how frustrating this can be. Let's work through this together—your concerns matter to us."

Key Traits:
• Compassionate language
• Acknowledgment of feelings
• Supportive reassurance
"Write in empathetic voice: understanding, compassionate, supportive, caring"

Urgent

Time-sensitive, critical voice—immediate action required, attention-grabbing delivery

Example Copy
WELCOME

"Action required now! Your immediate attention is needed. Complete these steps within the next 24 hours."

ERROR

"Critical error detected. Immediate action required. Fix this issue now to prevent data loss."

Key Traits:
• Time-sensitive language
• Action-focused directives
• Attention-grabbing tone
"Write in urgent voice: time-sensitive, critical, immediate, action-required"

Educational

Informative, instructive voice—clear explanations, teaching-focused, accessible knowledge

Example Copy
WELCOME

"Let's learn together. This guide will walk you through each concept step-by-step, building your understanding progressively."

ERROR

"This error occurs when the input format is incorrect. Here's what you need to know to fix it."

Key Traits:
• Clear, structured explanations
• Step-by-step guidance
• Accessible terminology
"Write in educational voice: informative, instructive, clear, teaching-focused"

Persuasive

Compelling, influential voice—convincing arguments, benefit-focused, action-driven

Example Copy
WELCOME

"Imagine achieving your goals 3x faster. Our proven system has helped thousands succeed—you could be next."

ERROR

"Don't let this small hiccup stop your progress. Try again now and keep moving toward success."

Key Traits:
• Benefit-focused messaging
• Compelling calls-to-action
• Social proof & credibility
"Write in persuasive voice: compelling, influential, convincing, action-driven"

Casual

Relaxed, informal voice—laid-back, conversational, easy-going communication

Example Copy
WELCOME

"Hey! Good to see you. Just grab what you need and let us know if you have any questions. No pressure!"

ERROR

"Hmm, that didn't work. No worries though—just give it another shot."

Key Traits:
• Relaxed, informal language
• Conversational style
• Low-pressure approach
"Write in casual voice: relaxed, informal, laid-back, conversational"

Feedback

System communication patterns that keep users informed. Toasts, loading states, errors, and confirmations—the signals that explain what's happening in your product.

Updated Jan 2025

Toast

Temporary notification—auto-dismiss, non-blocking feedback

Click to show toast:
Preview:
Changes saved successfully!
Key Rules:
• Auto-dismiss in 3-5 seconds
• Bottom or top corner placement
• Color-code by type (success/error/info)
"Add toast notifications with auto-dismiss and color-coded types"

Loading Spinner

Activity indicator—rotating circle, indeterminate progress

Spinner Types:
Classic
Dots
Pulse
Button State:
Key Rules:
• Show immediately for tasks under 1s delay
• Use for unknown duration tasks only
• Add "Loading..." text if over 2 seconds
"Add loading spinner for indeterminate wait times with continuous animation"

Skeleton Screen

Content placeholder—shimmer animation, better perceived performance

Key Rules:
• Match final content layout exactly
• Use subtle pulse animation
• Prefer over spinners for content
"Add skeleton screens matching content layout with pulse animation"

Progress Bar

Visual percentage indicator filling left-to-right for determinate tasks

Uploading file...0%
0%
Key Rules:
• Always show percentage number clearly
• Never animate backwards (only forward)
• Only use for known duration tasks
"Add progress bar with percentage display for determinate tasks"

Empty State

Zero data screen—explain why empty, guidance, clear action

📭

No messages yet

Your inbox is empty. Start a conversation with your team to begin messaging.

🔍

No results

Try different keywords

🎉

All done!

No tasks remaining

Key Rules:
• Explain why empty (be helpful, not judgmental)
• Provide clear next action (specific CTA)
• Use friendly icon matching context
"Add empty states with helpful messages and clear CTAs"

Alert Banner

Full-width system message bar for important dismissible notifications

Success!
Your changes have been saved.
⚠️
Warning
Trial expires in 3 days. Upgrade now.
Key Rules:
• Use sparingly (high priority only)
• Color-code by severity level
• Always include close button
"Add alert banners with color-coded severity and dismissible controls"

Confirm Dialog

Destructive action guard preventing accidents with clear Yes/No choice

Key Rules:
• Explain consequences clearly
• Safe action on left (Cancel first)
• Use only for critical actions
"Add confirm dialogs for destructive actions with clear consequences"

Badge

Notification count—small pill with number, unread indicator

🔔
3
Notifications
💬
3
Messages
⚠️
Dot Style
Key Rules:
• Use red for high attention notifications
• Cap at 9+ for large numbers (readability)
• Dot indicator for boolean (yes/no)
"Add badges for notification counts with top-right positioning"

Error State

Failure feedback—explain what happened, provide recovery

⚠️

Connection Error

Unable to reach server. Check connection.

🔍

404

Not found

Invalid

Bad input

⏱️

Timeout

Too slow

Key Rules:
• Use plain language (avoid error codes)
• Suggest next steps for recovery
• Friendly tone (don't blame user)
"Add error states with clear messages and recovery actions"

Success Message

Positive confirmation—green checkmark, celebratory language

🎉

Payment Successful!

Order #12345 confirmed. Check email.

Saved

📤

Sent

Key Rules:
• Show immediately after action completes
• Use celebratory, positive language
• Green is universal success color
"Add success messages with green checkmarks and positive copy"

Cybersecurity

Security patterns that protect your application and users. Authentication, authorization, data protection, and threat prevention—the foundations of secure software.

NEW

OAuth

Third-party login—secure delegation

Flow
Your App
Provider
User logs in at provider
Provider
Token
Google
OAuth 2.0
GitHub
OAuth 2.0
Auth0
OIDC
Key Rules:
• Never store passwords—delegate to provider
• Validate redirect URIs to prevent hijacking
• Use HTTPS only for token transmission
"Implement OAuth 2.0 authentication with secure token handling, refresh flow, and third-party provider integration"

JWT

JSON Web Tokens—stateless authentication

Token Structure
Header
{ alg: 'HS256', typ: 'JWT' }
Payload
{ sub: '123', exp: 1735689600 }
Signature
HMACSHA256(...)
Benefits
Stateless
Self-contained
Cross-domain
Storage
httpOnly cookie
localStorage
sessionStorage
Key Rules:
• Set short expiration times (15-60min)
• Use refresh tokens for long sessions
• Never store sensitive data in payload
"Implement JWT authentication with secure token generation, validation, and refresh mechanism"

MFA

Require 2 forms of proof to log in

Step 1: Password
Something you know
+
Step 2: Code
Something you have
Text message • Google Authenticator • Security key
Without MFA
Easy to hack
With MFA
99% safer
When to Use:
Protecting admin panels, banking, healthcare, payment info
"Implement MFA with TOTP or SMS verification"

System Design

Architecture patterns for scalable systems. Microservices, databases, caching, communication—the building blocks of robust infrastructure.

NEW

Microservices

Independent services working together

API Gateway
Auth
Node.js
Payment
Python
User
Go
✓ Benefit
Scale independently
⚠ Tradeoff
More complex
Tools: Docker • Kubernetes
When to Use:
Large apps with different scaling needs per feature
"Design microservices with API gateway and service discovery"

Load Balancing

Distribute traffic across servers

Load Balancer
Server 1
✓ Healthy
Server 2
✓ Healthy
Server 3
✗ Down
Round Robin
Least Conn
IP Hash
Tools: NGINX • AWS ALB • HAProxy
When to Use:
Multiple servers handling high traffic
"Set up load balancing with health checks"

Caching

Store frequently used data in fast memory

How It Works
Cache hit → Instant (2ms)
Cache miss → Slow (200ms)
Tools: Redis • Memcached • CloudFlare
When to Use:
Data that's read often but changes rarely (user profiles, product catalogs, API responses)
"Implement caching with Redis to reduce DB load"

RESTful API

Standard way apps talk to servers

GET
Read data
POST
Create new
PUT
Update
DELETE
Remove
GET /users/123
POST /users
When to Use:
Any app communicating with a server (mobile apps, web apps, integrations)
"Create RESTful API with GET, POST, PUT, DELETE"

Message Queue

Tasks wait in line

Producer
Queue
Worker
Emails • Payments • Video processing
Tools: RabbitMQ • AWS SQS
When to Use:
Tasks that don't need instant response
"Implement message queue with RabbitMQ for async tasks"

Horizontal Scaling

Add more servers

1 server:
Crashes
5 servers:
Fast & reliable
Horizontal →
More machines
Vertical ↑
Bigger machine
Tools: AWS • Kubernetes
When to Use:
Traffic spikes (Black Friday, 10k+ users)
"Set up horizontal scaling with auto-scaling groups"

CDN

Files from nearest location

Without CDN:
Tokyo → NY (300ms)
With CDN:
Tokyo → Tokyo (20ms)
Images • Videos • CSS • JS
Tools: CloudFlare • AWS CloudFront
When to Use:
Global audience or lots of media files
"Set up CDN with CloudFlare for static assets"

Database Sharding

Split data across servers

Users A-M → Shard 1
50% of data
Users N-Z → Shard 2
50% of data
Single DB
Slow queries
Sharded
Fast & scalable
Tools: MongoDB • PostgreSQL • MySQL
When to Use:
Database too big for one server (millions of rows)
"Set up database sharding to split data across servers"

API Rate Limiting

Limit requests per user

Request 1-100
✓ Allowed
Request 101+
✗ Blocked (429 error)
100 requests/hour per user
Tools: Redis • NGINX • Express
When to Use:
Prevent abuse, manage costs, protect servers
"Add API rate limiting to prevent abuse"

WebSockets

Real-time two-way updates

Client
Server
Instant updates both ways
HTTP
One-way, slow
WebSocket
Two-way, fast
Chat • Live scores • Trading • Multiplayer
Tools: Socket.io • Pusher
When to Use:
Need instant updates (chat, live feeds, games)
"Use WebSockets for real-time communication"

AI Vocabulary

Prompt engineering patterns for better AI interactions. Techniques to improve accuracy, control output, and communicate effectively with language models.

NEW

Chain of Thought

Ask AI to show its work

Q: Use microservices for 3-person startup?
1. Team = 3 people
2. Microservices = overhead
→ Start with monolith
No reasoning
Less accurate
With reasoning
More accurate
When to Use:
Math, logic, or decisions that need explanation
"Think step-by-step before answering"

Few-Shot Learning

Show AI examples first

"great" → Positive
"terrible" → Negative
Now: "loved it" → ?
No examples
Guesses
With examples
Accurate
When to Use:
Need specific format or classification pattern
"Give 2-3 examples before asking"

Temperature

Randomness control—creativity vs consistency

Scale
0.0 ❄️ Deterministic
Same input → Same output
0.7 ⚖️ Balanced
Accuracy + creativity
1.0+ 🔥 Creative
Maximum variation
Low (0-0.3)
Code, facts
High (0.8+)
Ideas, stories
Key Rules:
• Lower = predictable, higher = random
• Use 0 for reproducible results
• Default 0.7 for most tasks
"Set temp to 0 (deterministic), 0.7 (balanced), or 1+ (creative)"

Verbose

Detailed output—comprehensive explanations

Comparison
❌ Concise:
"Use async/await"
✓ Verbose:
"Async/await handles promises:
1. Looks synchronous
2. try/catch errors
3. Ex: await fetch(url)"
✓ Use:
Learning, debugging
✗ Avoid:
Quick answers
Key Rules:
• Ask for "detailed" or "step-by-step"
• More tokens but clearer
• Opposite of "concise"
"Explain in detail with step-by-step reasoning"

System Prompt

Define AI personality and rules

Role:
"You are a senior engineer"
Behavior:
"Write clean, tested code"
Without
Generic
With
Consistent
When to Use:
Set consistent AI behavior for entire conversation
"You are [role]. Be [tone]. Always [behavior]."

RAG

Give AI your docs to answer from

1. Retrieve
2. Add
3. Answer
"Here's my API docs. How do I authenticate?"
Without
Makes things up
With RAG
Uses your docs
When to Use:
AI needs to answer from your specific docs or data
"Context: [docs]. Based on this, answer: [question]"

Prompt Chaining

Break big tasks into steps

1. Research
2. Design
3. Code
Each step uses previous output
One big ask
Messy
Step by step
Clear
When to Use:
Complex projects that need multiple stages
"Step 1: [task]. Step 2: Use output for [next]."

Complex UI Patterns

Battle-tested implementation prompts for the hardest UX problems. These are the "$10k features" every app needs—shopping carts, real-time collaboration, infinite feeds. No visuals needed, just comprehensive prompts designed to make AI think harder.

8 patternsNEW ✨Prompt-only format

🛒 Shopping Cart System

Guest checkout + local storage + magic link auth + cart migration

E-commerceSaaSMarketplace
4-6 hours
When to Use:

E-commerce sites, marketplace apps, SaaS products with paid features. Handles both logged-out browsing and seamless account creation at checkout.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Start by mapping out your existing data models first—show AI your Product and User schemas
  • 2.Break this into 3 phases: (1) localStorage cart, (2) magic link auth, (3) cart migration
  • 3.Test the merge logic extensively—this is where most bugs happen
  • 4.Ask AI: "What edge cases am I missing?" before implementing
AI Prompt:

Build shopping cart system with these requirements:

Guest Experience: Store cart in localStorage with unique session ID. Persist for 30 days. Handle multiple tabs syncing via storage events. Show item count badge in header.

Cart Operations: Add/remove items, update quantities, apply promo codes, calculate tax and shipping in real-time. Optimistic UI updates with rollback on errors.

Checkout Flow: Offer guest checkout (email + shipping) OR account creation. For new accounts, use magic link authentication (email with 6-digit code, 15-minute expiration). On successful auth, migrate localStorage cart to database and associate with user account.

Returning Users: On login, check for localStorage cart. If exists, merge with server cart (keep higher quantity for duplicates). Show confirmation modal before merge.

Edge Cases: Handle out-of-stock during checkout, price changes since cart addition, expired promo codes, concurrent cart modifications, network failures with retry logic.

Tech Stack: Next.js App Router, React Server Components for cart display, Server Actions for mutations, Prisma + PostgreSQL for database, Redis for session management, Resend for magic link emails.

📱 Infinite Feed

Twitter/Instagram style + optimistic updates + skeleton loading

SocialContent PlatformNews Site
3-5 hours
When to Use:

Social feeds, news sites, content discovery apps, activity streams. Optimized for endless scrolling with real-time updates and instant interactions.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Show AI your existing Post/Item component first—it needs to understand your data structure
  • 2.Implement pagination BEFORE optimistic updates—get the basics solid first
  • 3.Ask AI to explain cursor-based pagination before implementing (many get this wrong)
  • 4.Test with slow 3G throttling to ensure loading states feel right
AI Prompt:

Build infinite feed with these requirements:

Pagination: Load 20 items initially, fetch next 20 when user reaches 80% scroll depth. Use cursor-based pagination (last item timestamp) not offset-based. Implement intersection observer for scroll detection, not scroll event listeners.

Loading States: Show skeleton screens during initial load. Display "loading more" spinner at bottom during pagination. Prevent duplicate fetches with request deduplication.

Optimistic Updates: Like/unlike, bookmark, repost actions update UI immediately before server confirmation. Show subtle loading indicator on item during mutation. Roll back on error with toast notification.

Real-time: Use WebSocket or Server-Sent Events to receive new items. Show "5 new posts" banner at top instead of auto-injecting (prevents scroll jumping). Click banner to smoothly scroll to top and insert new items.

Performance: Virtualize list if >100 items (use react-window). Lazy load images with blur placeholder. Cache feed data in React Query with 5-minute stale time. Prefetch next page when user reaches 50% scroll.

Empty States: Show onboarding if feed is empty. Display "You're all caught up!" at end with suggestions to follow more accounts.

Tech Stack: React, TanStack Query (React Query) for data fetching, Intersection Observer API, react-window for virtualization, Supabase Realtime or Pusher for live updates.

👥 Real-time Collaboration

Google Docs style cursors + presence + conflict resolution

SaaSProductivityDesign Tool
6-8 hours
When to Use:

Collaborative editors, design tools, project management apps, whiteboards. Enables multiple users to edit same document simultaneously without conflicts.

💡
Pro Tips — Read Before Using This Prompt
  • 1.This is the hardest pattern—don't attempt without understanding CRDTs or OT first
  • 2.Ask AI to explain Yjs vs Automerge before choosing (they have different tradeoffs)
  • 3.Start with presence indicators only, then add collaborative editing
  • 4.Use Liveblocks or Partykit—don't build WebSocket infrastructure from scratch
AI Prompt:

Build real-time collaboration with these requirements:

Presence Awareness: Show avatar bubbles of active users (max 5 visible, +N for overflow). Display colored cursor with username label tracking remote users' positions. Show "User X is typing..." indicator. Auto-remove user after 30 seconds of inactivity.

Conflict Resolution: Use Operational Transformation (OT) or CRDT (Conflict-free Replicated Data Type) for text editing. Implement last-write-wins for form fields with visual indicator showing who made last change and when. Lock editing on specific sections when user is actively typing (release after 3 seconds of no input).

Change Broadcasting: Send changes via WebSocket with 50ms debounce. Include operation type (insert/delete/update), position, content, user ID, and timestamp. Handle offline mode by queuing changes and syncing on reconnect.

Version History: Create snapshot every 5 minutes or 100 operations. Store diffs not full copies. Allow restore to any point with visual diff preview. Show timeline slider with user avatars marking who made changes.

Permissions: Support view-only, comment-only, and edit modes. Show permission badge next to user avatars. Allow document owner to change permissions in real-time (immediately revoke access).

Network Resilience: Show connection status indicator. Buffer changes during disconnect. On reconnect, replay buffered operations with conflict resolution. Show "Syncing..." state with retry count.

Tech Stack: Yjs or Automerge for CRDT, Liveblocks or Partykit for real-time infrastructure, TipTap or ProseMirror for rich text editing, WebSocket for transport layer, Redis for presence tracking.

🚀 Multi-step Onboarding

Progress tracking + conditional branching + exit recovery

SaaSProductMobile App
3-4 hours
When to Use:

New user onboarding, account setup wizards, product configuration flows. Guides users through complex setup with data persistence across steps.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Map out your decision tree on paper first—show AI a flowchart of possible paths
  • 2.Store progress in URL params for easy debugging (can share exact state)
  • 3.Ask AI about Formik vs React Hook Form before implementing (RHF is lighter)
  • 4.Test the "exit and return" flow extensively—users will abandon mid-flow
AI Prompt:

Build multi-step onboarding with these requirements:

Step Management: Create wizard with 4-7 steps. Show progress bar with step titles. Support back/next navigation. Validate current step before allowing progression. Store completed step numbers in state.

Data Persistence: Save form data to localStorage after each step. Persist for 7 days. On page reload or return visit, restore user to last completed step with all previous data. Show "Resume where you left off" banner if incomplete onboarding detected.

Conditional Branching: Show/hide steps based on previous answers. Example: If user selects "Business" account, show company details step. If "Personal", skip to preferences. Update progress bar dynamically when steps are added/removed.

Exit Intent: Detect when user tries to leave (beforeunload event). Show modal: "Save progress and finish later?" with options to Continue or Exit. Send reminder email after 24 hours if onboarding incomplete.

Validation: Real-time validation per field with debouncing. Show field-level errors immediately. Block progression if current step has errors. Summarize all errors at top if user tries to skip.

Final Submission: On last step, show summary of all answers with Edit buttons. Submit all data at once with loading state. On success, clear localStorage and redirect to dashboard. On error, keep data and show specific error message.

Tech Stack: React Hook Form for validation, Zustand or Context for step state, localStorage for persistence, Framer Motion for step transitions, Zod for schema validation.

🔍 Search with Filters

Faceted search + URL sync + debouncing + recent searches

E-commerceContent PlatformSaaS
4-5 hours
When to Use:

Product catalogs, job boards, real estate listings, any searchable database. Enables users to narrow down large datasets with multiple filter criteria.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Show AI your database schema—filter performance depends on proper indexes
  • 2.Use URL params for filters (allows sharing exact search results)
  • 3.Ask AI about Algolia vs Typesense vs PostgreSQL full-text search before deciding
  • 4.Implement search BEFORE filters—get relevance working first
AI Prompt:

Build search with filters with these requirements:

Search Input: Debounce search queries by 300ms. Show loading indicator in search box during fetch. Display result count: "Showing 43 of 1,203 results". Highlight search terms in results.

Filter System: Support multiple filter types: checkboxes (categories), range sliders (price), dropdowns (location), date pickers. Show active filter count badge. Display active filters as removable chips above results. "Clear all" button when multiple filters active.

URL Synchronization: Encode all filters and search query in URL params. Update URL without page reload (pushState). Parse URL on load to restore exact search state. Enable back/forward browser navigation through search history. Make URLs shareable—clicking link shows identical results.

Faceted Counts: Show result counts next to each filter option: "Electronics (234)". Update counts dynamically when other filters applied. Disable options with 0 results (gray out). Recalculate counts with each filter change.

Recent Searches: Store last 5 searches in localStorage. Show dropdown of recent searches below input on focus. Include search query and filter state. Allow clicking to restore exact search. Clear individual history items or all at once.

Performance: Implement server-side filtering with indexed database queries. Paginate results (20 per page). Cache filter options that rarely change. Use React Query with staleTime for repeated searches.

Tech Stack: Next.js with useSearchParams hook, React Query for search caching, Algolia or Typesense for advanced search, PostgreSQL with GIN indexes for full-text, Zustand for filter state.

📤 File Upload Flow

Drag-drop + progress + retry + preview + cloud storage

SaaSContent PlatformProduct
3-4 hours
When to Use:

Document uploads, profile pictures, content management, attachments. Handles large files with progress tracking, validation, and cloud storage integration.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Decide on storage first—S3, Cloudinary, or Vercel Blob? Each has tradeoffs
  • 2.Show AI your file size limits and allowed formats upfront
  • 3.Ask about signed URLs vs presigned uploads (security critical)
  • 4.Test with large files (50MB+) on slow connections before deploying
AI Prompt:

Build file upload flow with these requirements:

Drop Zone: Create drag-and-drop area with hover state. Support click to browse files. Accept multiple files simultaneously. Show file type icons and names immediately. Validate file types and sizes before upload (reject if invalid).

Upload Progress: Show individual progress bar for each file with percentage. Display upload speed (MB/s) and time remaining. Support pausing and resuming uploads. Show all files uploading in a queue (process 3 at a time). Thumbnail preview for images during upload.

Cloud Storage: Use presigned URLs for direct browser-to-S3 uploads (skip your server). Generate unique filenames with UUID prefix. Store metadata in database: original filename, size, MIME type, upload timestamp, user ID. Set appropriate CORS and bucket policies.

Error Handling: Retry failed uploads automatically (3 attempts with exponential backoff). Show specific error messages: "File too large (max 50MB)" or "Invalid format (PDF only)". Allow manual retry with button. Don't lose progress on network disconnect.

Preview Generation: Generate thumbnails server-side for images using Sharp or Cloudinary. Extract first page for PDFs. Show loading skeleton while generating. Store preview URLs in database. Lazy load previews in galleries.

File Management: Allow deleting uploaded files (remove from storage + database). Download original file button. Copy shareable link to clipboard. Show file metadata: size, upload date, dimensions for images.

Tech Stack: AWS S3 or Vercel Blob for storage, Next.js API routes for signed URLs, react-dropzone for drag-drop, Sharp for image processing, Uppy or Filepond as alternative full solutions.

🔔 Notification System

Toast queue + real-time + read/unread + grouping

SaaSSocialProduct
4-5 hours
When to Use:

Activity feeds, alerts, system messages, user interactions. Shows real-time notifications without disrupting user flow, with persistence across sessions.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Design your notification schema first—type, priority, grouping rules matter
  • 2.Show AI examples of your notifications (what does a "like" vs "comment" notification look like?)
  • 3.Ask about toast libraries (Sonner is excellent) before building from scratch
  • 4.Implement read/unread logic before real-time—get the basics solid
AI Prompt:

Build notification system with these requirements:

Toast Queue: Display toasts in bottom-right corner stacked vertically (max 3 visible). Auto-dismiss after 5 seconds (error toasts stay until dismissed). Support success, error, warning, info types with color coding. Swipe to dismiss on mobile. Show newest on top, push older down.

Notification Center: Bell icon in header with unread count badge. Dropdown panel showing last 20 notifications. Group similar notifications: "John and 5 others liked your post". Show timestamps: "2 minutes ago" vs "Mar 15". Infinite scroll for older notifications.

Real-time Delivery: Use WebSocket or Server-Sent Events for instant delivery. Show toast for high-priority notifications (mentions, DMs). Update notification center badge count without toast for low-priority (likes, follows). Batch notifications: if 5 likes in 30 seconds, group into one.

Read/Unread State: Mark as read when notification clicked or when notification center opened. Bold unread notifications. Show blue dot indicator for unread. "Mark all as read" button. Track read status per user in database.

Notification Types: Support multiple types: likes, comments, mentions, follows, system alerts, marketing messages. Each type has icon, color, and action (navigate to post/profile). Allow filtering by type in notification center. User preferences for which types to receive.

Persistence: Store notifications in database with: type, content, timestamp, read status, user ID, reference ID (post/comment ID). Fetch last 30 days on load. Paginate older history. Delete read notifications after 90 days automatically.

Tech Stack: Sonner or react-hot-toast for toasts, Pusher or Supabase Realtime for WebSocket, PostgreSQL for storage, React Query for fetching, Zustand for unread count state.

💳 Payment Flow

Stripe integration + error handling + webhooks + receipts

E-commerceSaaSSubscription
5-6 hours
When to Use:

Subscription billing, one-time purchases, donations, invoicing. Secure payment processing with proper error handling and receipt generation.

💡
Pro Tips — Read Before Using This Prompt
  • 1.Read Stripe docs first, then show AI the specific Stripe API methods you want to use
  • 2.Test with Stripe test cards for every error scenario before going live
  • 3.Webhooks are critical—ask AI to explain idempotency keys and event ordering
  • 4.Never store credit card numbers—let Stripe handle PCI compliance
AI Prompt:

Build payment flow with these requirements:

Checkout Flow: Embed Stripe Payment Element (handles cards, Apple Pay, Google Pay). Show order summary with line items and total. Validate billing address if required. Disable submit button during processing. Show loading spinner on button: "Processing..."

Payment Intent: Create PaymentIntent on server with amount and currency. Return clientSecret to frontend. Confirm payment with Stripe.js. Handle 3D Secure authentication modal (redirect user if needed). Poll payment status after redirect return.

Error Handling: Show specific error messages: "Card declined - insufficient funds" or "Invalid CVC". Allow retry without recreating PaymentIntent. Handle network failures gracefully (don't double-charge). Timeout after 60 seconds with clear message. Log all errors to monitoring service.

Webhook Processing: Listen for payment_intent.succeeded event. Verify webhook signature with Stripe. Use idempotency keys to prevent duplicate processing. Update order status in database atomically. Send confirmation email only after webhook confirms payment. Handle failed webhooks with manual reconciliation.

Receipt Generation: Create PDF receipt with: company logo, invoice number, line items, subtotal, tax, total, payment method (last 4 digits). Store in S3 with secure URL. Email receipt immediately after webhook confirmation. Allow downloading from order history. Include refund policy and support email.

Subscription Support: For recurring billing, create Stripe Customer and Subscription. Handle trial periods, proration, plan changes. Show next billing date and amount. Allow canceling subscription (cancel at period end). Send reminder email 3 days before renewal.

Tech Stack: Stripe SDK (backend + frontend), Next.js API routes for server-side operations, React for payment form, PDFKit or Puppeteer for receipts, Resend for emails, PostgreSQL for orders.

More patterns in development: Chat Interface, Activity Feed, Multi-tenant System, Admin Dashboard

John Hashem

Curated by Claude Code

Deployed by John Hashem, product engineer

Use these patterns with Claude Code Starter to build AI-powered projects