Expand description
Control metrics and window breakpoints.
Constants§
- APP_
BAR_ BLOCK_ PADDING - Above and below the control row of an app bar.
- COMPACT_
WINDOW - The window width, in 100%-scale px, below which pages use narrow gutters, compact navigation and stacked controls.
- CONTROL_
HEIGHT - Ordinary controls share this height, padding included, at every text scale.
- ICON_
GAP - ICON_
SLOT - The leading icon slot of an icon + label cluster, and the gap after it.
- ITEM_
INSET - Horizontal inset of an item’s content inside a tile or card.
- LABEL_
INSET - Supporting lines of an icon-labelled item start on its label text.
- SECTION_
TITLE_ GAP - Legacy px form of
SECTION_TITLE_SPACEthat does not follow the text scale; kept until its call sites move to the rem token. - SECTION_
TITLE_ SPACE - Between a section title and its group’s first tile. The gap follows the
title’s text, so it is in rems; prefer this over
SECTION_TITLE_GAP.
Functions§
- app_
bar_ height - An app bar of one control row with
APP_BAR_BLOCK_PADDINGabove and below, all following the text scale. - design_
width - The window width in 100%-scale px, so breakpoints follow the text scale.
- is_
compact