Breakpoints
There are 6
breakpoints for defining styling behaviour at different
screen widths.
Overview
Breakpoints are predefined values in the design system that dictate how layouts, components, and content adjust to different screen sizes and devices. They enable responsive designs, ensuring a seamless user experience whether on mobile phones, tablets, or desktops. Breakpoints act as thresholds, triggering changes in design elements like layout, spacing, typography, and visibility based on the available screen width.In the Torq design system, breakpoints follow a custom naming convention: xsa, xs, sm, md, lg, and xl, representing progressively larger screen sizes. These names align with specific pixel values (outlined in the table below) and form the foundation for responsive grids, flexible layouts, and adaptive components.Why Breakpoints Matter
Breakpoints maintain visual harmony and usability across devices by:- Adjusting layouts from stacked elements on small screens to side-by-side arrangements on larger screens.
- Resizing images, buttons, and other components to fit available space.
- Hiding or showing specific elements to optimise content for different contexts.
Accessibility Considerations
Breakpoints ensure the design system is inclusive and functional for all users by:- Providing sufficient touch targets and spacing for smaller screens.
- Ensuring text remains legible and readable at any size.
- Supporting alternative input methods (e.g., keyboard navigation) and assistive technologies.
Example Use Cases
- Providing sufficient touch targets and spacing for smaller screens.
- Ensuring text remains legible and readable at any size.
- Supporting alternative input methods (e.g., keyboard navigation) and assistive technologies.
| Name | Range |
|---|---|
| Extra small accessible | 0px to 320 |
| Extra small | 320px to 768 |
| Small | 768px to 992 |
| Medium | 992px to 1280 |
| Large | 1280px to 1680 |
| Extra large | 1680px+ |