ホーリーグレイルは、名前の付いた最も古いページレイアウトです。ヘッダーとフッターの間に3つのカラムを並べ、中央カラムは左右のカラムを除いた残りの幅を使い、3つの高さは最も高いカラムに揃えます。ソースではメインコンテンツを両側のカラムより先に置きます。15年もの間、実装が難しいレイアウトでした。アプリシェルのオプション領域をすべて使うと、この構成になります。
ホーリーグレイル
<div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 13rem; --shell-aside: 15rem"> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="hg-nav" command="show-modal" aria-label="Open navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M3 5.5L13 5.5" /><path d="M3 10.5L13 10.5" /> </svg> </button> <a class="navbar-brand" href="#"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <circle cx="8" cy="8" r="6" /><path d="M8 4.3333A3.6667 3.6667 0 0 1 8 11.6667Z" fill="currentColor" stroke="none" /> </svg>Atlas </a> <div class="navbar-end"> <button type="button" class="btn btn-primary btn-sm">Subscribe</button> </div> </header> <main class="shell-main"> <article class="flex flex-col gap-md max-w(640) mx-auto px(20) py-xl"> <p class="eyebrow">Engineering</p> <h1 class="heading heading-2xl">How we cut cold builds by forty seconds</h1> <p class="lead"> Most of a cold build was spent fetching what the last build had already fetched. We stopped throwing it away. </p> <p class="m(0) leading-md"> A build starts from an empty machine. For years that was a feature: nothing left over from last time could break this time. It also meant every build downloaded the same two hundred megabytes of dependencies before doing any work of its own. </p> <p class="m(0) leading-md"> The fix was not a faster download. It was to key a cache by the lockfile, restore it before the install step, and let the package manager find that it had nothing to do. The install step now takes about three seconds when nothing changed, which is most of the time. </p> <p class="m(0) leading-md"> The main column is first in the source, before both side columns. The grid places each region by its class, so the order a screen reader meets them in is the order of importance, not the order on screen. </p> <p class="m(0) leading-md"> We measured for a month before turning it on for everyone. Median cold build time went from 96 seconds to 55, and the slowest tenth improved the most, because they had the most to download. </p> </article> </main> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Sections"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <aside class="shell-aside gap-md px-lg py-xl bxs(1) bxs-solid b-line-hair" aria-labelledby="hg-related"> <h2 class="eyebrow" id="hg-related">More from engineering</h2> <ul class="flex flex-col gap-md m(0) p(0)"> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#">Preview comments, pinned to elements</a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#"> A dashboard you can drive from the keyboard </a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#">Why a deployment is immutable</a> </li> </ul> </aside> <footer class="shell-footer bt(1) bt-solid b-line-hair"> <div class="flex flex-wrap items-center justify-between gap-sm px(20) py-lg text-xs fg-text-muted"> <span>© 2026 Atlas Labs</span> <nav class="flex flex-wrap gap-lg" aria-label="Footer"> <a class="link link-quiet" href="#">Privacy</a> <a class="link link-quiet" href="#">Terms</a> <a class="link link-quiet" href="#">RSS</a> </nav> </div> </footer> <dialog class="dialog dialog-drawer dialog-drawer-start" id="hg-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body"> <nav class="nav" aria-label="Sections, in the drawer"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="hg-nav" command="close" aria-label="Close navigation"> <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"> <path d="M4 4L12 12" /><path d="M4 12L12 4" /> </svg> </button> </dialog></div>import MenuIcon from '@master/icons-react/native/16/soft/menu'import ContrastIcon from '@master/icons-react/native/16/soft/contrast'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-base fg-text-body text-sm" style={{ '--shell-sidebar': '13rem', '--shell-aside': '15rem' } as React.CSSProperties}> <header className="navbar shell-header bb(1) bb-solid b-line-hair" style={{ '--navbar-padding-x': '1.25rem' } as React.CSSProperties}> <button type="button" className="btn btn-quiet btn-square btn-sm shell-toggle" {...{ commandfor: 'hg-nav', command: 'show-modal' }} aria-label="Open navigation"> <MenuIcon className="icon" /> </button> <a className="navbar-brand" href="#"><ContrastIcon className="icon" />Atlas</a> <div className="navbar-end"> <button type="button" className="btn btn-primary btn-sm">Subscribe</button> </div> </header> <main className="shell-main"> <article className="flex flex-col gap-md max-w(640) mx-auto px(20) py-xl"> <p className="eyebrow">Engineering</p> <h1 className="heading heading-2xl">How we cut cold builds by forty seconds</h1> <p className="lead"> Most of a cold build was spent fetching what the last build had already fetched. We stopped throwing it away. </p> <p className="m(0) leading-md"> A build starts from an empty machine. For years that was a feature: nothing left over from last time could break this time. It also meant every build downloaded the same two hundred megabytes of dependencies before doing any work of its own. </p> <p className="m(0) leading-md"> The fix was not a faster download. It was to key a cache by the lockfile, restore it before the install step, and let the package manager find that it had nothing to do. The install step now takes about three seconds when nothing changed, which is most of the time. </p> <p className="m(0) leading-md"> The main column is first in the source, before both side columns. The grid places each region by its class, so the order a screen reader meets them in is the order of importance, not the order on screen. </p> <p className="m(0) leading-md"> We measured for a month before turning it on for everyone. Median cold build time went from 96 seconds to 55, and the slowest tenth improved the most, because they had the most to download. </p> </article> </main> <div className="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav className="nav" aria-label="Sections"> <a className="nav-item" href="#">Latest</a> <a className="nav-item" href="#" aria-current="page">Engineering</a> <a className="nav-item" href="#">Product</a> <a className="nav-item" href="#">Company</a> <a className="nav-item" href="#">Customers</a> </nav> </div> <aside className="shell-aside gap-md px-lg py-xl bxs(1) bxs-solid b-line-hair" aria-labelledby="hg-related"> <h2 className="eyebrow" id="hg-related">More from engineering</h2> <ul className="flex flex-col gap-md m(0) p(0)"> <li className="flex"> <a className="link link-quiet fg-text-strong" href="#"> Preview comments, pinned to elements </a> </li> <li className="flex"> <a className="link link-quiet fg-text-strong" href="#"> A dashboard you can drive from the keyboard </a> </li> <li className="flex"> <a className="link link-quiet fg-text-strong" href="#">Why a deployment is immutable</a> </li> </ul> </aside> <footer className="shell-footer bt(1) bt-solid b-line-hair"> <div className="flex flex-wrap items-center justify-between gap-sm px(20) py-lg text-xs fg-text-muted"> <span>© 2026 Atlas Labs</span> <nav className="flex flex-wrap gap-lg" aria-label="Footer"> <a className="link link-quiet" href="#">Privacy</a> <a className="link link-quiet" href="#">Terms</a> <a className="link link-quiet" href="#">RSS</a> </nav> </div> </footer> <dialog className="dialog dialog-drawer dialog-drawer-start" id="hg-nav" closedby="any" aria-label="Navigation"> <div className="dialog-body"> <nav className="nav" aria-label="Sections, in the drawer"> <a className="nav-item" href="#">Latest</a> <a className="nav-item" href="#" aria-current="page">Engineering</a> <a className="nav-item" href="#">Product</a> <a className="nav-item" href="#">Company</a> <a className="nav-item" href="#">Customers</a> </nav> </div> <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'hg-nav', command: 'close' }} aria-label="Close navigation"> <XIcon className="icon" /> </button> </dialog></div><script> import MenuIcon from '@master/icons-svelte/native/16/soft/menu' import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast' import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 13rem; --shell-aside: 15rem"> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="hg-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a> <div class="navbar-end"> <button type="button" class="btn btn-primary btn-sm">Subscribe</button> </div> </header> <main class="shell-main"> <article class="flex flex-col gap-md max-w(640) mx-auto px(20) py-xl"> <p class="eyebrow">Engineering</p> <h1 class="heading heading-2xl">How we cut cold builds by forty seconds</h1> <p class="lead"> Most of a cold build was spent fetching what the last build had already fetched. We stopped throwing it away. </p> <p class="m(0) leading-md"> A build starts from an empty machine. For years that was a feature: nothing left over from last time could break this time. It also meant every build downloaded the same two hundred megabytes of dependencies before doing any work of its own. </p> <p class="m(0) leading-md"> The fix was not a faster download. It was to key a cache by the lockfile, restore it before the install step, and let the package manager find that it had nothing to do. The install step now takes about three seconds when nothing changed, which is most of the time. </p> <p class="m(0) leading-md"> The main column is first in the source, before both side columns. The grid places each region by its class, so the order a screen reader meets them in is the order of importance, not the order on screen. </p> <p class="m(0) leading-md"> We measured for a month before turning it on for everyone. Median cold build time went from 96 seconds to 55, and the slowest tenth improved the most, because they had the most to download. </p> </article> </main> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Sections"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <aside class="shell-aside gap-md px-lg py-xl bxs(1) bxs-solid b-line-hair" aria-labelledby="hg-related"> <h2 class="eyebrow" id="hg-related">More from engineering</h2> <ul class="flex flex-col gap-md m(0) p(0)"> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#">Preview comments, pinned to elements</a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#"> A dashboard you can drive from the keyboard </a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#">Why a deployment is immutable</a> </li> </ul> </aside> <footer class="shell-footer bt(1) bt-solid b-line-hair"> <div class="flex flex-wrap items-center justify-between gap-sm px(20) py-lg text-xs fg-text-muted"> <span>© 2026 Atlas Labs</span> <nav class="flex flex-wrap gap-lg" aria-label="Footer"> <a class="link link-quiet" href="#">Privacy</a> <a class="link link-quiet" href="#">Terms</a> <a class="link link-quiet" href="#">RSS</a> </nav> </div> </footer> <dialog class="dialog dialog-drawer dialog-drawer-start" id="hg-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body"> <nav class="nav" aria-label="Sections, in the drawer"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="hg-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog></div><script setup>import MenuIcon from '@master/icons-vue/native/16/soft/menu'import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template> <div class="shell bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 13rem; --shell-aside: 15rem"> <header class="navbar shell-header bb(1) bb-solid b-line-hair" style="--navbar-padding-x: 1.25rem"> <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="hg-nav" command="show-modal" aria-label="Open navigation"> <MenuIcon class="icon" /> </button> <a class="navbar-brand" href="#"><ContrastIcon class="icon" />Atlas</a> <div class="navbar-end"> <button type="button" class="btn btn-primary btn-sm">Subscribe</button> </div> </header> <main class="shell-main"> <article class="flex flex-col gap-md max-w(640) mx-auto px(20) py-xl"> <p class="eyebrow">Engineering</p> <h1 class="heading heading-2xl">How we cut cold builds by forty seconds</h1> <p class="lead"> Most of a cold build was spent fetching what the last build had already fetched. We stopped throwing it away. </p> <p class="m(0) leading-md"> A build starts from an empty machine. For years that was a feature: nothing left over from last time could break this time. It also meant every build downloaded the same two hundred megabytes of dependencies before doing any work of its own. </p> <p class="m(0) leading-md"> The fix was not a faster download. It was to key a cache by the lockfile, restore it before the install step, and let the package manager find that it had nothing to do. The install step now takes about three seconds when nothing changed, which is most of the time. </p> <p class="m(0) leading-md"> The main column is first in the source, before both side columns. The grid places each region by its class, so the order a screen reader meets them in is the order of importance, not the order on screen. </p> <p class="m(0) leading-md"> We measured for a month before turning it on for everyone. Median cold build time went from 96 seconds to 55, and the slowest tenth improved the most, because they had the most to download. </p> </article> </main> <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair"> <nav class="nav" aria-label="Sections"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <aside class="shell-aside gap-md px-lg py-xl bxs(1) bxs-solid b-line-hair" aria-labelledby="hg-related"> <h2 class="eyebrow" id="hg-related">More from engineering</h2> <ul class="flex flex-col gap-md m(0) p(0)"> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#"> Preview comments, pinned to elements </a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#"> A dashboard you can drive from the keyboard </a> </li> <li class="flex"> <a class="link link-quiet fg-text-strong" href="#">Why a deployment is immutable</a> </li> </ul> </aside> <footer class="shell-footer bt(1) bt-solid b-line-hair"> <div class="flex flex-wrap items-center justify-between gap-sm px(20) py-lg text-xs fg-text-muted"> <span>© 2026 Atlas Labs</span> <nav class="flex flex-wrap gap-lg" aria-label="Footer"> <a class="link link-quiet" href="#">Privacy</a> <a class="link link-quiet" href="#">Terms</a> <a class="link link-quiet" href="#">RSS</a> </nav> </div> </footer> <dialog class="dialog dialog-drawer dialog-drawer-start" id="hg-nav" closedby="any" aria-label="Navigation"> <div class="dialog-body"> <nav class="nav" aria-label="Sections, in the drawer"> <a class="nav-item" href="#">Latest</a> <a class="nav-item" href="#" aria-current="page">Engineering</a> <a class="nav-item" href="#">Product</a> <a class="nav-item" href="#">Company</a> <a class="nav-item" href="#">Customers</a> </nav> </div> <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="hg-nav" command="close" aria-label="Close navigation"> <XIcon class="icon" /> </button> </dialog> </div></template>カラムの下までスクロールすると、フッターが表示されます。「タブレット」では終了側のカラムが非表示になり、「スマートフォン」では開始側のカラムがドロワーに移ります。
#構成
shell-headerとshell-footerは外枠の全幅に広がります。その間の行にshell-sidebar、shell-main、shell-asideを並べます。- ソース順序は自由に決められます。 各領域の配置はクラスで決まるため、マークアップ内の順序とは独立しています。この例では
<main>をヘッダーの直後、両側のカラムより前に置きます。スクリーンリーダーの読み上げ、検索エンジンによる読み取り、Tabキーでの移動では、両側のカラムより先になります。 - 両側のカラムは固定幅、中央は可変幅です。 両側の幅は
--shell-sidebarと--shell-asideで指定します。メイン領域は残りの幅を使い、その範囲に収まります。 - 3カラムを並べる行は、少なくともビューポートと同じ高さです。本文を読み進める間も両側のカラムを表示しておくことができ、フッターは初期表示範囲より下に配置されます。
- フレーム全体で端をそろえます。 ヘッダーは
--navbar-padding-xをサイドバーの余白とナビゲーション項目の余白を足した1.25remにし、フッターはpx(20)にしているため、ブランド、セクション、フッターの文字が同じ線から始まります。 - 細い罫線はユーティリティで引きます。
bxe(1) bxe-solid b-line-hairは開始側カラムの終了端に、bxs(…)は終了側カラムの開始端に線を引きます。どちらも書字方向に従います。
#使いどころ
同じコンテンツに対して、別の場所への案内と関連情報の提示を両側のカラムに分担させる場合は、3カラムを使います。片方がページ内目次だけなら、ドキュメントレイアウトでより簡潔に構成できます。サイドカラムが1つなら、アプリシェルを使います。
#アクセシビリティ
- 開始側のカラムは、「セクション」とラベルを付けた
<nav>を囲む汎用要素なので、ランドマークは2つではなく1つです。終了側のカラムにはナビゲーションがないため、見出しで名前を付けた<aside>にし、リンクは一覧にします。 - ソースでメイン領域を両側のカラムより先に置くと、タブ順序はヘッダー、メイン領域、両側のカラムの順になります。この順序が読者の期待に合うかを確認し、合わなければ
<main>をナビゲーションの後に移します。