On this page

App frame

The header, side navigation and page header stay in the same place on every page, so people never have to look for them.

The header, the side navigation and the page header repeat on every page, in the same place and at the same size.

Colour

The header and the side navigation sit on the page background, color.surface.page, like the content. A 1 px color.border line (border.width.default) separates them from the content: under the header and to the right of the side navigation. Below 1024 px the side navigation opens as a drawer on color.surface.overlay with elevation.shadow.modal, over the scrim.

48 px high, across the full width. It holds what belongs to the whole product.

Part Value
Height 48 px: a 32 px control with 8 px above and below. The 1 px line under the header is not counted
Holds Menu button (below 1024 px), logo, global search, workspace switcher, notifications, account
Does not hold The breadcrumb and page actions. They change with the page, so they go in the page header

In code, the header height is layout.header.height and the side navigation widths are layout.sidebar.expanded and layout.sidebar.collapsed. Use the tokens rather than copying the numbers.

Side navigation

280 px open, a 64 px rail when collapsed, a drawer below 1024 px. Every Beehexa product uses the same widths.

Window Side navigation
Below 1024 px Hidden. The menu button in the header opens it as a drawer over the page.
1024 px and up Open at 280 px. People can collapse it to the 64 px rail, and the choice is remembered.
  • 280 px fits a label of about 31 characters at 14 px, long Vietnamese labels included.
  • The same width in every product, so the page starts in the same place when people move between products.
  • No resizing. One width keeps products alike. A resizable panel would also need a way to resize it without dragging (WCAG 2.5.7).
  • The rail shows icons only. Each label appears in a tooltip.
  • In the drawer, the logo row keeps its height and the menu takes the rest. Only the menu scrolls, and only when its items don’t fit. Don’t give the menu min-height: 100%: the logo row would push it past the bottom of the screen.

Long labels

OrdersProductsSync settingsOnline store → ERP field mappi…Online store → ERP field mapping rules280 px
A long label is cut with an ellipsis and shows in full in a tooltip. The side navigation keeps its width.
  1. Write a shorter label first.
  2. If it still does not fit, cut it with an ellipsis and show the full label in a tooltip, only when it is cut.
  3. Never widen the side navigation for one label. A product whose labels are long everywhere may set one width between 240 and 320 px for the whole product, and writes it down.

The top of every page: breadcrumb, title, status and page actions.

84242412345
  1. Breadcrumb. The pages above this one.
  2. Title and status. heading.large, with a badge when the page has a state.
  3. Page actions. The main action last, on the right.
  4. Description. Optional, one line.
  5. Tabs or filters. Optional. Views of the same page.
Row Holds When
Breadcrumb The pages above this one Below the top level
Title row The page title (heading.large) and a status on the left; page actions on the right, the main action last Always
Description One line about the page Optional
Tabs or filters Views of the same page Optional
  • The page header spans the whole content area at every page width. Only the content below it follows Full, Wide or Narrow, so the title and the page actions stay in the same place on every page.
  • The breadcrumb belongs to the page, not to the header: it changes on every page, and the header stays the same.
  • Context for the whole product, such as the workspace, goes in the header.

Side panel

A panel beside the main content, such as details of a selected row, takes grid columns: 4 of 12 from 1024 px and 3 of 12 from 1440 px (layout.panel.columns.default and .large). Below 1024 px it opens as a drawer over the page. See the spans on Grid.

Spacing of the frame

Everything in the frame lines up on two edges: 20 px from the window on the left, and the page margin.

Between Space
The window edge and the logo; the window edge and the side navigation icons 20 px, space.250
The side navigation items and its edges 8 px, space.100
One side navigation item and the next (each 32 px high) 4 px, space.050
The content and the side navigation, the header or the window edge The page margin: 16, 24 or 32 px (Grid)
The breadcrumb and the title 8 px, space.100
The title and the description 4 px, space.050
The page header and the content 24 px, space.300

A 20 px edge for the logo comes from the side navigation: 8 px of inset plus the 12 px side padding of a 32 px control. The logo then sits right above the icons.