Breakpoints
The primary breakpoint is 768px, distinguishing mobile/tablet from desktop experiences:theme.css
BaseLayout.astro
Breakpoint Reference
| Breakpoint | Width | Usage |
|---|---|---|
| Mobile | 0-768px | Mobile and tablet devices |
| Desktop | 769px+ | Desktop and large screens |
| Large Desktop | 1025px+ | Lenis smooth scroll enabled |
Mobile-First Approach
The design system is built mobile-first, meaning base styles target mobile devices and media queries enhance the experience for larger screens:Mobile-first design ensures the core experience works on all devices, with progressive enhancement for larger screens.
Responsive Variables
CSS custom properties automatically adjust for mobile:Layout Variables
theme.css
Typography Variables
theme.css
Fluid Typography
The typography system usesclamp() for automatic fluid scaling:
global.css
Grid System
Flexible grid system with automatic responsive behavior:Grid Base
global.css
Grid Variants
global.css
Mobile Grid Behavior
Grids automatically collapse to single column on mobile:global.css
Grid Usage Example
Container System
Max-width container with responsive padding:global.css
Responsive Utilities
Section Padding
global.css
Content Padding (Mobile)
global.css
Responsive Images
Images are responsive by default:global.css
Image Container Example
Responsive Navigation
Navigation height adjusts for mobile:theme.css
Button Adjustments
Buttons are smaller on mobile:global.css
Scroll Behavior
Desktop: Lenis Smooth Scroll
BaseLayout.astro
Mobile: Native Touch Scroll
Responsive Animation Considerations
Parallax Adjustments
Parallax effects should be tested on mobile:Animation Delays
Consider reducing animation delays on mobile:Common Responsive Patterns
Two-Column to Single-Column Layout
Hero Section with Responsive Text
Card Grid
Testing Responsive Designs
Browser DevTools
- Open Chrome/Firefox DevTools
- Toggle device toolbar (Cmd/Ctrl + Shift + M)
- Test common viewports: iPhone 12/13, iPad, Desktop
Real Device Testing
Key Viewports to Test
| Device | Width | Notes |
|---|---|---|
| iPhone SE | 375px | Small mobile |
| iPhone 12/13 | 390px | Standard mobile |
| iPad | 768px | Tablet (breakpoint) |
| iPad Pro | 1024px | Large tablet |
| Desktop | 1440px | Standard desktop |
| Large Desktop | 1920px+ | Max content width |
Print Styles
The system includes comprehensive print styles for property sheets:global.css
Best Practices
Test on real devices
Test on real devices
Browser DevTools are useful but don’t replicate real device behavior. Always test critical features on actual mobile devices.
Use CSS variables for breakpoints
Use CSS variables for breakpoints
Leverage responsive CSS variables (like
--spacing-container) instead of hardcoding values in media queries.Embrace fluid typography
Embrace fluid typography
Use
clamp() for typography to reduce media query complexity and create smoother scaling.Avoid horizontal scroll
Avoid horizontal scroll
Ensure
overflow-x: hidden on the body and test all content fits within viewport width.Touch target sizes
Touch target sizes
Ensure buttons and clickable elements are at least 44x44px on mobile for easy touch interaction.
Performance on mobile
Performance on mobile
Mobile devices have less processing power—test animation performance and consider reducing effects on mobile.
Viewport Meta Tag
Ensure proper mobile rendering with the viewport meta tag inBaseLayout.astro:
BaseLayout.astro
Related Resources
Typography
Fluid typography with clamp()
Animations
Mobile animation considerations
Theme System
Responsive CSS variables