| description | Manage breakpoints and container widths |
|---|
Screens defines the responsive breakpoints and container widths used throughout the project. Components with responsive controls inherit these screen sizes.
Each screen can define a breakpoint, a container width, and whether that breakpoint is active.
| Screen | Starts at | Typical use |
|---|---|---|
| Mobile | Below SM | Base design for phones and all smaller widths |
| SM | 640px | Large phones and small tablets |
| MD | 768px | Tablets |
| LG | 1024px | Laptops and smaller desktops |
| XL | 1280px | Wide desktop layouts |
| 2XL | 1536px | Extra-wide desktop layouts |
Mobile is the base screen and does not need its own minimum width. Values set at Mobile apply everywhere until they are overridden at a larger enabled breakpoint.
For each named screen:
- Breakpoint — Sets the viewport width at which the screen begins.
- Container — Sets the project-wide maximum container width at that screen. Auto keeps Mobile fluid and uses the screen width for the named breakpoints; choose a custom value when the layout needs a narrower content width.
- Enabled — Makes the breakpoint available to responsive component controls. Disable breakpoints you do not intend to design for.
Keep breakpoint values in ascending order. A larger screen should not begin before the screen listed above it.
{% hint style="info" %} Most projects do not need every breakpoint. A smaller set of deliberate breakpoints is often easier to maintain than separate overrides for every screen size. {% endhint %}
Elements uses a mobile-first cascade:
- Design the Mobile appearance first.
- Move to the next enabled screen.
- Add an override only where the layout needs to change.
- That override continues to larger screens until another breakpoint changes it.
See Breakpoints for an explanation of the responsive override indicators used in the component Inspector.
Container widths control components that use the project’s shared container sizing. They do not force every component to that width; a component must be configured to use the container value.
{% embed url="https://youtu.be/yY1YOIJRq6w" %}
