Breakpoints
The design system uses standard breakpoints for responsive layouts:- Mobile: Up to 480px
- Tablet: 481px to 768px
- Desktop: 769px to 1024px
- Large Desktop: 1025px and above
Core Media Queries
Tablet and Below (max-width: 768px)
At 768px and below, the design system adjusts spacing and typography:Desktop Navigation (max-width: 1024px)
Responsive Navigation
The navigation system adapts from desktop to mobile:Desktop Navigation
On desktop, the navigation displays horizontally with hover effects:Mobile Navigation
On mobile (max-width: 768px), the navigation transforms into a slide-out menu:Bento Grid System
The Bento Grid is a modern, responsive grid layout system:Desktop Layout
Tablet Layout (max-width: 768px)
Mobile Layout (max-width: 480px)
Container Queries
Klef v3 introduces container query support for component-level responsive design:Usage Example
Responsive Component Patterns
Responsive Card Grid
Responsive Flex Layout
Responsive Mega Menu
The mega menu adapts to mobile with a slide-in panel:Responsive Typography
Typography classes automatically adjust on mobile:Accessibility Features
Reduced Motion
High Contrast Mode
Best Practices
- Mobile-First Approach: Start with mobile styles and use
min-widthmedia queries to add complexity - Use Container Queries: For component-level responsive behavior
- Flexible Layouts: Use CSS Grid with
auto-fitandminmax()for truly responsive layouts - Touch-Friendly: Ensure interactive elements are at least 44x44px on mobile
- Test on Real Devices: Always test on actual mobile devices, not just browser DevTools

