탐색

v2.1.0
애플리케이션 페이지

앱 셸

메인 영역을 스크롤해도 사이드바는 제자리에 머물며, 셸이 좁아지면 사이드바를 드로어로 열 수 있습니다.

앱 셸은 애플리케이션의 기본 틀입니다. 메인 영역이 스크롤되는 동안에도 사이드바는 제자리에 머뭅니다. 앱 셸은 shell 레이아웃 클래스를 기반으로 하며, 이 클래스는 유틸리티만으로 표현할 수 없는 요소를 담당합니다. 높이에는 dvh를 사용하고, 사이드바는 스크롤 중에도 제자리에 머물며 자체적으로 스크롤할 수 있습니다. 홈 인디케이터를 위한 여백과 사이드바가 사라지는 기준 너비도 이 클래스에서 처리합니다.

셸 자체는 화면에 아무것도 그리지 않습니다. 예제에서 가는 구분선에는 테두리 유틸리티를, 상단 바에는 내비게이션 바를, 링크에는 내비게이션 목록을 사용합니다. 타일은 자동 그리드에 배치한 카드입니다.

앱 셸

<div class="shell bg-surface-base fg-text-body text-sm">  <a class="skip" href="#app-main">Skip to content</a>  <aside class="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair">    <a class="navbar-brand h(40) px-xs" 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>    <nav class="nav" aria-label="Workspace">      <a class="nav-item" 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">          <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />        </svg>Overview      </a>      <a class="nav-item" href="#" aria-current="page">        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />        </svg>Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />        </svg>Domains      </a>      <a class="nav-item" 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">          <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />        </svg>Analytics      </a>      <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />        </svg>Team      </a>      <a class="nav-item" 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">          <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />        </svg>Settings      </a>    </nav>    <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">      <span class="avatar avatar-xs" aria-hidden="true">        <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <main class="shell-main" id="app-main" tabindex="-1">    <header class="navbar" style="--navbar-padding-x: 1.5rem">      <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-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>      <h1 class="heading heading-sm">Projects</h1>      <div class="navbar-end">        <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Search">          <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="7" cy="7" r="4.5" /><path d="M10.182 10.182L14 14" />          </svg>        </button>        <button type="button" class="btn btn-primary btn-sm">          <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 8L13 8" /><path d="M8 3L8 13" />          </svg>New project        </button>      </div>    </header>    <div class="p-lg">      <ul class="auto-grid">        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Atlas</h2>              <p class="card-description">atlas.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Borealis</h2>              <p class="card-description">borealis.app</p>              <span class="badge badge-info badge-dot card-action">Building</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Cinder</h2>              <p class="card-description">cinder.io</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Drift</h2>              <p class="card-description">drift.so</p>              <span class="badge badge-danger badge-dot card-action">Failed</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Ember</h2>              <p class="card-description">ember.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Fathom</h2>              <p class="card-description">fathom.app</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>      </ul>    </div>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" 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>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" 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">            <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />          </svg>Overview        </a>        <a class="nav-item" href="#" aria-current="page">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />          </svg>Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          </svg>Domains        </a>        <a class="nav-item" 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">            <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />          </svg>Analytics        </a>        <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />          </svg>Team        </a>        <a class="nav-item" 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">            <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />          </svg>Settings        </a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-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 ContrastIcon from '@master/icons-react/native/16/soft/contrast'import HomeIcon from '@master/icons-react/native/16/soft/home'import GridIcon from '@master/icons-react/native/16/soft/grid'import GlobeIcon from '@master/icons-react/native/16/soft/globe'import ChartBarIcon from '@master/icons-react/native/16/soft/chart-bar'import UsersIcon from '@master/icons-react/native/16/soft/users'import SlidersIcon from '@master/icons-react/native/16/soft/sliders'import MenuIcon from '@master/icons-react/native/16/soft/menu'import SearchIcon from '@master/icons-react/native/16/soft/search'import PlusIcon from '@master/icons-react/native/16/soft/plus'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-base fg-text-body text-sm">  <a className="skip" href="#app-main">Skip to content</a>  <aside className="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair">    <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a>    <nav className="nav" aria-label="Workspace">      <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>      <a className="nav-item" href="#" aria-current="page">        <GridIcon className="icon" />Projects<span className="nav-end">12</span>      </a>      <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>      <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>      <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>      <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>    </nav>    <button type="button" className="btn btn-quiet justify-start px-xs mt-auto">      <span className="avatar avatar-xs" aria-hidden="true">        <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <main className="shell-main" id="app-main" tabIndex={-1}>    <header className="navbar" style={{ '--navbar-padding-x': '1.5rem' } as React.CSSProperties}>      <button type="button" className="btn btn-quiet btn-square btn-sm shell-toggle" {...{ commandfor: 'shell-nav', command: 'show-modal' }} aria-label="Open navigation">        <MenuIcon className="icon" />      </button>      <h1 className="heading heading-sm">Projects</h1>      <div className="navbar-end">        <button type="button" className="btn btn-quiet btn-square btn-sm" aria-label="Search">          <SearchIcon className="icon" />        </button>        <button type="button" className="btn btn-primary btn-sm">          <PlusIcon className="icon" />New project        </button>      </div>    </header>    <div className="p-lg">      <ul className="auto-grid">        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Atlas</h2>              <p className="card-description">atlas.dev</p>              <span className="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Borealis</h2>              <p className="card-description">borealis.app</p>              <span className="badge badge-info badge-dot card-action">Building</span>            </header>          </article>        </li>        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Cinder</h2>              <p className="card-description">cinder.io</p>              <span className="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Drift</h2>              <p className="card-description">drift.so</p>              <span className="badge badge-danger badge-dot card-action">Failed</span>            </header>          </article>        </li>        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Ember</h2>              <p className="card-description">ember.dev</p>              <span className="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article className="card">            <header className="card-header">              <h2 className="card-title">Fathom</h2>              <p className="card-description">fathom.app</p>              <span className="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>      </ul>    </div>  </main>  <dialog className="dialog dialog-drawer dialog-drawer-start" id="shell-nav" closedby="any" aria-label="Navigation">    <div className="dialog-body flex flex-col gap-md">      <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a>      <nav className="nav" aria-label="Workspace, in the drawer">        <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>        <a className="nav-item" href="#" aria-current="page">          <GridIcon className="icon" />Projects<span className="nav-end">12</span>        </a>        <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>        <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>        <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>        <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>      </nav>      <button type="button" className="btn btn-quiet justify-start px-xs mt-auto">        <span className="avatar avatar-xs" aria-hidden="true">          <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'shell-nav', command: 'close' }} aria-label="Close navigation">      <XIcon className="icon" />    </button>  </dialog></div>
<script>  import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast'  import HomeIcon from '@master/icons-svelte/native/16/soft/home'  import GridIcon from '@master/icons-svelte/native/16/soft/grid'  import GlobeIcon from '@master/icons-svelte/native/16/soft/globe'  import ChartBarIcon from '@master/icons-svelte/native/16/soft/chart-bar'  import UsersIcon from '@master/icons-svelte/native/16/soft/users'  import SlidersIcon from '@master/icons-svelte/native/16/soft/sliders'  import MenuIcon from '@master/icons-svelte/native/16/soft/menu'  import SearchIcon from '@master/icons-svelte/native/16/soft/search'  import PlusIcon from '@master/icons-svelte/native/16/soft/plus'  import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-base fg-text-body text-sm">  <a class="skip" href="#app-main">Skip to content</a>  <aside class="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair">    <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>    <nav class="nav" aria-label="Workspace">      <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>      <a class="nav-item" href="#" aria-current="page">        <GridIcon class="icon" />Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>      <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>      <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>      <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>    </nav>    <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">      <span class="avatar avatar-xs" aria-hidden="true">        <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <main class="shell-main" id="app-main" tabindex="-1">    <header class="navbar" style="--navbar-padding-x: 1.5rem">      <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-nav" command="show-modal" aria-label="Open navigation">        <MenuIcon class="icon" />      </button>      <h1 class="heading heading-sm">Projects</h1>      <div class="navbar-end">        <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Search">          <SearchIcon class="icon" />        </button>        <button type="button" class="btn btn-primary btn-sm">          <PlusIcon class="icon" />New project        </button>      </div>    </header>    <div class="p-lg">      <ul class="auto-grid">        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Atlas</h2>              <p class="card-description">atlas.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Borealis</h2>              <p class="card-description">borealis.app</p>              <span class="badge badge-info badge-dot card-action">Building</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Cinder</h2>              <p class="card-description">cinder.io</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Drift</h2>              <p class="card-description">drift.so</p>              <span class="badge badge-danger badge-dot card-action">Failed</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Ember</h2>              <p class="card-description">ember.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Fathom</h2>              <p class="card-description">fathom.app</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>      </ul>    </div>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav" command="close" aria-label="Close navigation">      <XIcon class="icon" />    </button>  </dialog></div>
<script setup>import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import HomeIcon from '@master/icons-vue/native/16/soft/home'import GridIcon from '@master/icons-vue/native/16/soft/grid'import GlobeIcon from '@master/icons-vue/native/16/soft/globe'import ChartBarIcon from '@master/icons-vue/native/16/soft/chart-bar'import UsersIcon from '@master/icons-vue/native/16/soft/users'import SlidersIcon from '@master/icons-vue/native/16/soft/sliders'import MenuIcon from '@master/icons-vue/native/16/soft/menu'import SearchIcon from '@master/icons-vue/native/16/soft/search'import PlusIcon from '@master/icons-vue/native/16/soft/plus'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template>  <div class="shell bg-surface-base fg-text-body text-sm">    <a class="skip" href="#app-main">Skip to content</a>    <aside class="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair">      <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="nav" aria-label="Workspace">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </aside>    <main class="shell-main" id="app-main" tabindex="-1">      <header class="navbar" style="--navbar-padding-x: 1.5rem">        <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-nav" command="show-modal" aria-label="Open navigation">          <MenuIcon class="icon" />        </button>        <h1 class="heading heading-sm">Projects</h1>        <div class="navbar-end">          <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Search">            <SearchIcon class="icon" />          </button>          <button type="button" class="btn btn-primary btn-sm">            <PlusIcon class="icon" />New project          </button>        </div>      </header>      <div class="p-lg">        <ul class="auto-grid">          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Atlas</h2>                <p class="card-description">atlas.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Borealis</h2>                <p class="card-description">borealis.app</p>                <span class="badge badge-info badge-dot card-action">Building</span>              </header>            </article>          </li>          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Cinder</h2>                <p class="card-description">cinder.io</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Drift</h2>                <p class="card-description">drift.so</p>                <span class="badge badge-danger badge-dot card-action">Failed</span>              </header>            </article>          </li>          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Ember</h2>                <p class="card-description">ember.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card">              <header class="card-header">                <h2 class="card-title">Fathom</h2>                <p class="card-description">fathom.app</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>        </ul>      </div>    </main>    <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav" closedby="any" aria-label="Navigation">      <div class="dialog-body flex flex-col gap-md">        <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>        <nav class="nav" aria-label="Workspace, in the drawer">          <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>          <a class="nav-item" href="#" aria-current="page">            <GridIcon class="icon" />Projects<span class="nav-end">12</span>          </a>          <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>          <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>          <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>          <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>        </nav>        <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">          <span class="avatar avatar-xs" aria-hidden="true">            <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>          </span>Yi-ching Lin        </button>      </div>      <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav" command="close" aria-label="Close navigation">        <XIcon class="icon" />      </button>    </dialog>  </div></template>
페이지를 스크롤하면 사이드바와 상단 바가 제자리에 머뭅니다. 휴대폰을 선택하면 사이드바가 사라지고, 사이드바를 드로어로 여는 버튼이 나타납니다.

#구성

구성 요소클래스동작
프레임shell최소 높이가 뷰포트 높이인 그리드이자 이름이 shell인 크기 컨테이너
사이드바shell-sidebar문서를 스크롤해도 헤더 아래에 머물며, 뷰포트의 남은 높이를 채우고 독립적으로 스크롤됨
메인 영역shell-main남은 열을 차지하며 해당 열의 너비를 넘지 않음
토글shell-toggle사이드바가 보이지 않을 때만 표시할 컨트롤

기본적으로 문서 전체가 스크롤됩니다. 내비게이션 바는 스크롤 중에도 제자리에 머물고, 제목으로 연결되는 링크는 해당 위치로 이동하며, 브라우저에서 뒤로 가면 이전 스크롤 위치가 복원됩니다.

셸의 너비가 48rem 미만이면 사이드바가 레이아웃에서 빠집니다. 대체 요소는 자동으로 표시되지 않습니다. 시작 가장자리의 드로어에 같은 내비게이션 목록을 넣고, shell-toggle 클래스를 적용한 버튼으로 드로어를 엽니다. 드로어는 네이티브 <dialog> 요소이며 commandfor로 열리므로, 이 구성에는 스크립트가 필요 없습니다.

기준이 되는 것은 셸의 너비입니다. 화면 크기와 관계없이 좁은 패널 안에 있는 셸의 사이드바는 접힙니다.

가장자리를 맞춥니다. 메인 영역의 내비게이션 바는 --navbar-padding-x를 아래 콘텐츠의 안쪽 여백과 같은 1.5rem으로 설정하므로, 제목과 첫 번째 카드가 같은 선에서 시작합니다. 사이드바에서는 p-sm과 내비게이션 항목 자체의 안쪽 여백이 더해져 모든 아이콘이 1.25rem 안쪽에 놓이며, 각각 px-xs를 적용한 브랜드와 계정 버튼도 같은 위치에서 시작합니다.

#트레이 위 배치

셸에 트레이 색조를 적용하고, 메인 영역은 가장자리에서 8px 안쪽에 놓인 시트 위에 배치합니다. 그러면 사이드바는 프레임의 일부로, 콘텐츠는 그 위에 놓인 요소로 보입니다. 클래스는 그대로 사용하며 표면만 달라집니다.

트레이 위 배치

<div class="shell bg-surface-tray fg-text-body text-sm">  <a class="skip" href="#app-main-inset">Skip to content</a>  <aside class="shell-sidebar gap-md p-sm">    <a class="navbar-brand h(40) px-xs" 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>    <nav class="nav" aria-label="Workspace">      <a class="nav-item" 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">          <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />        </svg>Overview      </a>      <a class="nav-item" href="#" aria-current="page">        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />        </svg>Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />        </svg>Domains      </a>      <a class="nav-item" 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">          <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />        </svg>Analytics      </a>      <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />        </svg>Team      </a>      <a class="nav-item" 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">          <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />        </svg>Settings      </a>    </nav>    <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">      <span class="avatar avatar-xs" aria-hidden="true">        <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)">    <main class="sheet grow(1)" id="app-main-inset" tabindex="-1">      <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem">        <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-nav-inset" 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>        <h1 class="heading heading-sm">Projects</h1>        <div class="navbar-end">          <button type="button" class="btn btn-primary btn-sm">            <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 8L13 8" /><path d="M8 3L8 13" />            </svg>New project          </button>        </div>      </header>      <div class="p-lg">        <ul class="auto-grid">          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Atlas</h2>                <p class="card-description">atlas.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Borealis</h2>                <p class="card-description">borealis.app</p>                <span class="badge badge-info badge-dot card-action">Building</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Cinder</h2>                <p class="card-description">cinder.io</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Drift</h2>                <p class="card-description">drift.so</p>                <span class="badge badge-danger badge-dot card-action">Failed</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Ember</h2>                <p class="card-description">ember.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Fathom</h2>                <p class="card-description">fathom.app</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>        </ul>      </div>    </main>  </div>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-inset" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" 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>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" 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">            <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />          </svg>Overview        </a>        <a class="nav-item" href="#" aria-current="page">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />          </svg>Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          </svg>Domains        </a>        <a class="nav-item" 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">            <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />          </svg>Analytics        </a>        <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />          </svg>Team        </a>        <a class="nav-item" 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">            <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />          </svg>Settings        </a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-inset" 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 ContrastIcon from '@master/icons-react/native/16/soft/contrast'import HomeIcon from '@master/icons-react/native/16/soft/home'import GridIcon from '@master/icons-react/native/16/soft/grid'import GlobeIcon from '@master/icons-react/native/16/soft/globe'import ChartBarIcon from '@master/icons-react/native/16/soft/chart-bar'import UsersIcon from '@master/icons-react/native/16/soft/users'import SlidersIcon from '@master/icons-react/native/16/soft/sliders'import MenuIcon from '@master/icons-react/native/16/soft/menu'import PlusIcon from '@master/icons-react/native/16/soft/plus'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-tray fg-text-body text-sm">  <a className="skip" href="#app-main-inset">Skip to content</a>  <aside className="shell-sidebar gap-md p-sm">    <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a>    <nav className="nav" aria-label="Workspace">      <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>      <a className="nav-item" href="#" aria-current="page">        <GridIcon className="icon" />Projects<span className="nav-end">12</span>      </a>      <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>      <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>      <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>      <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>    </nav>    <button type="button" className="btn btn-quiet justify-start px-xs mt-auto">      <span className="avatar avatar-xs" aria-hidden="true">        <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <div className="shell-main flex flex-col p(8) pxs(0)@container(--3xl)">    <main className="sheet grow(1)" id="app-main-inset" tabIndex={-1}>      <header className="navbar" style={{ '--navbar-color': 'var(--color-surface-raised)', '--navbar-padding-x': '1.5rem' } as React.CSSProperties}>        <button type="button" className="btn btn-quiet btn-square btn-sm shell-toggle" {...{ commandfor: 'shell-nav-inset', command: 'show-modal' }} aria-label="Open navigation">          <MenuIcon className="icon" />        </button>        <h1 className="heading heading-sm">Projects</h1>        <div className="navbar-end">          <button type="button" className="btn btn-primary btn-sm">            <PlusIcon className="icon" />New project          </button>        </div>      </header>      <div className="p-lg">        <ul className="auto-grid">          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Atlas</h2>                <p className="card-description">atlas.dev</p>                <span className="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Borealis</h2>                <p className="card-description">borealis.app</p>                <span className="badge badge-info badge-dot card-action">Building</span>              </header>            </article>          </li>          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Cinder</h2>                <p className="card-description">cinder.io</p>                <span className="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Drift</h2>                <p className="card-description">drift.so</p>                <span className="badge badge-danger badge-dot card-action">Failed</span>              </header>            </article>          </li>          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Ember</h2>                <p className="card-description">ember.dev</p>                <span className="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article className="card card-flat">              <header className="card-header">                <h2 className="card-title">Fathom</h2>                <p className="card-description">fathom.app</p>                <span className="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>        </ul>      </div>    </main>  </div>  <dialog className="dialog dialog-drawer dialog-drawer-start" id="shell-nav-inset" closedby="any" aria-label="Navigation">    <div className="dialog-body flex flex-col gap-md">      <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a>      <nav className="nav" aria-label="Workspace, in the drawer">        <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>        <a className="nav-item" href="#" aria-current="page">          <GridIcon className="icon" />Projects<span className="nav-end">12</span>        </a>        <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>        <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>        <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>        <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>      </nav>      <button type="button" className="btn btn-quiet justify-start px-xs mt-auto">        <span className="avatar avatar-xs" aria-hidden="true">          <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="20" height="20" /><span className="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'shell-nav-inset', command: 'close' }} aria-label="Close navigation">      <XIcon className="icon" />    </button>  </dialog></div>
<script>  import ContrastIcon from '@master/icons-svelte/native/16/soft/contrast'  import HomeIcon from '@master/icons-svelte/native/16/soft/home'  import GridIcon from '@master/icons-svelte/native/16/soft/grid'  import GlobeIcon from '@master/icons-svelte/native/16/soft/globe'  import ChartBarIcon from '@master/icons-svelte/native/16/soft/chart-bar'  import UsersIcon from '@master/icons-svelte/native/16/soft/users'  import SlidersIcon from '@master/icons-svelte/native/16/soft/sliders'  import MenuIcon from '@master/icons-svelte/native/16/soft/menu'  import PlusIcon from '@master/icons-svelte/native/16/soft/plus'  import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-tray fg-text-body text-sm">  <a class="skip" href="#app-main-inset">Skip to content</a>  <aside class="shell-sidebar gap-md p-sm">    <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>    <nav class="nav" aria-label="Workspace">      <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>      <a class="nav-item" href="#" aria-current="page">        <GridIcon class="icon" />Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>      <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>      <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>      <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>    </nav>    <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">      <span class="avatar avatar-xs" aria-hidden="true">        <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>      </span>Yi-ching Lin    </button>  </aside>  <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)">    <main class="sheet grow(1)" id="app-main-inset" tabindex="-1">      <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem">        <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-nav-inset" command="show-modal" aria-label="Open navigation">          <MenuIcon class="icon" />        </button>        <h1 class="heading heading-sm">Projects</h1>        <div class="navbar-end">          <button type="button" class="btn btn-primary btn-sm">            <PlusIcon class="icon" />New project          </button>        </div>      </header>      <div class="p-lg">        <ul class="auto-grid">          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Atlas</h2>                <p class="card-description">atlas.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Borealis</h2>                <p class="card-description">borealis.app</p>                <span class="badge badge-info badge-dot card-action">Building</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Cinder</h2>                <p class="card-description">cinder.io</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Drift</h2>                <p class="card-description">drift.so</p>                <span class="badge badge-danger badge-dot card-action">Failed</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Ember</h2>                <p class="card-description">ember.dev</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>          <li>            <article class="card card-flat">              <header class="card-header">                <h2 class="card-title">Fathom</h2>                <p class="card-description">fathom.app</p>                <span class="badge badge-success badge-dot card-action">Ready</span>              </header>            </article>          </li>        </ul>      </div>    </main>  </div>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-inset" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-inset" command="close" aria-label="Close navigation">      <XIcon class="icon" />    </button>  </dialog></div>
<script setup>import ContrastIcon from '@master/icons-vue/native/16/soft/contrast'import HomeIcon from '@master/icons-vue/native/16/soft/home'import GridIcon from '@master/icons-vue/native/16/soft/grid'import GlobeIcon from '@master/icons-vue/native/16/soft/globe'import ChartBarIcon from '@master/icons-vue/native/16/soft/chart-bar'import UsersIcon from '@master/icons-vue/native/16/soft/users'import SlidersIcon from '@master/icons-vue/native/16/soft/sliders'import MenuIcon from '@master/icons-vue/native/16/soft/menu'import PlusIcon from '@master/icons-vue/native/16/soft/plus'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template>  <div class="shell bg-surface-tray fg-text-body text-sm">    <a class="skip" href="#app-main-inset">Skip to content</a>    <aside class="shell-sidebar gap-md p-sm">      <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="nav" aria-label="Workspace">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>      <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">        <span class="avatar avatar-xs" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>        </span>Yi-ching Lin      </button>    </aside>    <div class="shell-main flex flex-col p(8) pxs(0)@container(--3xl)">      <main class="sheet grow(1)" id="app-main-inset" tabindex="-1">        <header class="navbar" style="--navbar-color: var(--color-surface-raised); --navbar-padding-x: 1.5rem">          <button type="button" class="btn btn-quiet btn-square btn-sm shell-toggle" commandfor="shell-nav-inset" command="show-modal" aria-label="Open navigation">            <MenuIcon class="icon" />          </button>          <h1 class="heading heading-sm">Projects</h1>          <div class="navbar-end">            <button type="button" class="btn btn-primary btn-sm">              <PlusIcon class="icon" />New project            </button>          </div>        </header>        <div class="p-lg">          <ul class="auto-grid">            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Atlas</h2>                  <p class="card-description">atlas.dev</p>                  <span class="badge badge-success badge-dot card-action">Ready</span>                </header>              </article>            </li>            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Borealis</h2>                  <p class="card-description">borealis.app</p>                  <span class="badge badge-info badge-dot card-action">Building</span>                </header>              </article>            </li>            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Cinder</h2>                  <p class="card-description">cinder.io</p>                  <span class="badge badge-success badge-dot card-action">Ready</span>                </header>              </article>            </li>            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Drift</h2>                  <p class="card-description">drift.so</p>                  <span class="badge badge-danger badge-dot card-action">Failed</span>                </header>              </article>            </li>            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Ember</h2>                  <p class="card-description">ember.dev</p>                  <span class="badge badge-success badge-dot card-action">Ready</span>                </header>              </article>            </li>            <li>              <article class="card card-flat">                <header class="card-header">                  <h2 class="card-title">Fathom</h2>                  <p class="card-description">fathom.app</p>                  <span class="badge badge-success badge-dot card-action">Ready</span>                </header>              </article>            </li>          </ul>        </div>      </main>    </div>    <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-inset" closedby="any" aria-label="Navigation">      <div class="dialog-body flex flex-col gap-md">        <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>        <nav class="nav" aria-label="Workspace, in the drawer">          <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>          <a class="nav-item" href="#" aria-current="page">            <GridIcon class="icon" />Projects<span class="nav-end">12</span>          </a>          <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>          <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>          <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>          <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>        </nav>        <button type="button" class="btn btn-quiet justify-start px-xs mt-auto">          <span class="avatar avatar-xs" aria-hidden="true">            <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="20" height="20"><span class="avatar-fallback">YL</span>          </span>Yi-ching Lin        </button>      </div>      <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-inset" command="close" aria-label="Close navigation">        <XIcon class="icon" />      </button>    </dialog>  </div></template>

내비게이션 바의 패널에는 뒤쪽 표면의 색조가 적용됩니다. 시트 위에서는 --navbar-color를 시트 색상으로 설정합니다.

#헤더가 있는 구성

shell-header는 두 열 위에서 셸의 전체 너비를 차지합니다. 사이드바는 스크롤 중에도 헤더 아래에 머물며, 셸은 --shell-header에 지정된 높이만큼 공간을 확보합니다. 기본값은 내비게이션 바의 높이인 3.5rem입니다. 헤더가 더 높으면 이 속성의 값을 변경합니다. 이 예에서는 헤더의 --navbar-padding-x를 1.25rem으로 설정해 브랜드가 사이드바 아이콘 바로 위에 오도록 합니다.

헤더가 있는 구성

<div class="shell bg-surface-base fg-text-body text-sm">  <a class="skip" href="#app-main-header">Skip to content</a>  <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="shell-nav-header" 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-quiet btn-square btn-sm" aria-label="Notifications">        <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.25 6C4.25 4.25 6 2.5 8 2.5C10 2.5 11.75 4.25 11.75 6V8.25C11.75 9.75 12.75 10.75 13.25 11.25Q13.5 11.75 12.75 11.75H3.25Q2.5 11.75 2.75 11.25C3.25 10.75 4.25 9.75 4.25 8.25Z" /><path d="M6.85 14Q8 15 9.15 14" />        </svg>      </button>      <button type="button" class="btn btn-quiet btn-square btn-sm mxe(-4)" aria-label="Account">        <span class="avatar avatar-sm" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="24" height="24"><span class="avatar-fallback">YL</span>        </span>      </button>    </div>  </header>  <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair">    <nav class="nav" aria-label="Workspace">      <a class="nav-item" 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">          <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />        </svg>Overview      </a>      <a class="nav-item" href="#" aria-current="page">        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />        </svg>Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />        </svg>Domains      </a>      <a class="nav-item" 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">          <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />        </svg>Analytics      </a>      <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />        </svg>Team      </a>      <a class="nav-item" 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">          <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />        </svg>Settings      </a>    </nav>  </div>  <main class="shell-main flex flex-col gap-lg px(20) py-lg" id="app-main-header" tabindex="-1">    <h1 class="heading heading-lg">Projects</h1>    <ul class="auto-grid">      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Atlas</h2>            <p class="card-description">atlas.dev</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Borealis</h2>            <p class="card-description">borealis.app</p>            <span class="badge badge-info badge-dot card-action">Building</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Cinder</h2>            <p class="card-description">cinder.io</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Drift</h2>            <p class="card-description">drift.so</p>            <span class="badge badge-danger badge-dot card-action">Failed</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Ember</h2>            <p class="card-description">ember.dev</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Fathom</h2>            <p class="card-description">fathom.app</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>    </ul>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-header" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" 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>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" 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">            <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" /><path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />          </svg>Overview        </a>        <a class="nav-item" href="#" aria-current="page">          <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">            <rect x="2.5" y="2.5" width="4" height="4" rx="1" /><rect x="9.5" y="2.5" width="4" height="4" rx="1" /><rect x="2.5" y="9.5" width="4" height="4" rx="1" /><rect x="9.5" y="9.5" width="4" height="4" rx="1" />          </svg>Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" 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.7707 2.0497A6.0005 6.0005 0 0 0 7.2293 2.0497Q6.1162 3.1938 5.4813 4.6077Q4.8542 6.0044 4.7648 7.5H2.0209A5.9913 5.9913 0 0 0 2.0209 8.5H4.7648Q4.8542 9.9956 5.4813 11.3923Q6.1162 12.8062 7.2293 13.9503A6.0005 6.0005 0 0 0 8.7707 13.9503Q9.8838 12.8062 10.5187 11.3923Q11.1458 9.9956 11.2352 8.5H13.9791A5.9913 5.9913 0 0 0 13.9791 7.5H11.2352Q11.1458 6.0044 10.5187 4.6077Q9.8838 3.1938 8.7707 2.0497ZM9.6064 5.0173Q10.1455 6.2181 10.2331 7.5H5.7669Q5.8545 6.2181 6.3936 5.0173Q6.971 3.7314 8 2.6921Q9.029 3.7314 9.6064 5.0173ZM6.3936 10.9827Q5.8545 9.7819 5.7669 8.5H10.2331Q10.1455 9.7819 9.6064 10.9827Q9.029 12.2686 8 13.3079Q6.971 12.2686 6.3936 10.9827Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          </svg>Domains        </a>        <a class="nav-item" 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">            <rect x="2" y="8" width="2.5" height="6" rx="0.75" /><rect x="6.75" y="3" width="2.5" height="11" rx="0.75" /><rect x="11.5" y="6" width="2.5" height="8" rx="0.75" />          </svg>Analytics        </a>        <a class="nav-item" 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="6.25" cy="4.5" r="2" /><path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" /><path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" /><path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />          </svg>Team        </a>        <a class="nav-item" 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">            <path d="M2.5 4.5L4.5 4.5" /><circle cx="6" cy="4.5" r="1.5" /><path d="M7.5 4.5L13.5 4.5" /><path d="M2.5 11.5L8.5 11.5" /><circle cx="10" cy="11.5" r="1.5" /><path d="M11.5 11.5L13.5 11.5" />          </svg>Settings        </a>      </nav>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-header" 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 BellIcon from '@master/icons-react/native/16/soft/bell'import HomeIcon from '@master/icons-react/native/16/soft/home'import GridIcon from '@master/icons-react/native/16/soft/grid'import GlobeIcon from '@master/icons-react/native/16/soft/globe'import ChartBarIcon from '@master/icons-react/native/16/soft/chart-bar'import UsersIcon from '@master/icons-react/native/16/soft/users'import SlidersIcon from '@master/icons-react/native/16/soft/sliders'import XIcon from '@master/icons-react/native/16/soft/x'<div className="shell bg-surface-base fg-text-body text-sm">  <a className="skip" href="#app-main-header">Skip to content</a>  <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: 'shell-nav-header', 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-quiet btn-square btn-sm" aria-label="Notifications">        <BellIcon className="icon" />      </button>      <button type="button" className="btn btn-quiet btn-square btn-sm mxe(-4)" aria-label="Account">        <span className="avatar avatar-sm" aria-hidden="true">          <img className="avatar-image" src="/demo/people/yiching-lin.webp" alt="" width="24" height="24" /><span className="avatar-fallback">YL</span>        </span>      </button>    </div>  </header>  <div className="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair">    <nav className="nav" aria-label="Workspace">      <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>      <a className="nav-item" href="#" aria-current="page">        <GridIcon className="icon" />Projects<span className="nav-end">12</span>      </a>      <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>      <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>      <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>      <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>    </nav>  </div>  <main className="shell-main flex flex-col gap-lg px(20) py-lg" id="app-main-header" tabIndex={-1}>    <h1 className="heading heading-lg">Projects</h1>    <ul className="auto-grid">      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Atlas</h2>            <p className="card-description">atlas.dev</p>            <span className="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Borealis</h2>            <p className="card-description">borealis.app</p>            <span className="badge badge-info badge-dot card-action">Building</span>          </header>        </article>      </li>      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Cinder</h2>            <p className="card-description">cinder.io</p>            <span className="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Drift</h2>            <p className="card-description">drift.so</p>            <span className="badge badge-danger badge-dot card-action">Failed</span>          </header>        </article>      </li>      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Ember</h2>            <p className="card-description">ember.dev</p>            <span className="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article className="card">          <header className="card-header">            <h2 className="card-title">Fathom</h2>            <p className="card-description">fathom.app</p>            <span className="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>    </ul>  </main>  <dialog className="dialog dialog-drawer dialog-drawer-start" id="shell-nav-header" closedby="any" aria-label="Navigation">    <div className="dialog-body flex flex-col gap-md">      <a className="navbar-brand h(40) px-xs" href="#"><ContrastIcon className="icon" />Atlas</a>      <nav className="nav" aria-label="Workspace, in the drawer">        <a className="nav-item" href="#"><HomeIcon className="icon" />Overview</a>        <a className="nav-item" href="#" aria-current="page">          <GridIcon className="icon" />Projects<span className="nav-end">12</span>        </a>        <a className="nav-item" href="#"><GlobeIcon className="icon" />Domains</a>        <a className="nav-item" href="#"><ChartBarIcon className="icon" />Analytics</a>        <a className="nav-item" href="#"><UsersIcon className="icon" />Team</a>        <a className="nav-item" href="#"><SlidersIcon className="icon" />Settings</a>      </nav>    </div>    <button type="button" className="btn btn-quiet btn-square btn-sm dialog-close" {...{ commandfor: 'shell-nav-header', 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 BellIcon from '@master/icons-svelte/native/16/soft/bell'  import HomeIcon from '@master/icons-svelte/native/16/soft/home'  import GridIcon from '@master/icons-svelte/native/16/soft/grid'  import GlobeIcon from '@master/icons-svelte/native/16/soft/globe'  import ChartBarIcon from '@master/icons-svelte/native/16/soft/chart-bar'  import UsersIcon from '@master/icons-svelte/native/16/soft/users'  import SlidersIcon from '@master/icons-svelte/native/16/soft/sliders'  import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell bg-surface-base fg-text-body text-sm">  <a class="skip" href="#app-main-header">Skip to content</a>  <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="shell-nav-header" 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-quiet btn-square btn-sm" aria-label="Notifications">        <BellIcon class="icon" />      </button>      <button type="button" class="btn btn-quiet btn-square btn-sm mxe(-4)" aria-label="Account">        <span class="avatar avatar-sm" aria-hidden="true">          <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="24" height="24"><span class="avatar-fallback">YL</span>        </span>      </button>    </div>  </header>  <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair">    <nav class="nav" aria-label="Workspace">      <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>      <a class="nav-item" href="#" aria-current="page">        <GridIcon class="icon" />Projects<span class="nav-end">12</span>      </a>      <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>      <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>      <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>      <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>    </nav>  </div>  <main class="shell-main flex flex-col gap-lg px(20) py-lg" id="app-main-header" tabindex="-1">    <h1 class="heading heading-lg">Projects</h1>    <ul class="auto-grid">      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Atlas</h2>            <p class="card-description">atlas.dev</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Borealis</h2>            <p class="card-description">borealis.app</p>            <span class="badge badge-info badge-dot card-action">Building</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Cinder</h2>            <p class="card-description">cinder.io</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Drift</h2>            <p class="card-description">drift.so</p>            <span class="badge badge-danger badge-dot card-action">Failed</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Ember</h2>            <p class="card-description">ember.dev</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>      <li>        <article class="card">          <header class="card-header">            <h2 class="card-title">Fathom</h2>            <p class="card-description">fathom.app</p>            <span class="badge badge-success badge-dot card-action">Ready</span>          </header>        </article>      </li>    </ul>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-header" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>      <nav class="nav" aria-label="Workspace, in the drawer">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-header" 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 BellIcon from '@master/icons-vue/native/16/soft/bell'import HomeIcon from '@master/icons-vue/native/16/soft/home'import GridIcon from '@master/icons-vue/native/16/soft/grid'import GlobeIcon from '@master/icons-vue/native/16/soft/globe'import ChartBarIcon from '@master/icons-vue/native/16/soft/chart-bar'import UsersIcon from '@master/icons-vue/native/16/soft/users'import SlidersIcon from '@master/icons-vue/native/16/soft/sliders'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template>  <div class="shell bg-surface-base fg-text-body text-sm">    <a class="skip" href="#app-main-header">Skip to content</a>    <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="shell-nav-header" 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-quiet btn-square btn-sm" aria-label="Notifications">          <BellIcon class="icon" />        </button>        <button type="button" class="btn btn-quiet btn-square btn-sm mxe(-4)" aria-label="Account">          <span class="avatar avatar-sm" aria-hidden="true">            <img class="avatar-image" src="/demo/people/yiching-lin.webp" alt width="24" height="24"><span class="avatar-fallback">YL</span>          </span>        </button>      </div>    </header>    <div class="shell-sidebar p-sm bxe(1) bxe-solid b-line-hair">      <nav class="nav" aria-label="Workspace">        <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>        <a class="nav-item" href="#" aria-current="page">          <GridIcon class="icon" />Projects<span class="nav-end">12</span>        </a>        <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>        <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>        <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>        <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>      </nav>    </div>    <main class="shell-main flex flex-col gap-lg px(20) py-lg" id="app-main-header" tabindex="-1">      <h1 class="heading heading-lg">Projects</h1>      <ul class="auto-grid">        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Atlas</h2>              <p class="card-description">atlas.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Borealis</h2>              <p class="card-description">borealis.app</p>              <span class="badge badge-info badge-dot card-action">Building</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Cinder</h2>              <p class="card-description">cinder.io</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Drift</h2>              <p class="card-description">drift.so</p>              <span class="badge badge-danger badge-dot card-action">Failed</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Ember</h2>              <p class="card-description">ember.dev</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>        <li>          <article class="card">            <header class="card-header">              <h2 class="card-title">Fathom</h2>              <p class="card-description">fathom.app</p>              <span class="badge badge-success badge-dot card-action">Ready</span>            </header>          </article>        </li>      </ul>    </main>    <dialog class="dialog dialog-drawer dialog-drawer-start" id="shell-nav-header" closedby="any" aria-label="Navigation">      <div class="dialog-body flex flex-col gap-md">        <a class="navbar-brand h(40) px-xs" href="#"><ContrastIcon class="icon" />Atlas</a>        <nav class="nav" aria-label="Workspace, in the drawer">          <a class="nav-item" href="#"><HomeIcon class="icon" />Overview</a>          <a class="nav-item" href="#" aria-current="page">            <GridIcon class="icon" />Projects<span class="nav-end">12</span>          </a>          <a class="nav-item" href="#"><GlobeIcon class="icon" />Domains</a>          <a class="nav-item" href="#"><ChartBarIcon class="icon" />Analytics</a>          <a class="nav-item" href="#"><UsersIcon class="icon" />Team</a>          <a class="nav-item" href="#"><SlidersIcon class="icon" />Settings</a>        </nav>      </div>      <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="shell-nav-header" command="close" aria-label="Close navigation">        <XIcon class="icon" />      </button>    </dialog>  </div></template>

#고정형

shell-fixed를 적용하면 셸의 크기가 뷰포트와 정확히 일치합니다. 각 영역만 독립적으로 스크롤되므로 사용자가 열어 본 내용을 스크롤해도 목록의 위치는 그대로 유지됩니다. 받은편지함, 에디터, 채팅처럼 두 영역을 나란히 보며 사용하는 화면에 적용합니다. 그 외에는 기본 동작을 사용합니다. 휴대폰에서는 페이지를 스크롤할 때 브라우저 도구 모음이 접히므로 문서 전체가 스크롤되는 방식이 더 자연스럽게 동작합니다.

--shell-sidebar는 사이드바의 너비를 설정합니다. 여기서는 메시지 목록을 표시하기 위해 20rem으로 설정합니다.

이 열은 제목과 목록으로 이루어지며 목록만 스크롤됩니다. 목록에 grow(1) min-h(0) overflow-y-auto를 지정했으므로 제목과 필터는 제자리에 남습니다. 목록은 열 안쪽으로 px-sm만큼 떨어져 있어 현재 행의 시트가 양쪽 가장자리에 닿지 않습니다. 제목에는 행 자체의 안쪽 여백(--list-inset)과 같은 pxs(10)을 지정해 행의 텍스트와 같은 위치에서 시작합니다. 각 행은 items-baseline으로 시간을 제목과 같은 줄에 맞춥니다.

고정형

<div class="shell shell-fixed bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 20rem">  <a class="skip" href="#app-main-fixed">Skip to content</a>  <aside class="shell-sidebar bxe(1) bxe-solid b-line-hair" aria-labelledby="inbox-title">    <header class="flex items-center justify-between gap-xs shrink(0) h(56) px-sm">      <h1 class="heading heading-sm pxs(10)" id="inbox-title">Inbox</h1>      <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Filter messages">        <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.5365 3L11.4635 3A1 1 0 0 1 12.2548 4.6114L9.4587 8.2299A1 1 0 0 0 9.25 8.8413L9.25 11.323A1 1 0 0 1 8.6214 12.2514L7.875 12.55A0.8203 0.8203 0 0 1 6.75 11.7883L6.75 8.8413A1 1 0 0 0 6.5413 8.2299L3.7452 4.6114A1 1 0 0 1 4.5365 3Z" />        </svg>      </button>    </header>    <ul class="list list-interactive grow(1) min-h(0) overflow-y-auto px-sm pt-2xs pb-sm">      <li>        <a class="list-row items-baseline" href="#" aria-current="true">          <div class="list-body">            <p class="list-title">Deploy failed on drift.so</p>            <p class="list-description">The install step exited with code 1.</p>          </div>          <time class="list-end" datetime="2026-11-12T09:41">09:41</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Misaki invited you to Borealis</p>            <p class="list-description">You now have access as an editor.</p>          </div>          <time class="list-end" datetime="2026-11-12T09:12">09:12</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Your invoice for October</p>            <p class="list-description">$48.00, paid with the card ending 4242.</p>          </div>          <time class="list-end" datetime="2026-11-10">Tue</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Domain atlas.dev renewed</p>            <p class="list-description">Valid until 4 November next year.</p>          </div>          <time class="list-end" datetime="2026-11-09">Mon</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Weekly summary</p>            <p class="list-description">1.28M requests, 0.02% errors.</p>          </div>          <time class="list-end" datetime="2026-11-09">Mon</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Cinder is live in 14 regions</p>            <p class="list-description">Deployed from main by Po-han.</p>          </div>          <time class="list-end" datetime="2026-11-08">Sun</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">New sign-in from Tokyo</p>            <p class="list-description">If this was you, there is nothing to do.</p>          </div>          <time class="list-end" datetime="2026-11-07">Sat</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Usage at 80% of your plan</p>            <p class="list-description">Upgrade or lower traffic before the 30th.</p>          </div>          <time class="list-end" datetime="2026-11-06">Fri</time>        </a>      </li>    </ul>  </aside>  <main class="shell-main" id="app-main-fixed" tabindex="-1">    <div class="flex flex-col items-start gap-lg max-w(688) p-lg">      <button type="button" class="btn btn-sm shell-toggle" commandfor="inbox-list" command="show-modal">        <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="M2.6667 3.3333L13.3333 3.3333" /><path d="M2.6667 6.3333L9.3333 6.3333" /><path d="M2.6667 9.3333L13.3333 9.3333" /><path d="M2.6667 12.3333L9.3333 12.3333" />        </svg>Inbox      </button>      <article class="flex flex-col gap-lg">        <header class="flex flex-col gap-xs">          <p class="eyebrow">Deployments</p>          <h2 class="heading heading-xl">Deploy failed on drift.so</h2>          <p class="lead lead-sm">            The install step exited with code 1. Nothing was published, and the previous deployment is still serving traffic.          </p>        </header>        <pre class="code-block"><code>npm error code ERESOLVEnpm error ERESOLVE could not resolvenpm error While resolving: drift@2.4.0</code></pre>        <div class="flex flex-col gap-sm">          <p class="m(0) leading-md">            The adapter that drift pins was withdrawn from the registry this morning, so the lockfile no longer resolves. Two other projects in this team pin the same version.          </p>          <p class="m(0) leading-md">            Retry the deployment after pinning the dependency, or roll back from the deployments list. The log above is the last three lines; the full log is on the deployment page.          </p>        </div>        <div class="flex flex-wrap gap-xs">          <button type="button" class="btn btn-primary">Retry deployment</button>          <button type="button" class="btn">View full log</button>        </div>      </article>    </div>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="inbox-list" closedby="any" aria-labelledby="inbox-drawer-title">    <header class="dialog-header">      <h2 class="dialog-title pxs(10)" id="inbox-drawer-title">Inbox</h2>    </header>    <div class="dialog-body">      <ul class="list list-interactive">        <li>          <a class="list-row items-baseline" href="#" aria-current="true">            <div class="list-body">              <p class="list-title">Deploy failed on drift.so</p>              <p class="list-description">The install step exited with code 1.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:41">09:41</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Misaki invited you to Borealis</p>              <p class="list-description">You now have access as an editor.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:12">09:12</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Your invoice for October</p>              <p class="list-description">$48.00, paid with the card ending 4242.</p>            </div>            <time class="list-end" datetime="2026-11-10">Tue</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Domain atlas.dev renewed</p>              <p class="list-description">Valid until 4 November next year.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Weekly summary</p>              <p class="list-description">1.28M requests, 0.02% errors.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Cinder is live in 14 regions</p>              <p class="list-description">Deployed from main by Po-han.</p>            </div>            <time class="list-end" datetime="2026-11-08">Sun</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">New sign-in from Tokyo</p>              <p class="list-description">If this was you, there is nothing to do.</p>            </div>            <time class="list-end" datetime="2026-11-07">Sat</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Usage at 80% of your plan</p>              <p class="list-description">Upgrade or lower traffic before the 30th.</p>            </div>            <time class="list-end" datetime="2026-11-06">Fri</time>          </a>        </li>      </ul>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="inbox-list" command="close" aria-label="Close the inbox">      <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>
<script>  import FilterIcon from '@master/icons-svelte/native/16/soft/filter'  import AlignLeftIcon from '@master/icons-svelte/native/16/soft/align-left'  import XIcon from '@master/icons-svelte/native/16/soft/x'</script><div class="shell shell-fixed bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 20rem">  <a class="skip" href="#app-main-fixed">Skip to content</a>  <aside class="shell-sidebar bxe(1) bxe-solid b-line-hair" aria-labelledby="inbox-title">    <header class="flex items-center justify-between gap-xs shrink(0) h(56) px-sm">      <h1 class="heading heading-sm pxs(10)" id="inbox-title">Inbox</h1>      <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Filter messages">        <FilterIcon class="icon" />      </button>    </header>    <ul class="list list-interactive grow(1) min-h(0) overflow-y-auto px-sm pt-2xs pb-sm">      <li>        <a class="list-row items-baseline" href="#" aria-current="true">          <div class="list-body">            <p class="list-title">Deploy failed on drift.so</p>            <p class="list-description">The install step exited with code 1.</p>          </div>          <time class="list-end" datetime="2026-11-12T09:41">09:41</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Misaki invited you to Borealis</p>            <p class="list-description">You now have access as an editor.</p>          </div>          <time class="list-end" datetime="2026-11-12T09:12">09:12</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Your invoice for October</p>            <p class="list-description">$48.00, paid with the card ending 4242.</p>          </div>          <time class="list-end" datetime="2026-11-10">Tue</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Domain atlas.dev renewed</p>            <p class="list-description">Valid until 4 November next year.</p>          </div>          <time class="list-end" datetime="2026-11-09">Mon</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Weekly summary</p>            <p class="list-description">1.28M requests, 0.02% errors.</p>          </div>          <time class="list-end" datetime="2026-11-09">Mon</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Cinder is live in 14 regions</p>            <p class="list-description">Deployed from main by Po-han.</p>          </div>          <time class="list-end" datetime="2026-11-08">Sun</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">New sign-in from Tokyo</p>            <p class="list-description">If this was you, there is nothing to do.</p>          </div>          <time class="list-end" datetime="2026-11-07">Sat</time>        </a>      </li>      <li>        <a class="list-row items-baseline" href="#">          <div class="list-body">            <p class="list-title">Usage at 80% of your plan</p>            <p class="list-description">Upgrade or lower traffic before the 30th.</p>          </div>          <time class="list-end" datetime="2026-11-06">Fri</time>        </a>      </li>    </ul>  </aside>  <main class="shell-main" id="app-main-fixed" tabindex="-1">    <div class="flex flex-col items-start gap-lg max-w(688) p-lg">      <button type="button" class="btn btn-sm shell-toggle" commandfor="inbox-list" command="show-modal">        <AlignLeftIcon class="icon" />Inbox      </button>      <article class="flex flex-col gap-lg">        <header class="flex flex-col gap-xs">          <p class="eyebrow">Deployments</p>          <h2 class="heading heading-xl">Deploy failed on drift.so</h2>          <p class="lead lead-sm">            The install step exited with code 1. Nothing was published, and the previous deployment is still serving traffic.          </p>        </header>        <pre class="code-block"><code>npm error code ERESOLVEnpm error ERESOLVE could not resolvenpm error While resolving: drift@2.4.0</code></pre>        <div class="flex flex-col gap-sm">          <p class="m(0) leading-md">            The adapter that drift pins was withdrawn from the registry this morning, so the lockfile no longer resolves. Two other projects in this team pin the same version.          </p>          <p class="m(0) leading-md">            Retry the deployment after pinning the dependency, or roll back from the deployments list. The log above is the last three lines; the full log is on the deployment page.          </p>        </div>        <div class="flex flex-wrap gap-xs">          <button type="button" class="btn btn-primary">Retry deployment</button>          <button type="button" class="btn">View full log</button>        </div>      </article>    </div>  </main>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="inbox-list" closedby="any" aria-labelledby="inbox-drawer-title">    <header class="dialog-header">      <h2 class="dialog-title pxs(10)" id="inbox-drawer-title">Inbox</h2>    </header>    <div class="dialog-body">      <ul class="list list-interactive">        <li>          <a class="list-row items-baseline" href="#" aria-current="true">            <div class="list-body">              <p class="list-title">Deploy failed on drift.so</p>              <p class="list-description">The install step exited with code 1.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:41">09:41</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Misaki invited you to Borealis</p>              <p class="list-description">You now have access as an editor.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:12">09:12</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Your invoice for October</p>              <p class="list-description">$48.00, paid with the card ending 4242.</p>            </div>            <time class="list-end" datetime="2026-11-10">Tue</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Domain atlas.dev renewed</p>              <p class="list-description">Valid until 4 November next year.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Weekly summary</p>              <p class="list-description">1.28M requests, 0.02% errors.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Cinder is live in 14 regions</p>              <p class="list-description">Deployed from main by Po-han.</p>            </div>            <time class="list-end" datetime="2026-11-08">Sun</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">New sign-in from Tokyo</p>              <p class="list-description">If this was you, there is nothing to do.</p>            </div>            <time class="list-end" datetime="2026-11-07">Sat</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Usage at 80% of your plan</p>              <p class="list-description">Upgrade or lower traffic before the 30th.</p>            </div>            <time class="list-end" datetime="2026-11-06">Fri</time>          </a>        </li>      </ul>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="inbox-list" command="close" aria-label="Close the inbox">      <XIcon class="icon" />    </button>  </dialog></div>
<script setup>import FilterIcon from '@master/icons-vue/native/16/soft/filter'import AlignLeftIcon from '@master/icons-vue/native/16/soft/align-left'import XIcon from '@master/icons-vue/native/16/soft/x'</script><template>  <div class="shell shell-fixed bg-surface-base fg-text-body text-sm" style="--shell-sidebar: 20rem">    <a class="skip" href="#app-main-fixed">Skip to content</a>    <aside class="shell-sidebar bxe(1) bxe-solid b-line-hair" aria-labelledby="inbox-title">      <header class="flex items-center justify-between gap-xs shrink(0) h(56) px-sm">        <h1 class="heading heading-sm pxs(10)" id="inbox-title">Inbox</h1>        <button type="button" class="btn btn-quiet btn-square btn-sm" aria-label="Filter messages">          <FilterIcon class="icon" />        </button>      </header>      <ul class="list list-interactive grow(1) min-h(0) overflow-y-auto px-sm pt-2xs pb-sm">        <li>          <a class="list-row items-baseline" href="#" aria-current="true">            <div class="list-body">              <p class="list-title">Deploy failed on drift.so</p>              <p class="list-description">The install step exited with code 1.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:41">09:41</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Misaki invited you to Borealis</p>              <p class="list-description">You now have access as an editor.</p>            </div>            <time class="list-end" datetime="2026-11-12T09:12">09:12</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Your invoice for October</p>              <p class="list-description">$48.00, paid with the card ending 4242.</p>            </div>            <time class="list-end" datetime="2026-11-10">Tue</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Domain atlas.dev renewed</p>              <p class="list-description">Valid until 4 November next year.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Weekly summary</p>              <p class="list-description">1.28M requests, 0.02% errors.</p>            </div>            <time class="list-end" datetime="2026-11-09">Mon</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Cinder is live in 14 regions</p>              <p class="list-description">Deployed from main by Po-han.</p>            </div>            <time class="list-end" datetime="2026-11-08">Sun</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">New sign-in from Tokyo</p>              <p class="list-description">If this was you, there is nothing to do.</p>            </div>            <time class="list-end" datetime="2026-11-07">Sat</time>          </a>        </li>        <li>          <a class="list-row items-baseline" href="#">            <div class="list-body">              <p class="list-title">Usage at 80% of your plan</p>              <p class="list-description">Upgrade or lower traffic before the 30th.</p>            </div>            <time class="list-end" datetime="2026-11-06">Fri</time>          </a>        </li>      </ul>    </aside>    <main class="shell-main" id="app-main-fixed" tabindex="-1">      <div class="flex flex-col items-start gap-lg max-w(688) p-lg">        <button type="button" class="btn btn-sm shell-toggle" commandfor="inbox-list" command="show-modal">          <AlignLeftIcon class="icon" />Inbox        </button>        <article class="flex flex-col gap-lg">          <header class="flex flex-col gap-xs">            <p class="eyebrow">Deployments</p>            <h2 class="heading heading-xl">Deploy failed on drift.so</h2>            <p class="lead lead-sm">              The install step exited with code 1. Nothing was published, and the previous deployment is still serving traffic.            </p>          </header>          <pre class="code-block"><code>npm error code ERESOLVEnpm error ERESOLVE could not resolvenpm error While resolving: drift@2.4.0</code></pre>          <div class="flex flex-col gap-sm">            <p class="m(0) leading-md">              The adapter that drift pins was withdrawn from the registry this morning, so the lockfile no longer resolves. Two other projects in this team pin the same version.            </p>            <p class="m(0) leading-md">              Retry the deployment after pinning the dependency, or roll back from the deployments list. The log above is the last three lines; the full log is on the deployment page.            </p>          </div>          <div class="flex flex-wrap gap-xs">            <button type="button" class="btn btn-primary">Retry deployment</button>            <button type="button" class="btn">View full log</button>          </div>        </article>      </div>    </main>    <dialog class="dialog dialog-drawer dialog-drawer-start" id="inbox-list" closedby="any" aria-labelledby="inbox-drawer-title">      <header class="dialog-header">        <h2 class="dialog-title pxs(10)" id="inbox-drawer-title">Inbox</h2>      </header>      <div class="dialog-body">        <ul class="list list-interactive">          <li>            <a class="list-row items-baseline" href="#" aria-current="true">              <div class="list-body">                <p class="list-title">Deploy failed on drift.so</p>                <p class="list-description">The install step exited with code 1.</p>              </div>              <time class="list-end" datetime="2026-11-12T09:41">09:41</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Misaki invited you to Borealis</p>                <p class="list-description">You now have access as an editor.</p>              </div>              <time class="list-end" datetime="2026-11-12T09:12">09:12</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Your invoice for October</p>                <p class="list-description">$48.00, paid with the card ending 4242.</p>              </div>              <time class="list-end" datetime="2026-11-10">Tue</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Domain atlas.dev renewed</p>                <p class="list-description">Valid until 4 November next year.</p>              </div>              <time class="list-end" datetime="2026-11-09">Mon</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Weekly summary</p>                <p class="list-description">1.28M requests, 0.02% errors.</p>              </div>              <time class="list-end" datetime="2026-11-09">Mon</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Cinder is live in 14 regions</p>                <p class="list-description">Deployed from main by Po-han.</p>              </div>              <time class="list-end" datetime="2026-11-08">Sun</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">New sign-in from Tokyo</p>                <p class="list-description">If this was you, there is nothing to do.</p>              </div>              <time class="list-end" datetime="2026-11-07">Sat</time>            </a>          </li>          <li>            <a class="list-row items-baseline" href="#">              <div class="list-body">                <p class="list-title">Usage at 80% of your plan</p>                <p class="list-description">Upgrade or lower traffic before the 30th.</p>              </div>              <time class="list-end" datetime="2026-11-06">Fri</time>            </a>          </li>        </ul>      </div>      <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="inbox-list" command="close" aria-label="Close the inbox">        <XIcon class="icon" />      </button>    </dialog>  </div></template>
목록과 메시지는 각각 스크롤됩니다. 페이지 자체는 스크롤되지 않습니다. 휴대폰을 선택하면 목록이 사라지고, 목록을 드로어로 여는 버튼이 나타납니다.

#작업 공간

작업 공간은 고정형 셸에 세 번째 영역을 더한 것입니다. 에디터가, 그곳으로 이끈 내비게이션과 편집 중인 대상의 속성 사이에 놓입니다. 사용자가 한 가지를 오래 작업하고 그 설정이 옆에 계속 있어야 할 때 사용합니다. 아티클, 릴리스 노트, 레코드 등이 해당합니다. 작업 옆에 설정할 것이 없다면 위의 고정형 셸로 충분합니다.

속성은 shell-aside에 놓이며, 여기서는 --shell-aside로 너비를 18rem으로 설정합니다. 메인 영역은 에디터 위에 헤더를 둔 구성이며, 에디터의 엔진은 서식 있는 텍스트 가이드와 마찬가지로 Tiptap입니다.

작업 공간

<div class="shell shell-fixed bg-surface-base fg-text-body text-sm" style="--shell-aside: 18rem" data-example="workspace">  <a class="skip" href="#workspace-main">Skip to content</a>  <aside class="shell-sidebar gap-md p-sm bxe(1) bxe-solid b-line-hair" aria-label="Workspace">    <a class="navbar-brand h(40) px-xs" 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>    <nav class="nav" aria-label="Sections">      <a class="nav-item" 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">          <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" />          <path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />        </svg>Overview</a>      <a class="nav-item" href="#" aria-current="page">        <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.5 2L9.0858 2A1 1 0 0 1 9.7929 2.2929L12.2071 4.7071A1 1 0 0 1 12.5 5.4142L12.5 13A1 1 0 0 1 11.5 14L4.5 14A1 1 0 0 1 3.5 13L3.5 3A1 1 0 0 1 4.5 2Z" />          <path d="M10 2.5V4.4A0.1 0.1 0 0 0 10.1 4.5H12L12.2409 4.7427A0.9993 0.9993 0 0 1 12.5 5.4142V5.5H10.1Q9.6444 5.5 9.3222 5.1778Q9 4.8556 9 4.4V2A1.1002 1.1002 0 0 1 9.3761 2.0431A1.0001 1.0001 0 0 1 9.7929 2.2929L10 2.5Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          <path d="M6 10.5L10 10.5" />        </svg>Changelog        <span class="nav-end">8</span>      </a>      <a class="nav-item" 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">          <path d="M3 12.3333V3.6667Q3 2 4.6667 2H12.6Q13 2 13 2.4V13.6Q13 14 12.6 14H4.6667Q3 14 3 12.3333Z" />          <path d="M3 12.3333Q3 10.6667 4.6667 10.6667H13" />        </svg>Guides</a>      <a class="nav-item" 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">          <rect x="2" y="2.6667" width="12" height="10.6667" rx="1" />          <path d="M5.3356 13.3334H4.1667A0.5 0.5 0 0 1 4.293 13.0011L9.4854 7.1596Q9.6862 6.9338 9.9881 6.925Q10.29 6.9162 10.5036 7.1298L14 10.6262V11.8333A0.5006 0.5006 0 0 1 13.6465 11.6869L10.0214 8.0618L5.3356 13.3334Z" fill="currentColor" stroke="none" fill-rule="evenodd" />          <circle cx="5" cy="5.6667" r="0.9" fill="currentColor" stroke="none" />        </svg>Media</a>      <a class="nav-item" 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="6.25" cy="4.5" r="2" />          <path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" />          <path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" />          <path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />        </svg>Team</a>      <a class="nav-item" 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">          <path d="M2.5 4.5L4.5 4.5" />          <circle cx="6" cy="4.5" r="1.5" />          <path d="M7.5 4.5L13.5 4.5" />          <path d="M2.5 11.5L8.5 11.5" />          <circle cx="10" cy="11.5" r="1.5" />          <path d="M11.5 11.5L13.5 11.5" />        </svg>Settings</a>    </nav>  </aside>  <main class="shell-main flex flex-col" id="workspace-main" tabindex="-1">    <header class="flex items-center gap-xs shrink(0) min-h(56) px-lg">      <button type="button" class="btn btn-quiet btn-square btn-sm btn-hang-start shell-toggle" commandfor="workspace-navigation" 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>      <h1 class="heading heading-sm min-w(0) truncate" id="workspace-title" data-title>Regions, closer to your readers</h1>      <span class="badge badge-dot shrink(0) hidden@container(--max-sm)" data-status>Draft</span>      <button type="button" class="btn btn-sm shrink(0) ml-auto hidden@container(--5xl)" commandfor="workspace-properties-drawer" command="show-modal" aria-label="Properties" data-properties-toggle>        <svg class="icon" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">          <rect x="2" y="2.6667" width="12" height="10.6667" rx="1" />          <path d="M10 2.6667L10 13.3333" />        </svg>        <span class="hidden@container(--max-sm)">Properties</span>      </button>    </header>    <div class="flex flex-col grow(1) min-h(0) px-lg pb-lg">      <div class="editor grow(1) min-h(0)" style="--editor-rows: 3; --editor-max-rows: infinity">        <div class="toolbar editor-toolbar" role="toolbar" aria-label="Formatting" aria-controls="workspace-document">          <select class="select select-sm" data-command="style" aria-label="Text style">            <option value="paragraph">Paragraph</option>            <option value="heading">Heading</option>            <option value="subheading">Subheading</option>          </select>          <span class="toolbar-separator" role="separator" aria-orientation="vertical"></span>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="bold" aria-label="Bold" aria-keyshortcuts="Control+B Meta+B" aria-pressed="false">            <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.6667 3H8.3333C12.3333 3 12.3333 7.6667 8.3333 7.6667H4.6667M4.6667 3V13H9C13.3333 13 13.3333 7.6667 9 7.6667" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="italic" aria-label="Italic" aria-keyshortcuts="Control+I Meta+I" aria-pressed="false">            <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="M6.6667 3L12.6667 3" />              <path d="M3.3333 13L9.3333 13" />              <path d="M9.6667 3L6.3333 13" stroke-linecap="butt" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="underline" aria-label="Underline" aria-keyshortcuts="Control+U Meta+U" aria-pressed="false">            <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.3333 2.6667V7.6667C4.3333 12.3333 11.6667 12.3333 11.6667 7.6667V2.6667" />              <path d="M3 14L13 14" />            </svg>          </button>          <span class="toolbar-separator" role="separator" aria-orientation="vertical"></span>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="bulletList" aria-label="Bulleted list" aria-pressed="false">            <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="3" cy="4" r="0.5" fill="currentColor" stroke="none" />              <path d="M6 4L13.5 4" />              <circle cx="3" cy="8" r="0.5" fill="currentColor" stroke="none" />              <path d="M6 8L13.5 8" />              <circle cx="3" cy="12" r="0.5" fill="currentColor" stroke="none" />              <path d="M6 12L13.5 12" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="orderedList" aria-label="Numbered list" aria-pressed="false">            <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="M2 3.3333L3 2.6667V6M2 6H4" stroke-width="0.8" />              <path d="M2 9.6667C2 8.3333 4 8.3333 4 9.6667C4 10.6667 2 11 2 12.6667H4" stroke-width="0.8" />              <path d="M6.6667 4.6667L14 4.6667" />              <path d="M6.6667 11.3333L14 11.3333" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="blockquote" aria-label="Quotation" aria-pressed="false">            <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="M2.7667 3.3333H6.2333Q6.6667 3.3333 6.6667 3.7667V8.6667C6.6667 11.3333 4.6667 12.6667 2.3333 12.6667V10.6667C4 10.6667 4.3333 9.6667 4.3333 8H2.7667Q2.3333 8 2.3333 7.5667V3.7667Q2.3333 3.3333 2.7667 3.3333Z" />              <path d="M9.7667 3.3333H13.2333Q13.6667 3.3333 13.6667 3.7667V8.6667C13.6667 11.3333 11.6667 12.6667 9.3333 12.6667V10.6667C11 10.6667 11.3333 9.6667 11.3333 8H9.7667Q9.3333 8 9.3333 7.5667V3.7667Q9.3333 3.3333 9.7667 3.3333Z" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square ml-auto" data-command="undo" aria-label="Undo" aria-keyshortcuts="Control+Z Meta+Z">            <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="M6 3L3.1414 5.8586A0.2 0.2 0 0 0 3.1414 6.1414L6 9" />              <path d="M2.715 6.4108A0.4996 0.4996 0 0 0 3 6.5H9.5A2.9999 2.9999 0 0 1 10.6043 12.2894Q10.0722 12.5 9.5 12.5L5.9755 12.5006A0.5 0.5 0 0 0 5.9266 13.4946L6 13.5H9.5A3.9999 3.9999 0 0 0 10.9724 5.7808Q10.263 5.5 9.5 5.5L2.9621 5.5014A0.5007 0.5007 0 0 0 2.715 5.5892A0.7044 0.7044 0 0 0 2.715 6.4108Z" fill="currentColor" stroke="none" fill-rule="evenodd" />            </svg>          </button>          <button type="button" class="btn btn-quiet btn-sm btn-square" data-command="redo" aria-label="Redo" aria-keyshortcuts="Control+Shift+Z Meta+Shift+Z">            <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="M6 3L3.1414 5.8586A0.2 0.2 0 0 0 3.1414 6.1414L6 9" transform="translate(16 0) scale(-1 1)" />              <path d="M2.715 6.4108A0.4996 0.4996 0 0 0 3 6.5H9.5A2.9999 2.9999 0 0 1 10.6043 12.2894Q10.0722 12.5 9.5 12.5L5.9755 12.5006A0.5 0.5 0 0 0 5.9266 13.4946L6 13.5H9.5A3.9999 3.9999 0 0 0 10.9724 5.7808Q10.263 5.5 9.5 5.5L2.9621 5.5014A0.5007 0.5007 0 0 0 2.715 5.5892A0.7044 0.7044 0 0 0 2.715 6.4108Z" fill="currentColor" stroke="none" fill-rule="evenodd" transform="translate(16 0) scale(-1 1)" />            </svg>          </button>        </div>        <div class="flex flex-col grow(1) min-h(0)" data-editor></div>      </div>    </div>  </main>  <aside class="shell-aside bxs(1) bxs-solid b-line-hair" aria-labelledby="workspace-properties-title">    <header class="flex items-center shrink(0) min-h(56) px(20)">      <h2 class="heading heading-sm" id="workspace-properties-title">Properties</h2>    </header>    <div class="px(20) pb(20)" data-properties-home>      <div class="form" data-properties>        <label class="field">Title          <input class="input" type="text" name="title" value="Regions, closer to your readers" autocomplete="off">        </label>        <label class="field">Status          <select class="select" name="status">            <option class="select-option" value="draft">Draft</option>            <option class="select-option" value="review">In review</option>            <option class="select-option" value="published">Published</option>          </select>        </label>        <div class="field">          <label for="ws-summary">Summary</label>          <textarea class="input input-auto" id="ws-summary" name="summary" aria-describedby="ws-summary-hint">Four new regions, and a faster path to all of them.</textarea>          <span class="field-hint" id="ws-summary-hint">Shown under the title in the changelog.</span>        </div>        <label class="check">          <input type="checkbox" role="switch" class="switch" name="listed" checked>List in the changelog</label>      </div>    </div>  </aside>  <dialog class="dialog dialog-drawer dialog-drawer-start" id="workspace-navigation" closedby="any" aria-label="Navigation">    <div class="dialog-body flex flex-col gap-md">      <a class="navbar-brand h(40) px-xs" 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>      <nav class="nav" aria-label="Sections, in the drawer">        <a class="nav-item" 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">            <path d="M3 13L3 6.9624A1 1 0 0 1 3.3524 6.2005L7.3524 2.8005A1 1 0 0 1 8.6476 2.8005L12.6476 6.2005A1 1 0 0 1 13 6.9624L13 13A1 1 0 0 1 12 14L4 14A1 1 0 0 1 3 13Z" />            <path d="M6.5 14L6.5 11A1 1 0 0 1 7.5 10L8.5 10A1 1 0 0 1 9.5 11L9.5 14" />          </svg>Overview</a>        <a class="nav-item" href="#" aria-current="page">          <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.5 2L9.0858 2A1 1 0 0 1 9.7929 2.2929L12.2071 4.7071A1 1 0 0 1 12.5 5.4142L12.5 13A1 1 0 0 1 11.5 14L4.5 14A1 1 0 0 1 3.5 13L3.5 3A1 1 0 0 1 4.5 2Z" />            <path d="M10 2.5V4.4A0.1 0.1 0 0 0 10.1 4.5H12L12.2409 4.7427A0.9993 0.9993 0 0 1 12.5 5.4142V5.5H10.1Q9.6444 5.5 9.3222 5.1778Q9 4.8556 9 4.4V2A1.1002 1.1002 0 0 1 9.3761 2.0431A1.0001 1.0001 0 0 1 9.7929 2.2929L10 2.5Z" fill="currentColor" stroke="none" fill-rule="evenodd" />            <path d="M6 10.5L10 10.5" />          </svg>Changelog          <span class="nav-end">8</span>        </a>        <a class="nav-item" 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">            <path d="M3 12.3333V3.6667Q3 2 4.6667 2H12.6Q13 2 13 2.4V13.6Q13 14 12.6 14H4.6667Q3 14 3 12.3333Z" />            <path d="M3 12.3333Q3 10.6667 4.6667 10.6667H13" />          </svg>Guides</a>        <a class="nav-item" 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">            <rect x="2" y="2.6667" width="12" height="10.6667" rx="1" />            <path d="M5.3356 13.3334H4.1667A0.5 0.5 0 0 1 4.293 13.0011L9.4854 7.1596Q9.6862 6.9338 9.9881 6.925Q10.29 6.9162 10.5036 7.1298L14 10.6262V11.8333A0.5006 0.5006 0 0 1 13.6465 11.6869L10.0214 8.0618L5.3356 13.3334Z" fill="currentColor" stroke="none" fill-rule="evenodd" />            <circle cx="5" cy="5.6667" r="0.9" fill="currentColor" stroke="none" />          </svg>Media</a>        <a class="nav-item" 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="6.25" cy="4.5" r="2" />            <path d="M2.25 13.75V12.5C2.25 10.7 3.85 9.5 5.35 9.5H7.15C8.65 9.5 10.25 10.7 10.25 12.5V13.75" />            <path d="M11.1 2.6C13.8 2.6 13.8 6.6 11.1 6.6" />            <path d="M12 9.5C13.5 9.75 14.25 11.25 14.25 12.5V13.75" />          </svg>Team</a>        <a class="nav-item" 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">            <path d="M2.5 4.5L4.5 4.5" />            <circle cx="6" cy="4.5" r="1.5" />            <path d="M7.5 4.5L13.5 4.5" />            <path d="M2.5 11.5L8.5 11.5" />            <circle cx="10" cy="11.5" r="1.5" />            <path d="M11.5 11.5L13.5 11.5" />          </svg>Settings</a>      </nav>    </div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="workspace-navigation" 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>  <dialog class="dialog dialog-drawer" id="workspace-properties-drawer" closedby="any" aria-labelledby="workspace-properties-drawer-title">    <header class="dialog-header">      <h2 class="dialog-title" id="workspace-properties-drawer-title">Properties</h2>    </header>    <div class="dialog-body" data-properties-away></div>    <button type="button" class="btn btn-quiet btn-square btn-sm dialog-close" commandfor="workspace-properties-drawer" command="close" aria-label="Close properties">      <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>
글을 쓰고 문서를 스크롤해도 도구 모음은 제자리에 머뭅니다. 태블릿을 선택하면 속성이 사라지고, 속성을 드로어로 여는 버튼이 나타납니다. 휴대폰을 선택하면 내비게이션도 마찬가지입니다. 속성을 바꾼 뒤 다른 너비를 선택해도 값이 그대로 유지됩니다.
  • 스크롤되는 영역은 문서 하나입니다. 메인 영역은 flex flex-col입니다. 헤더는 shrink(0)이고, 에디터와 그것을 감싼 상자는 grow(1) min-h(0)이므로 에디터의 프레임은 남은 공간과 정확히 같은 높이가 됩니다. --editor-max-rows: infinity는 문서 자체의 열여덟 줄 제한을 해제하므로 문서의 높이는 프레임이 정하고, editor-document가 그 안에서 스크롤됩니다. 메인 영역의 다른 어떤 것도 자기 상자보다 높지 않으므로 문서의 스크롤바 옆에 두 번째 스크롤바가 나타나지 않습니다.
  • 도구 모음은 스크롤되지 않기 때문에 제자리에 머뭅니다. 도구 모음은 스크롤되는 내용 안의 스티키 바가 아니라, 에디터 프레임 상단에서 문서 위에 놓인 띠입니다. 프레임이 좁으면 두 번째 줄로 줄바꿈됩니다.
  • 셸의 너비가 64rem 미만이면 보조 영역이 사라집니다. hidden@container(--5xl)인 Properties 버튼은 이때만 존재하며, 끝 가장자리에 놓이는 드로어인 dialog dialog-drawer를 엽니다. 24rem 미만에서는 버튼에 글리프만 남고, 배지는 제목에 자리를 내줍니다. 48rem 미만에서는 사이드바도 사라지며, 이 페이지의 모든 셸과 마찬가지로 shell-toggle이 내비게이션을 dialog-drawer-start로 엽니다.
  • 속성은 한 벌만 존재합니다. 셸에 연결한 ResizeObserver가 보조 영역이 표시되는지 확인하고 하나뿐인 필드 묶음을 옮깁니다. 표시되는 동안에는 보조 영역으로, 표시되지 않는 동안에는 드로어로 옮깁니다. 하나의 상태에 묶인 두 벌이라면 필드마다 id가 두 개 필요하고 변경할 때마다 복사해야 합니다. 한 벌이면 각 레이블, 각 id, 각 값이 제자리에 유지됩니다. 브라우저가 지원하면 moveBefore()로 옮기므로 포커스가 있던 필드가 포커스를 유지하고, 그 밖의 브라우저에서는 append()로 옮긴 뒤 스크립트가 포커스를 되돌립니다. 필드가 닫힌 드로어로 옮겨질 때는 포커스가 Properties 버튼으로 이동합니다.
  • 에디터는 옮기지도 복사하지도 않습니다. 모든 너비에서 메인 영역에 그대로 있으므로 문서, 선택 영역, 실행 기록이 한곳에 있습니다.
  • 내비게이션은 옮기지 않고 반복합니다. 링크에는 상태가 없으므로 드로어에는 별도의 레이블 아래에 같은 목록을 둡니다.

헤더도 같은 필드를 읽습니다. 헤더의 제목은 Title 필드의 값이고, 배지는 Status의 값입니다.

#접근성

  • 랜드마크를 사용합니다. 사이드바에는 <aside> 또는 <nav>, 메인 영역에는 <main>, 헤더에는 <header>를 사용합니다. 각 <nav>에 레이블을 지정합니다. 드로어를 함께 사용하면 탐색 랜드마크가 두 개이므로 레이블을 서로 다르게 지정해야 합니다.
  • 드로어에는 사이드바와 동일한 링크를 같은 순서로 배치합니다. 사이드바가 표시되는 동안에는 토글이 display: none 상태가 되며 탭 이동 순서에서 제외됩니다.
  • 독립적으로 스크롤되는 영역에 포커스를 받을 수 있는 요소가 없다면 해당 영역에 tabindex="0"을 설정하고 레이블을 지정해 키보드로 스크롤할 수 있게 합니다.
  • 고정형 셸에서 이 열은 aria-labelledby로 제목을 이름으로 삼는 <aside>이며, 각 시간은 프로그램이 읽을 수 있는 datetime을 가진 <time>입니다.
  • 작업 공간에서는 두 <aside> 요소 모두에 이름이 있습니다. 사이드바는 aria-label로, 속성은 제목으로 이름을 지정합니다. 문서는 페이지 제목으로 이름을 지정한 textbox이고, 도구 모음은 그 앞에서 탭 이동 순서의 한 지점을 차지하며, 속성은 읽히는 순서대로 소스에서 문서 뒤에 옵니다. 속성을 여는 버튼은 가장 좁은 셸에서 글자가 사라지므로 aria-label에 "Properties"를 지정합니다.
  • 높이에 dvh를 사용하므로 휴대폰의 브라우저 도구 모음이 사이드바 하단을 가리지 않습니다. 사이드바 하단에는 홈 인디케이터를 위한 안전 영역만큼 안쪽 여백도 둡니다.

#클래스

클래스설명
shell프레임은 높이가 뷰포트 이상인 그리드이며, 이름이 shell인 크기 컨테이너입니다. 자체적으로 표시되는 요소는 없습니다.
shell-fixed셸은 뷰포트에 정확히 맞고 각 영역은 독립적으로 스크롤됩니다. 받은편지함, 편집기, 채팅에 사용합니다적용할 클래스는 shell입니다
shell-header셸 상단 전체 너비에 걸치는 헤더입니다. 스크롤 시 제자리에 붙는 열은 셸 상단에서 --shell-header만큼 아래에서 시작합니다.
shell-sidebar시작 쪽 열입니다. sticky로 배치되며 뷰포트에 남은 높이를 채우고 독립적으로 스크롤됩니다. 셸 너비가 48rem 미만이면 레이아웃에서 빠집니다.
shell-main주 영역은 남은 열을 차지하며 그 열의 너비를 넘지 않습니다.
shell-aside끝 쪽에 배치하며 사이드바처럼 스크롤 중에도 제자리에 붙는 열입니다. 셸 너비가 64rem 미만이면 레이아웃에서 빠집니다.
shell-footer셸 하단 전체 너비에 걸치는 푸터로, 열 아래쪽이자 첫 화면에 보이는 영역보다 아래에 배치됩니다.
shell-toggle사이드바가 보이지 않을 때만 표시되는 컨트롤입니다. 같은 탐색 메뉴를 드로어로 여는 버튼이 그 예입니다.

#사용자 지정 속성

속성기본값설명
--shell-sidebar16rem사이드바 너비
--shell-aside14rem보조 영역 너비
--shell-header3.5rem스크롤 시 제자리에 붙는 열 위에 shell-header를 위해 확보하는 공간입니다. navbar 높이에 해당합니다.

#소스

@master/ui/layouts/shell.css
/* * Shell: the frame of an app. A sidebar stays in place while the main region moves. An optional header * runs across the top, an optional aside stands at the end, and an optional footer closes the frame. * * By default the document scrolls. The sidebar sticks under the header and is exactly as tall as the room * left in the viewport, measured in dvh, with a scroll of its own; a sticky navbar, anchor links and the * browser's scroll restoration keep working because nothing replaces the page's scroll. * `shell-fixed` takes the viewport itself: only the regions scroll, for an inbox, an editor or a chat. * * The shell is a size container. Below 48rem of shell the sidebar leaves the layout and `shell-toggle` * appears: put the same navigation in a drawer that the toggle opens. The aside leaves first, below 64rem. * * A shell draws nothing. Its surfaces and lines come from components and utilities. */@layer components.ui {  .shell {    --shell-sidebar: 16rem;    --shell-aside: 14rem;    --shell-header: 3.5rem;    /* The room a header takes at the top; the sticky regions start under it. */    --shell-top: 0px;    /* The columns' row is at least the viewport under the header, so a footer starts below the fold. */    --shell-room: calc(100vh - var(--shell-top));    display: grid;    grid-template-rows: auto minmax(var(--shell-room), 1fr) auto;    grid-template-columns: auto minmax(0, 1fr) auto;    align-items: start;    min-width: 0;    container: shell / inline-size;    @supports (height: 100dvh) {      --shell-room: calc(100dvh - var(--shell-top));    }    &:has(.shell-header) {      --shell-top: var(--shell-header);    }    /* Fixed: the shell is the viewport. Each region scrolls by itself and the page never moves. */    &.shell-fixed {      grid-template-rows: auto minmax(0, 1fr) auto;      align-items: stretch;      height: 100vh;      height: 100dvh;      overflow: hidden;      .shell-sidebar, .shell-aside {        position: static;        height: auto;        max-height: none;      }      /* The main region scrolls by itself here, so its end keeps clear of the home indicator, as the columns' do. */      .shell-main {        min-height: 0;        padding-block-end: env(safe-area-inset-bottom, 0px);        overflow-y: auto;        overscroll-behavior: contain;      }    }  }  /* The header spans the shell. A navbar is already sticky; any other header stays in the flow. */  .shell-header {    grid-row: 1;    grid-column: 1 / -1;    min-width: 0;  }  /*   * The sidebar and the aside: columns that stay while the page scrolls. Each is as tall as the viewport   * under the header and scrolls by itself, so a long navigation never moves the page.   * The foot keeps clear of the home indicator.   */  .shell-sidebar, .shell-aside {    position: sticky;    inset-block-start: var(--shell-top);    grid-row: 2;    display: flex;    flex-direction: column;    min-width: 0;    height: var(--shell-room);    padding-block-end: env(safe-area-inset-bottom, 0px);    overflow-y: auto;    overscroll-behavior: contain;    scrollbar-width: thin;  }  .shell-sidebar {    grid-column: 1;    width: var(--shell-sidebar);    @container shell (inline-size < 48rem) {      display: none;    }  }  .shell-aside {    grid-column: 3;    width: var(--shell-aside);    @container shell (inline-size < 64rem) {      display: none;    }  }  /* The main region takes the column that is left, and never grows past it. */  .shell-main {    grid-row: 2;    grid-column: 2;    align-self: stretch;    min-width: 0;  }  /* The footer spans the shell under the columns. It comes into view after them. */  .shell-footer {    grid-row: 3;    grid-column: 1 / -1;    min-width: 0;  }  /* A control that exists only while the sidebar is away, such as the button that opens it as a drawer. */  .shell-toggle {    @container shell (inline-size >= 48rem) {      display: none;    }  }}