홀리 그레일은 이름이 붙은 가장 오래된 페이지 레이아웃입니다. 헤더와 푸터 사이에 세 열을 배치하고, 가운데 열이 양옆 열을 제외한 나머지 너비를 차지합니다. 세 열의 높이는 가장 높은 열에 맞추며, 소스에서는 주 콘텐츠가 다른 열보다 먼저 나옵니다. 이 레이아웃은 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>을 헤더 바로 뒤에, 양옆 열보다 앞에 둡니다. 따라서 스크린 리더와 검색 엔진이 세 열 중 이 영역을 먼저 읽고, 탭 순서에서도 이 영역이 두 열보다 앞섭니다. - 양옆 열의 너비는 고정되고 가운데 열의 너비는 유동적입니다. 사용자 지정 속성
--shell-sidebar와--shell-aside로 양옆 열의 너비를 설정합니다. 주 영역은 남은 너비만큼만 차지합니다. - 세 열이 놓인 행의 높이는 뷰포트 높이 이상입니다. 따라서 본문을 읽는 동안 양옆 열을 화면에 계속 표시할 수 있으며, 푸터는 첫 화면 아래에서 시작합니다.
- 프레임 전체가 한 가장자리를 공유합니다. 헤더는
--navbar-padding-x를 사이드바의 안쪽 여백과 내비게이션 항목의 안쪽 여백을 더한 1.25rem으로 설정하고, 푸터는px(20)을 적용하므로 브랜드, 섹션, 푸터 텍스트가 같은 선에서 시작합니다. - 가는 구분선은 유틸리티로 그립니다. 시작 쪽 열의 끝에는
bxe(1) bxe-solid b-line-hair로, 끝 쪽 열의 시작에는bxs(…)로 선을 그립니다. 두 선의 위치는 모두 쓰기 방향을 따릅니다.
#사용 시점
같은 본문을 두고 양옆 열이 서로 다른 역할을 할 때 3열 레이아웃을 사용합니다. 한쪽은 다른 곳으로 이동하는 경로를, 다른 쪽은 본문과 관련된 항목을 보여 줍니다. 한쪽 열에 현재 페이지의 목차만 들어간다면 문서 레이아웃으로 더 간결하게 구성할 수 있습니다. 보조 열이 하나뿐이면 앱 셸을 사용합니다.
#접근성
- 시작 쪽 열은 "섹션" 레이블이 지정된
<nav>를 감싼 일반 요소이므로 랜드마크가 두 개가 아니라 하나입니다. 끝 쪽 열에는 탐색 요소가 없으므로 제목으로 이름을 지정한<aside>이며, 링크는 목록으로 묶습니다. - 소스에서 주 영역을 양옆 열보다 앞에 두면 탭 순서는 헤더, 주 영역, 양옆 열이 됩니다. 이 순서가 독자의 예상과 맞는지 확인하고, 다르다면
<main>을 탐색 메뉴 뒤로 옮깁니다.