Layout
Breakpoints, columns, spacing, corner radii and elevation. Hairlines do most of the work; shadows are rare.
Breakpoints
apple.com's breakpoints, as Tailwind's md:, lg: and xl:.
md:45.9375rem
735px
lg:66.8125rem
1069px
xl:90.0625rem
1441px
Columns
Content sits in a centered column with a 22px gutter on each side.
max-w-content61.25rem
980px. The default column (container-apple).
max-w-medium75rem
1200px. Blocks that should stand out from the 980px column.
max-w-wide90rem
1440px. Full-bleed grids and galleries.
Named spacing
On top of Tailwind's 4px scale.
*-gutter1.375rem
22px side gutter of every container.
*-section5rem
80px vertical section rhythm on small screens.
*-section-md6.25rem
100px from md.
*-section-lg7.5rem
120px from lg.
*-header-offset5.5rem
Announcement bar + floating header. Anchor targets scroll below it.
*-icon-inline0.85em
Icon set next to text, sized to the font (e.g. the chevron of a text link).
*-docs-header3.5rem
Height of the /design header. The sidebar and anchor targets sit below it.
rounded-sm0.5rem
8px. Small chips.
rounded-md0.625rem
10px. Logo tiles, small icon frames.
rounded-lg0.75rem
12px. Inputs, small cards, the header CTA.
rounded-xl1.125rem
18px. Cards and tiles.
rounded-2xl1.375rem
22px.
rounded-3xl1.75rem
28px. Large media frames and feature tiles.
rounded-4xl2.25rem
36px.
rounded-pill980px
Buttons and chips.
rounded-xl-innercalc(1.125rem - 1px - var(--spacing) * 0.5)
Media in a rounded-xl frame with a 1px border and p-0.5.
rounded-xl-card-innercalc(1.125rem - 1px - var(--spacing) * 1)
Media in a rounded-xl card with a 1px border and p-1.
rounded-xl-segmentcalc(1.125rem - var(--spacing) * 1)
Selected segment in a rounded-xl segmented control with p-1.
rounded-3xl-innercalc(1.75rem - 1px - var(--spacing) * 1.5)
Media in a rounded-3xl frame with a 1px border and p-1.5.
rounded-xl-clipcalc(1.125rem - 1px)
A rounded-xl card's corner inside its 1px border, for clip paths.
shadow-card2px 4px 12px rgb(0 0 0 / 0.08)
Raised segments, stacked images, inline tiles.
shadow-card-hover2px 4px 16px rgb(0 0 0 / 0.16)
Cards being dragged or hovered.
shadow-elevated0 12px 40px rgb(0 0 0 / 0.12)
Floating panels and tooltips.