Templates

A template shows how components, layout and a theme work together on a whole page. Start from the one that is closest to your task, then change the content, not the structure.

What a template gives you

  • A skip link, landmarks and one h1, in the right order.
  • Regions that collapse sensibly at 320 pixels.
  • A place for the picker bar, so readers choose theme, language and text size.
  • Examples you can open, inspect and copy.

Every page has three parts

  1. Top: skip link, header, navigation. The same across a service.
  2. Main: the page’s own content, one main landmark.
  3. Bottom: footer and supporting links.
<body>
  <a class="skip-link" href="#main">Skip to main content</a>
  <header> <!-- brand, navigation, pickers --> </header>
  <main id="main">
    <h1>Page title</h1>
    <!-- sections and components -->
  </main>
  <footer> <!-- links, legal --> </footer>
</body>

Choose a template

Content page

Articles, guidance, documentation and any page that is mostly reading.

  • Skip link
  • Header with navigation
  • Main: one h1, sections
  • Footer

This page is one

Dashboard

Several panels of live information that a person scans and acts on.

  • Header with pickers
  • Left rail of destinations
  • Main: one panel at a time
  • Right rail of actions
  • Footer

Open the dashboard demo

Clinical workspace

A record opened for a task: a patient banner, record tabs and dense tables.

  • Task bar
  • Patient banner (always visible)
  • Record tabs
  • Panel with filterable table
  • Tool row

Open a results screen

Chart summary

A patient’s chart as a set of cards: tasks, trends, team and plan.

  • Application bar
  • Patient sidebar
  • Chart tabs and sub-tabs
  • Cards in a responsive grid

Open a chart summary

Worklist

A list of people or items to work through, with actions above and status columns.

  • Toolbar of actions
  • List chooser
  • Table with status columns
  • Legend for marks

Open a patient list

Rules for every template

  • The skip link is the first focusable element, and the first thing a keyboard user can reach.
  • Landmarks are used once each, and labelled when repeated (two navigations are named).
  • A bar fixed to an edge sets --lily-fixed-bar-block-start or -end, so focus is never hidden under it.
  • Content is never cut off at 320 pixels; wide tables scroll inside their own region.
  • All visible text is supplied by the page, so it can be translated, and the page honours the reader’s language direction.
  • A page whose job is a record (a patient, a case) keeps the identifying banner visible and in words.

Make it yours

Choose a theme, add a brand overlay for your colours, supply your own logo as a link to the home page, and swap in your content. The templates carry no logo and no brand text of their own.

The example pages use invented people and data. Nothing in them is clinical advice.