# 5.3 Design for four width classes

> Chapter 5, Adapt across sizes. Section: Read the window. Guide: https://www.designguide.dev/md/05-adapt-across-sizes.md#design-for-four-width-classes

Default

**Rule:** Design for four width classes: Compact under 600, Medium 600 to 839, Expanded 840 to 1199, and Large 1200 and up.

**Why:** Each class has one shell (a bar, a rail, or a sidebar) and a pane count.  **When not:** A component in a narrow slot follows its own width (see [Rule 5.20](https://www.designguide.dev/r/size-a-component-by-its-slot.md)).

- Write every width in px (or dp, or pt).
- Use the same four names in every file and every talk.
- Test the edges: 599, 600, 839, 840, 1199, and 1200.

**Picture:** Do: Width picks Large: a sidebar, a list, and a detail pane. Don't: The device name picks tablet: a rail and one pane at 1200 px.

**See:** [5.20 Size a component by its slot](https://www.designguide.dev/r/size-a-component-by-its-slot.md)
