Responsive design ensures that our user interface adapts to all screen sizes and devices. Components and pages dynamically adjust their structure, content, and styling to provide an optimal experience no matter how users access our applications.
Container queries
- Each component will be designed and implemented independent of a “page” or “comp” under the assumption that it’ll take up all of the space available.
- Container queries will enable the component to change how it renders based on that available space, meaning we will no longer need to consider situations where a component has to change/revert to a “previous” size when page layouts change.
Why container queries?
- Component-level responsiveness. Components are self-contained and adapt regardless of where they’re placed on the page.
- Reduced complexity. They simplify responsive design by eliminating the need for complex media query breakpoints that rely solely on viewport size.
- Improved reusability. Components are reusable and adaptable to different layout scenarios.
Figma auto layout