Skip to main content

Examples

Complete screens built from the elements documented on this site and nothing else: no example below adds a stylesheet of its own. Each one is rendered live by the stylesheet this page loads, follows the theme and preset you pick in the header, and opens its exact source under Show HTML.

Application

The chrome and the data screens of an internal tool.

App navigation

A navigation bar with an account menu, a breadcrumb trail and a search field.

Built from NavDropdownGroup

HTML
<nav>
  <ul>
    <li><strong>Northwind</strong></li>
  </ul>
  <ul>
    <li><a href="#" aria-current="page">Orders</a></li>
    <li>
      <details class="dropdown">
        <summary>Ada</summary>
        <ul>
          <li><a href="#">Profile</a></li>
          <li><a href="#">Settings</a></li>
          <li><a href="#">Sign out</a></li>
        </ul>
      </details>
    </li>
  </ul>
</nav>
<nav aria-label="breadcrumb">
  <ul>
    <li><a href="#">Orders</a></li>
    <li><a href="#">2026</a></li>
    <li><a href="#" aria-current="page">#10482</a></li>
  </ul>
</nav>
<form role="search">
  <input type="search" name="q" placeholder="Search orders" aria-label="Search orders">
  <button type="submit">Search</button>
</form>

Dashboard

Metric cards in a wrapping grid, a meter, and a running job with a busy button.

Built from CardGridMeterProgressLoading

Overview

Northwind store, last 30 days

Revenue

€48,210

Up 12% on the previous 30 days

Orders

1,284

31 waiting to ship

Storage

70%

Nightly export
HTML
<hgroup>
  <h2>Overview</h2>
  <p>Northwind store, last 30 days</p>
</hgroup>
<div class="grid">
  <article>
    <small>Revenue</small>
    <h3>€48,210</h3>
    <p><small>Up 12% on the previous 30 days</small></p>
  </article>
  <article>
    <small>Orders</small>
    <h3>1,284</h3>
    <p><small>31 waiting to ship</small></p>
  </article>
  <article>
    <small>Storage</small>
    <h3>70%</h3>
    <meter value="0.7" aria-label="Storage used"></meter>
  </article>
</div>
<article>
  <header>
    <strong>Nightly export</strong>
  </header>
  <label>
    Exporting orders, 64 of 100 files
    <progress value="64" max="100"></progress>
  </label>
  <footer>
    <button type="button" aria-busy="true">Syncing</button>
    <button type="button" class="secondary outline">Pause</button>
  </footer>
</article>

Data table

A filterable table with a caption, row headers, a footer total and pagination.

Built from TableOverflow autoSearchNav

Team members
Name Role Last active Seats
Ada Lovelace Owner 12
Grace Hopper Admin 4
Alan Turing Member 1
Total 17
HTML
<article>
  <header>
    <form role="search">
      <input type="search" name="member" placeholder="Filter members" aria-label="Filter members">
      <button type="submit">Filter</button>
    </form>
  </header>
  <div class="overflow-auto" tabindex="0" role="region" aria-labelledby="ex-members-caption">
    <table class="striped">
      <caption id="ex-members-caption">Team members</caption>
      <thead>
        <tr>
          <th scope="col">Name</th>
          <th scope="col">Role</th>
          <th scope="col">Last active</th>
          <th scope="col">Seats</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th scope="row">Ada Lovelace</th>
          <td>Owner</td>
          <td><time datetime="2026-09-27">Today</time></td>
          <td>12</td>
        </tr>
        <tr>
          <th scope="row">Grace Hopper</th>
          <td>Admin</td>
          <td><time datetime="2026-09-25">2 days ago</time></td>
          <td>4</td>
        </tr>
        <tr>
          <th scope="row">Alan Turing</th>
          <td>Member</td>
          <td><time datetime="2026-09-12">2 weeks ago</time></td>
          <td>1</td>
        </tr>
      </tbody>
      <tfoot>
        <tr>
          <th scope="row">Total</th>
          <td></td>
          <td></td>
          <td>17</td>
        </tr>
      </tfoot>
    </table>
  </div>
  <footer>
    <nav aria-label="Pagination">
      <ul>
        <li><a href="#" aria-current="page">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">Next</a></li>
      </ul>
    </nav>
  </footer>
</article>

Forms

The screens people fill in: signing in, changing settings, paying.

Sign in

A card with a title band, two fields, a switch and a footer link.

Built from CardText inputsSwitch

HTML
<article>
  <header>
    <hgroup>
      <h2>Sign in</h2>
      <p>Welcome back to Northwind.</p>
    </hgroup>
  </header>
  <form>
    <label>
      Email
      <input type="email" name="email" autocomplete="email" required>
    </label>
    <label>
      Password
      <input type="password" name="password" autocomplete="current-password" required aria-describedby="ex-sign-in-help">
      <small id="ex-sign-in-help"><a href="#">Forgot your password?</a></small>
    </label>
    <label>
      <input type="checkbox" role="switch" name="remember" checked>
      Keep me signed in
    </label>
    <button type="submit">Sign in</button>
  </form>
  <footer>
    <small>New here? <a href="#">Create an account</a></small>
  </footer>
</article>

Settings

Fieldsets, a field in its invalid state, a segmented choice, switches and a select.

Built from FormsValidationSegmentedSelect

Profile
Appearance
Notifications
HTML
<form>
  <fieldset>
    <legend>Profile</legend>
    <div class="row">
      <label>
        Display name
        <input type="text" name="display-name" value="Ada Lovelace" autocomplete="name">
      </label>
      <label>
        Email
        <input type="email" name="settings-email" value="ada@example" aria-invalid="true" aria-describedby="ex-settings-email-help" autocomplete="email">
        <small id="ex-settings-email-help">Enter a full address, such as ada@example.com.</small>
      </label>
    </div>
    <label>
      Bio
      <textarea name="bio" rows="3">Writes the notes that outlast the machine.</textarea>
    </label>
  </fieldset>
  <fieldset class="segmented">
    <legend>Appearance</legend>
    <label><input type="radio" name="appearance" value="system" checked> System</label>
    <label><input type="radio" name="appearance" value="light"> Light</label>
    <label><input type="radio" name="appearance" value="dark"> Dark</label>
  </fieldset>
  <fieldset>
    <legend>Notifications</legend>
    <label><input type="checkbox" role="switch" name="notify-mentions" checked> Mentions</label>
    <label><input type="checkbox" role="switch" name="notify-digest"> Weekly digest</label>
    <label>
      Language
      <select name="language" autocomplete="language">
        <option>English</option>
        <option>Italiano</option>
        <option>Français</option>
      </select>
    </label>
  </fieldset>
  <div class="row">
    <button type="submit">Save changes</button>
    <button type="reset" class="secondary outline">Discard</button>
  </div>
</form>

Checkout

An address form beside an order summary with a total and a gift card field.

Built from GridTableAccordionGroup

Shipping address
Delivery
Order summary
ItemPrice
Field notebook × 2€36.00
Fountain pen€92.00
ShippingFree
Total€128.00
Have a gift card?
HTML
<div class="grid">
  <form>
    <fieldset>
      <legend>Shipping address</legend>
      <label>
        Full name
        <input type="text" name="ship-name" autocomplete="shipping name" required>
      </label>
      <label>
        Street address
        <input type="text" name="ship-street" autocomplete="shipping street-address" required>
      </label>
      <div class="row">
        <label>
          City
          <input type="text" name="ship-city" autocomplete="shipping address-level2" required>
        </label>
        <label>
          Postcode
          <input type="text" name="ship-postcode" autocomplete="shipping postal-code" required>
        </label>
      </div>
    </fieldset>
    <fieldset>
      <legend>Delivery</legend>
      <label><input type="radio" name="delivery" value="standard" checked> Standard, 3 to 5 days, free</label>
      <label><input type="radio" name="delivery" value="express"> Express, next day, €9</label>
    </fieldset>
    <button type="submit">Pay €128.00</button>
  </form>
  <article>
    <header><strong>Order summary</strong></header>
    <table>
      <thead>
        <tr><th scope="col">Item</th><th scope="col">Price</th></tr>
      </thead>
      <tbody>
        <tr><th scope="row">Field notebook × 2</th><td>€36.00</td></tr>
        <tr><th scope="row">Fountain pen</th><td>€92.00</td></tr>
        <tr><th scope="row">Shipping</th><td>Free</td></tr>
      </tbody>
      <tfoot>
        <tr><th scope="row">Total</th><td>€128.00</td></tr>
      </tfoot>
    </table>
    <details>
      <summary>Have a gift card?</summary>
      <form>
        <fieldset class="group" role="group">
          <input type="text" name="gift-card" placeholder="Card code" aria-label="Gift card code">
          <button type="submit">Apply</button>
        </fieldset>
      </form>
    </details>
  </article>
</div>

Content

Pages people read: articles, plans, profiles and answers.

Article

Headings, a byline, highlighted text, a quotation, a list, a keyboard key and a captioned code sample.

Built from TypographyCodeFigure

Why the form was the product

What a checkout teaches about semantic HTML

By Grace Hopper · · 6 min read

The first version of the checkout had forty components and one <form>. The second had one form, and the browser did the rest: validation, autofill and the keyboard came for free the moment each field said what it was.

The most expensive widget is the one that already exists.

A lesson learned twice

Three rules we kept

  1. Every field has a label you can see.
  2. Errors are words next to the field, not colours.
  3. Submitting works with Enter, because it is a form.
<input type="email" autocomplete="email" required>
One element, three behaviours the browser supplies.
HTML
<article>
  <header>
    <hgroup>
      <h2>Why the form was the product</h2>
      <p>What a checkout teaches about semantic HTML</p>
    </hgroup>
    <small>By Grace Hopper · <time datetime="2026-09-21">21 September 2026</time> · 6 min read</small>
  </header>
  <p>
    The first version of the checkout had forty components and one
    <code>&lt;form&gt;</code>. The second had one form, and the browser did
    the rest: <mark>validation, autofill and the keyboard came for free</mark>
    the moment each field said what it was.
  </p>
  <blockquote>
    <p>The most expensive widget is the one that already exists.</p>
    <footer><cite>A lesson learned twice</cite></footer>
  </blockquote>
  <h3>Three rules we kept</h3>
  <ol>
    <li>Every field has a label you can see.</li>
    <li>Errors are words next to the field, not colours.</li>
    <li>Submitting works with <kbd>Enter</kbd>, because it is a form.</li>
  </ol>
  <figure>
    <pre><code>&lt;input type="email" autocomplete="email" required&gt;</code></pre>
    <figcaption>One element, three behaviours the browser supplies.</figcaption>
  </figure>
  <footer>
    <small>Filed under <a href="#">Forms</a> and <a href="#">Accessibility</a></small>
  </footer>
</article>

Pricing

Three plan cards that wrap onto one column on a phone.

Built from CardGridButton

Starter

Free

  • One project
  • Community support
Team

€12 per seat, monthly

  • Unlimited projects
  • Shared settings
  • Email support
Enterprise

Custom

  • Single sign-on
  • Audit log
  • A named contact
HTML
<div class="grid">
  <article>
    <header><strong>Starter</strong></header>
    <h3>Free</h3>
    <ul>
      <li>One project</li>
      <li>Community support</li>
    </ul>
    <footer><a href="#" role="button" class="secondary outline">Start free</a></footer>
  </article>
  <article>
    <header><strong>Team</strong></header>
    <h3>€12 <small>per seat, monthly</small></h3>
    <ul>
      <li>Unlimited projects</li>
      <li>Shared settings</li>
      <li>Email support</li>
    </ul>
    <footer><a href="#" role="button">Choose Team</a></footer>
  </article>
  <article>
    <header><strong>Enterprise</strong></header>
    <h3>Custom</h3>
    <ul>
      <li>Single sign-on</li>
      <li>Audit log</li>
      <li>A named contact</li>
    </ul>
    <footer><a href="#" role="button" class="secondary outline">Talk to us</a></footer>
  </article>
</div>

Profile

A description list of account details and a share popover with no script.

Built from Description listPopover

Ada Lovelace

Owner · Analytical Engines Ltd

Email
ada@example.com
Time zone
Europe/London
Member since
Two-factor authentication
On, with a security key

Anyone with the link can see this profile.

northwind.example/u/ada

HTML
<article>
  <header>
    <hgroup>
      <h2>Ada Lovelace</h2>
      <p>Owner · Analytical Engines Ltd</p>
    </hgroup>
  </header>
  <dl>
    <dt>Email</dt>
    <dd><a href="mailto:ada@example.com">ada@example.com</a></dd>
    <dt>Time zone</dt>
    <dd>Europe/London</dd>
    <dt>Member since</dt>
    <dd><time datetime="2021-03-04">March 2021</time></dd>
    <dt>Two-factor authentication</dt>
    <dd>On, with a security key</dd>
  </dl>
  <footer>
    <button type="button">Edit profile</button>
    <button type="button" class="secondary outline" popovertarget="ex-profile-share">Share</button>
    <div id="ex-profile-share" popover>
      <p>Anyone with the link can see this profile.</p>
      <p><code>northwind.example/u/ada</code></p>
    </div>
  </footer>
</article>

FAQ

An exclusive accordion: open one answer and the others close, by the browser.

Built from Accordion

Can I change plans later?

Yes. Upgrades apply immediately, and downgrades at the end of the billing period.

Do you offer refunds?

Within 30 days of any payment, no questions asked.

Where is my data stored?

In the region you pick when you create the workspace. It never leaves it.

HTML
<details name="ex-faq" open>
  <summary>Can I change plans later?</summary>
  <p>Yes. Upgrades apply immediately, and downgrades at the end of the billing period.</p>
</details>
<details name="ex-faq">
  <summary>Do you offer refunds?</summary>
  <p>Within 30 days of any payment, no questions asked.</p>
</details>
<details name="ex-faq">
  <summary>Where is my data stored?</summary>
  <p>In the region you pick when you create the workspace. It never leaves it.</p>
</details>

One interface, four builds

The same sign-in form under each published build. Every frame is isolated from this site and loads a stylesheet compiled from src/ with the switches of the real entry point.

Defaultcirth.min.css
Classlesscirth.classless.min.css
Scopedcirth.scoped.min.css
Scoped + classlesscirth.classless.scoped.min.css
No documentation JavaScript is needed for these frames: theme and build are separate static URLs.

Search documentation

Type at least two characters to search.