Design patterns
Reusable solutions for software and interfaces — the 23 classic patterns grouped as creational, structural and behavioural, plus UI patterns for designers.
Creational patterns
How objects are created — hiding construction logic so code stays flexible.
Singleton
Ensure a class has only one instance and provide a global access point to it.
Factory Method
Define an interface for creating an object but let subclasses decide which class to instantiate.
Abstract Factory
Create families of related objects without specifying their concrete classes.
Builder
Separate the construction of a complex object from its representation so the same process can create different representations.
Prototype
Create new objects by copying an existing instance.
Structural patterns
How classes and objects are composed into larger structures.
Adapter
Convert the interface of a class into another interface clients expect.
Bridge
Decouple an abstraction from its implementation so both can vary independently.
Composite
Compose objects into tree structures and treat individual objects and groups uniformly.
Decorator
Attach additional responsibilities to an object dynamically.
Facade
Provide a simple interface to a complex subsystem.
Flyweight
Share common state between many fine-grained objects to save memory.
Proxy
Provide a surrogate that controls access to another object.
Behavioural patterns
How objects communicate and share responsibility.
Chain of Responsibility
Pass a request along a chain of handlers until one handles it.
Command
Encapsulate a request as an object to support undo, queues and logging.
Iterator
Access elements of a collection sequentially without exposing its representation.
Mediator
Centralise complex communication between objects.
Memento
Capture and restore an object's internal state without violating encapsulation.
Observer
Notify dependents automatically when an object changes.
State
Let an object alter its behaviour when its internal state changes.
Strategy
Define a family of interchangeable algorithms.
Template Method
Define the skeleton of an algorithm and let subclasses fill in steps.
Visitor
Add operations to object structures without changing their classes.
UI design patterns
Reusable interface solutions for common user problems.
Progressive onboarding
Teach users gradually, in context, rather than all up front.
Empty states
Turn 'nothing here yet' into guidance and a clear next action.
Data tables
Let users scan, sort, filter and act on many records.
Progressive disclosure
Show only what's needed now; reveal advanced options on demand.
Wizard / stepper
Break a long task into ordered steps with clear progress.