Patterns
Complete UI patterns built with semantic HTML and Vanilla Breeze. Each pattern demonstrates best practices for accessibility, progressive enhancement, and responsive design.
Patterns are complete UI compositions that combine multiple Vanilla Breeze elements. Unlike snippets (isolated building blocks), patterns show how elements work together in real-world layouts. Copy the HTML directly or use them as reference for your own implementations.
Using Patterns
Each pattern page includes:
- Live demos: Interactive previews in browser windows
- Source code: Copy-ready HTML with semantic structure
- Variants: Multiple versions for different use cases
- Configuration: Available data attributes and classes
Patterns follow these conventions:
- Semantic HTML: Use appropriate elements (
nav, form, section)
- Layout elements: Use
layout-* custom elements for spacing and positioning
- Design tokens: Use
--size-* for spacing, --color-* for colors
- Progressive enhancement: Core functionality works without JavaScript