Skip to content
Sections
Fiesta

layout-topbar

Shells The page frames an app is built in: a column, a top bar, a sidebar, a console and a stage. Each opens full width.

Brand, navigation and an account menu across the top, with a footer under the page. On a phone, the navigation is an index page at /menu. Other pages have one header row with a back link, app name when it fits, and avatar. The avatar opens the account card, with appearance and language.

Each example is live, but its links go nowhere. HTML shows the markup to copy.

Preview
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>The topbar shell: default</title>
<link rel="stylesheet" href="../../css/core.css">
<link rel="stylesheet" href="../../css/extras.css">
<link rel="stylesheet" href="../../css/themes/day.css">

<link rel="stylesheet" href="../../css/shell-topbar.css">
<script defer src="../../js/fiesta.js"></script>
<script defer src="../../js/busy.js"></script>

<script defer src="../../js/light.js"></script>
<script defer src="../../js/anchor.js"></script>

<script defer blocking="render" src="../../js/shell.js"></script>

<script defer src="../../js/select.js"></script>
<script defer src="../../js/calendar.js"></script>
<script defer src="../../js/datetime.js"></script>


</head>
<body>
    <div rst-shell-topbar="page">
      <a rst-skip href="#main">Skip to content</a>
      <header rst-shell-bar>
        <a rst-shell-up href="/menu#nav-home" rel="up" aria-label="Back to Menu"><svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg>Menu</a>
        <h1 rst-shell-title>
          <span><a rst-shell-brand href="/">Party planner</a></span><span>Home</span>
        </h1>
        <a rst-shell-brand href="/">Party planner</a>
        <nav rst-shell-nav>
          <a id="nav-home" href="/" aria-current="page">Home</a>
          <a id="nav-archive" href="/archive">Archive</a>
          <a id="nav-about" href="/about">About</a>
        </nav>
        <details rst-dropdown rst-shell-account name="rst-shell-menu">
          <summary>
            <span rst-shell-avatar>
              <span rst-person-av aria-hidden="true">G</span>
              <span rst-person-name>Grace Hopper</span>
              <span rst-person-email>grace@example.com</span>
            </span>
            <span rst-shell-account-label>Account</span>
            <span rst-caret aria-hidden="true">
              <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
            </span>
          </summary>
          <div rst-dropdown-menu>
            <div rst-shell-who>
              <span rst-person-av aria-hidden="true">G</span>
              <span rst-person-name>Grace Hopper</span>
              <span rst-person-email>grace@example.com</span>
            </div>
            <div rst-menu-row>
              <span rst-menu-row-label>Appearance</span>
              <div rst-scheme="icons" role="group" aria-label="Appearance">
                <form method="post" action="/_theme">
                  <input type="hidden" name="scheme" value="light">
                  <input type="hidden" name="return" value="/">
                  <button type="submit" aria-label="Light">
                    <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>
                  </button>
                </form>
                <form method="post" action="/_theme">
                  <input type="hidden" name="scheme" value="dark">
                  <input type="hidden" name="return" value="/">
                  <button type="submit" aria-label="Dark" aria-current="true">
                    <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/></svg>
                  </button>
                </form>
                <form method="post" action="/_theme">
                  <input type="hidden" name="scheme" value="system">
                  <input type="hidden" name="return" value="/">
                  <button type="submit" aria-label="System">
                    <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/></svg>
                  </button>
                </form>
              </div>
            </div>
            <div rst-menu-row>
              <span rst-menu-row-label>Language</span><button type="button" popovertarget="rst-language">
                <span lang="en">English</span><span rst-caret aria-hidden="true">
                  <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
                </span>
              </button>
              <details rst-dropdown name="rst-menus">
                <summary>
                  <span lang="en">English</span>
                  <span rst-caret aria-hidden="true">
                    <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
                  </span>
                </summary>
              </details>
              <div rst-locale popover id="rst-language">
                <div rst-menu-row>
                  <h2>Language</h2>
                  <button type="button" popovertarget="rst-language" popovertargetaction="hide">Close</button>
                </div>
                <a href="/en/" lang="en" dir="ltr" aria-current="true">English</a><a href="/ga/" lang="ga" dir="ltr">Gaeilge</a><a href="/zh-Hans/" lang="zh-Hans" dir="ltr">简体中文</a><a href="/es/" lang="es" dir="ltr">Español</a><a href="/hi/" lang="hi" dir="ltr">हिन्दी</a><a href="/pt-PT/" lang="pt-PT" dir="ltr">Português</a><a href="/bn/" lang="bn" dir="ltr">বাংলা</a><a href="/ru/" lang="ru" dir="ltr">Русский</a><a href="/ja/" lang="ja" dir="ltr">日本語</a><a href="/yue/" lang="yue" dir="ltr">廣東話</a><a href="/vi/" lang="vi" dir="ltr">Tiếng Việt</a><a href="/ar/" lang="ar" dir="rtl">العربية</a>
              </div>
            </div>
            <a href="#">Profile</a>
            <a href="#">Billing</a>
            <hr>
            <a href="#">Sign out</a>
          </div>
        </details>
      </header>
      <main rst-page id="main">
<!-- fiesta:slot -->
<header rst-page-header>
          <div rst-page-header-titles>
            <h1>Posts</h1>
            <p rst-page-header-sub>A representative screen, so the chrome around it has something to frame.</p>
          </div>
          <a rst-btn="primary" href="#">
            <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12h14"/><path d="M12 5v14"/></svg>
            Write a post
          </a>
        </header>
        <div rst-box-head>
          <h2>This page</h2>
          <a rst-btn href="/">Back to the design system</a>
        </div>
        <section rst-box>
          <p>This is the topbar shell, one of the shells Fiesta ships. A screen is a column: a page header, then a section heading and its card, then the next one. Everything you see here is the shell, core.css and two components.</p>
        </section>
        <div rst-box-head>
          <h2>Recent</h2>
        </div>
        <div rst-list>
          <div rst-row>
            <span rst-row-main><a class="rst-nm" href="#">Release notes, August<small>Published 2 August</small></a></span>
            <span class="rst-m-hide"><span rst-status rst-tone="positive">Published</span></span>
          </div>
          <div rst-row>
            <span rst-row-main><a class="rst-nm" href="#">Why we moved off the old runner<small>Draft</small></a></span>
            <span class="rst-m-hide"><span rst-status rst-tone="neutral">Draft</span></span>
          </div>
        </div>
        <p rst-count-line>Displaying <strong>1–2</strong> of <strong>412</strong></p>
<!-- /fiesta:slot -->
</main>
      <footer rst-shell-foot>
        <div rst-back-nav>
          <a href="/">Back to the design system</a>
        </div>
      </footer>
    </div>
  </body>
</html>

In an app this would reach /, /_theme, /about, /ar/, /archive, /bn/, /en/, /es/, /ga/, /hi/, /ja/, /menu#nav-home, /pt-PT/, /ru/, /vi/, /yue/, /zh-Hans/. Here its links and forms go nowhere.

Open the topbar shell (opens in a new tab)