On this page

Size and density

Three control heights, targets that fingers can hit, and one density that keeps Beehexa screens easy to scan.

A row of controls that line up looks calm and is quick to use. Choosing heights from a short list makes that automatic.

Every control comes in three heights: 24, 32 and 40 px. Controls in one row share one height.

Control heights

Controls are the things people click or type in: buttons, text fields, selects, segmented controls and tabs. A fixed height keeps a row of them lined up, whatever their text.

Search ordersFilter
Small, 24 pxDense tables and their toolbars, filters, tags.
Store URLSave
Default, 32 pxForms, buttons, the header, toolbars. Everything else.
EmailSign in
Large, 40 pxSign-in and onboarding. Optional for the main action on touch screens.
Size Height Where
Small 24 px Dense tables and their toolbars, filters, tags
Default 32 px Forms, buttons, the header, toolbars, everything else
Large 40 px Sign-in and onboarding pages. Optional for the main action on touch screens
  • Keep controls of one height in one row. A 24 px button next to a 32 px field looks misaligned.
  • Set heights with the size tokens, not with padding. The text sits in the middle of the height.

Parts with a fixed size of their own, such as the switch (20 × 36 px, knob 16 px) and the avatar (32 px; 24 px in dense tables and lists), keep it in their component tokens: switch.size.* and avatar.size.*.

Target size

Every control can be clicked in an area of at least 24 × 24 px, and tapped in 44 × 44 px on touch screens.

  • 24 px is the minimum target size of WCAG 2.2 (SC 2.5.8). Every control height meets it.
  • On touch screens (phones and tablets), every control responds to a tap in at least 44 × 44 px (size.target.touch). Mouse and keyboard screens keep the 24 px minimum.
  • A control that stands alone, such as an icon button, keeps its visible size and gets an invisible tap area around it. Leave at least 12 px between two 32 px controls so their tap areas do not overlap.
  • Rows in lists and menus, such as navigation items, menu items and tabs, sit next to each other, so an invisible area would cover the next row. Make the rows themselves 44 px high on touch screens.

Density

Beehexa has one density: default.

One density means every screen is designed and checked at one size, and people see the same layout in every product. For a dense table, use small (24 px) controls and rows, not smaller spacing tokens. Screens built on the tokens will follow any future density without changes.

Do and don’t

Do

Give the controls in one row the same height.

Don’t

Don’t mix heights in one row. Edges and text no longer line up.

Do

Give a small icon button an area of at least 24 × 24 px that responds to a click.

Don’t

Don’t make the clickable area the size of the icon. It is hard to hit.

Tokens

TokenValueDescription
--bh-size-control-small1.5rem24 px. Height of small controls: dense tables and their toolbars, filters, tags. Side padding space.100.
--bh-size-control-default2rem32 px. Height of buttons, text fields, selects, segmented controls and tabs everywhere else: forms, the header, toolbars. Side padding space.150.
--bh-size-control-large2.5rem40 px. Height of controls on sign-in and onboarding pages. Optional for the main action on touch screens.
--bh-size-target-minimum1.5rem24 px. Smallest area that responds to a click or tap (WCAG 2.2 SC 2.5.8). Every control and icon button is at least this size.
--bh-size-target-touch2.75rem44 px. Area that responds to a tap on touch screens. Extend the hit area around a smaller control and keep its visible size; rows in lists and menus grow to this height instead.
--bh-size-icon-default1rem16 px. Default icon size: buttons, menus, tables, form fields, next to 14 px text.
--bh-size-icon-medium1.25rem20 px. Icons next to 16 px text, in toolbars and in the page header.
--bh-size-icon-large1.5rem24 px. An icon on its own, such as a status in a card or a small empty state.
--bh-size-icon-empty2rem32 px. Empty states only.
--bh-size-tooltip-max-width15rem240 px. Widest a tooltip grows before its text wraps. Atlassian and Fluent use 240 px, Ant and Primer 250 px; the range across 7 systems is 200 to 300 px.
--bh-size-track-default{space.050}0.25rem4 px. Thickness of a thin track or grab bar: progress, slider track, drawer handle. Pair with radius.full.
--bh-size-overlay-min-width8rem128 px. Narrowest a menu or a select, combobox or command list gets; it grows to its trigger or its widest item.
--bh-size-overlay-width18rem288 px. Width of a popover or hover card that holds content.
--bh-size-overlay-max-height18rem288 px. Tallest a combobox or command list grows before it scrolls: about eight 32 px items.
--bh-size-dialog-default32rem512 px. Widest a dialog grows, on screens wider than that plus the page margins.
--bh-size-dialog-small24rem384 px. Widest an alert dialog or a side drawer of a few controls grows.
--bh-size-dialog-xsmall20rem320 px. A small alert dialog (one short question), and the narrowest phone width an alert dialog keeps.