Examples /
App layouts
Whole screens to start from: a dashboard shell, a chat, a mail inbox, a split sign-in page and a settings page.
Dashboard shell
Sidebar, top bar and a content area that scrolls on its own. A container query collapses the sidebar to icons when the shell is narrower than 576px. The narrow defaults sit in the components layer, so the container query always wins.
<div class="container-type-inline-size h-520px br-14px b-1px-solid-slateTheme5 overflow-hidden bgc-slateTheme1">
<div class="d-grid gtc(auto_1fr) h-100%">
<aside class="d-grid grid-template-rows(auto_1fr_auto) g-16px p-12px border-right-1px-solid-slateTheme5 bgc-slateTheme2 @components[w-64px] @container-sm-w-220px">
<span class="d-flex aic g-10px px-6px h-36px fs-15px fw-700 c-slateTheme12"><span class="d-grid place-items-center flex-shrink-0 w-28px h-28px br-8px bgc-accentRA1000 c-white"><svg class="w-16px h-16px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m12 2 10 5-10 5L2 7z"/><path d="m2 17 10 5 10-5M2 12l10 5 10-5"/></svg></span><span class="@components[d-none] @container-sm-d-inline">Acme</span></span>
<nav aria-label="Main" class="d-grid g-2px align-content-start __a[d-flex,aic,g-10px,h-36px,px-12px,br-8px,fs-14px,c-slateTheme11,td-none] __a--hover[bgc-slateTheme4,c-slateTheme12] __a[aria-current=page][bgc-slateTheme1,c-slateTheme12,fw-500,box-shadow(0_1px_2px_rgb(0_0_0_/_0.08))] @components_a_span-d-none @container-sm_a_span-d-inline">
<a href="#" aria-current="page"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 10 9-7 9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg><span>Overview</span></a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 3v18h18"/><path d="m7 15 4-4 3 3 5-6"/></svg><span>Analytics</span></a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="8" r="4"/><path d="M2 21a7 7 0 0 1 14 0M16 3.1a4 4 0 0 1 0 7.8M22 21a7 7 0 0 0-4-6.3"/></svg><span>Customers</span></a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg><span>Projects</span></a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6"/></svg><span>Settings</span></a>
</nav>
<span class="d-grid place-items-center w-36px h-36px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-13px fw-600">AL</span>
</aside>
<div class="d-grid grid-template-rows(auto_1fr) mw-0">
<header class="d-flex aic g-12px h-56px px-20px border-bottom-1px-solid-slateTheme5">
<h1 class="m-0 fs-16px fw-600 c-slateTheme12">Overview</h1>
<label class="ml-auto d-flex aic g-8px w-220px h-34px px-10px br-8px b-1px-solid-slateTheme6 c-slateTheme10"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><input placeholder="Search" aria-label="Search" class="flex-1 mw-0 b-0 bgc-transparent c-slateTheme12 fs-13px font-family-inherit outline-none"></label>
<button aria-label="Notifications" class="d-grid place-items-center w-34px h-34px br-8px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme3"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg></button>
</header>
<main class="overflow-y-auto p-20px d-grid g-16px align-content-start bgc-slateTheme1">
<div class="d-grid g-12px gtc(repeat(auto-fit,minmax(150px,1fr)))">
<div class="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5"><span class="fs-13px c-slateTheme11">Revenue</span><b class="fs-22px fw-600 c-slateTheme12">$48.2k</b></div>
<div class="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5"><span class="fs-13px c-slateTheme11">Orders</span><b class="fs-22px fw-600 c-slateTheme12">1,204</b></div>
<div class="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5"><span class="fs-13px c-slateTheme11">Conversion</span><b class="fs-22px fw-600 c-slateTheme12">3.6%</b></div>
</div>
<div class="h-220px br-12px b-1px-dashed-slateTheme6 d-grid place-items-center fs-14px c-slateTheme10">Your chart here</div>
<div class="h-160px br-12px b-1px-dashed-slateTheme6 d-grid place-items-center fs-14px c-slateTheme10">Your table here</div>
</main>
</div>
</div>
</div>export default function DashboardShell() {
return (
<div className="container-type-inline-size h-520px br-14px b-1px-solid-slateTheme5 overflow-hidden bgc-slateTheme1">
<div className="d-grid gtc(auto_1fr) h-100%">
<aside className="d-grid grid-template-rows(auto_1fr_auto) g-16px p-12px border-right-1px-solid-slateTheme5 bgc-slateTheme2 @components[w-64px] @container-sm-w-220px">
<span className="d-flex aic g-10px px-6px h-36px fs-15px fw-700 c-slateTheme12">
<span className="d-grid place-items-center flex-shrink-0 w-28px h-28px br-8px bgc-accentRA1000 c-white">
<svg className="w-16px h-16px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m12 2 10 5-10 5L2 7z" />
<path d="m2 17 10 5 10-5M2 12l10 5 10-5" />
</svg>
</span>
<span className="@components[d-none] @container-sm-d-inline">Acme</span>
</span>
<nav aria-label="Main" className="d-grid g-2px align-content-start __a[d-flex,aic,g-10px,h-36px,px-12px,br-8px,fs-14px,c-slateTheme11,td-none] __a--hover[bgc-slateTheme4,c-slateTheme12] __a[aria-current=page][bgc-slateTheme1,c-slateTheme12,fw-500,box-shadow(0_1px_2px_rgb(0_0_0_/_0.08))] @components_a_span-d-none @container-sm_a_span-d-inline">
<a href="#" aria-current="page">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m3 10 9-7 9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
</svg>
<span>Overview</span>
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M3 3v18h18" />
<path d="m7 15 4-4 3 3 5-6" />
</svg>
<span>Analytics</span>
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<circle cx="9" cy="8" r="4" />
<path d="M2 21a7 7 0 0 1 14 0M16 3.1a4 4 0 0 1 0 7.8M22 21a7 7 0 0 0-4-6.3" />
</svg>
<span>Customers</span>
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" />
</svg>
<span>Projects</span>
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6" />
</svg>
<span>Settings</span>
</a>
</nav>
<span className="d-grid place-items-center w-36px h-36px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-13px fw-600">AL</span>
</aside>
<div className="d-grid grid-template-rows(auto_1fr) mw-0">
<header className="d-flex aic g-12px h-56px px-20px border-bottom-1px-solid-slateTheme5">
<h1 className="m-0 fs-16px fw-600 c-slateTheme12">Overview</h1>
<label className="ml-auto d-flex aic g-8px w-220px h-34px px-10px br-8px b-1px-solid-slateTheme6 c-slateTheme10">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<circle cx="11" cy="11" r="7" />
<path d="m20 20-3.5-3.5" />
</svg>
<input placeholder="Search" aria-label="Search" className="flex-1 mw-0 b-0 bgc-transparent c-slateTheme12 fs-13px font-family-inherit outline-none" />
</label>
<button aria-label="Notifications" className="d-grid place-items-center w-34px h-34px br-8px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme3">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />
<path d="M10.3 21a1.94 1.94 0 0 0 3.4 0" />
</svg>
</button>
</header>
<main className="overflow-y-auto p-20px d-grid g-16px align-content-start bgc-slateTheme1">
<div className="d-grid g-12px gtc(repeat(auto-fit,minmax(150px,1fr)))">
<div className="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5">
<span className="fs-13px c-slateTheme11">Revenue</span>
<b className="fs-22px fw-600 c-slateTheme12">$48.2k</b>
</div>
<div className="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5">
<span className="fs-13px c-slateTheme11">Orders</span>
<b className="fs-22px fw-600 c-slateTheme12">1,204</b>
</div>
<div className="d-grid g-4px p-14px br-12px b-1px-solid-slateTheme5">
<span className="fs-13px c-slateTheme11">Conversion</span>
<b className="fs-22px fw-600 c-slateTheme12">3.6%</b>
</div>
</div>
<div className="h-220px br-12px b-1px-dashed-slateTheme6 d-grid place-items-center fs-14px c-slateTheme10">Your chart here</div>
<div className="h-160px br-12px b-1px-dashed-slateTheme6 d-grid place-items-center fs-14px c-slateTheme10">Your table here</div>
</main>
</div>
</div>
</div>
);
}Chat
Message bubbles from both sides, a typing indicator and a composer that grows with its text.
<i class="d-none" keyframes-typing="@[0,60,100][o-0.3,translate-0-0] @30-[o-1,translate-0--3px]"></i>
<section class="xw-520px w-100% mx-auto d-grid grid-template-rows(auto_1fr_auto) h-480px br-16px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-hidden">
<header class="d-flex aic g-10px px-16px h-56px border-bottom-1px-solid-slateTheme5">
<span class="position-relative d-grid place-items-center w-34px h-34px br-999px bgc-tealTheme4 c-tealTheme11 fs-13px fw-600">GH<span class="position-absolute bottom-0 r-0 w-10px h-10px br-999px bgc-greenTheme9 b-2px-solid-slateTheme1"></span></span>
<span class="d-grid lh-1.3"><b class="fs-14px fw-600 c-slateTheme12">Grace Hopper</b><span class="fs-12px c-greenTheme11">Online</span></span>
</header>
<ol class="m-0 p-16px list-style-none d-flex fd-column g-8px overflow-y-auto fs-14px lh-1.45">
<li class="as-flex-start xw-75% px-12px py-8px br-16px border-bottom-left-radius-4px bgc-slateTheme3 c-slateTheme12">Did the deploy go through?</li>
<li class="as-flex-end xw-75% px-12px py-8px br-16px border-bottom-right-radius-4px bgc-accentRA1000 c-white">Yes, it's live. Tests passed in 2 minutes.</li>
<li class="as-flex-end xw-75% px-12px py-8px br-16px border-bottom-right-radius-4px bgc-accentRA1000 c-white">I'll share the preview link in the channel.</li>
<li class="as-flex-start xw-75% px-12px py-8px br-16px border-bottom-left-radius-4px bgc-slateTheme3 c-slateTheme12">Perfect, thank you!</li>
<li aria-label="Grace is typing" class="d-flex g-4px w-fit-content px-12px py-12px br-16px border-bottom-left-radius-4px bgc-slateTheme3 __span[w-6px,h-6px,br-999px,bgc-slateTheme10,animation(typing_1.2s_infinite)] __span--nth-child(2)-animation-delay-.15s __span--nth-child(3)-animation-delay-.3s"><span></span><span></span><span></span></li>
</ol>
<form class="d-flex ai-flex-end g-8px p-12px border-top-1px-solid-slateTheme5">
<button type="button" aria-label="Attach file" class="d-grid place-items-center flex-shrink-0 w-38px h-38px br-10px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme3"><svg class="w-18px h-18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21.4 11.1-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5"/></svg></button>
<textarea rows="1" placeholder="Write a message…" aria-label="Message" class="flex-1 mh-38px xh-120px px-12px py-9px br-10px b-1px-solid-slateTheme6 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit lh-1.4 resize-none field-sizing-content box-sizing-border-box outline-none --focus-bc-accentRATheme900 --placeholder-c-slateTheme9"></textarea>
<button aria-label="Send" class="d-grid place-items-center flex-shrink-0 w-38px h-38px br-10px b-0 bgc-accentRA1000 c-white cursor-pointer --hover-bgc-accentRA1100"><svg class="w-18px h-18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m22 2-7 20-4-9-9-4z"/><path d="M22 2 11 13"/></svg></button>
</form>
</section>export default function Chat() {
return (
<>
<i className="d-none" keyframes-typing="@[0,60,100][o-0.3,translate-0-0] @30-[o-1,translate-0--3px]" />
<section className="xw-520px w-100% mx-auto d-grid grid-template-rows(auto_1fr_auto) h-480px br-16px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-hidden">
<header className="d-flex aic g-10px px-16px h-56px border-bottom-1px-solid-slateTheme5">
<span className="position-relative d-grid place-items-center w-34px h-34px br-999px bgc-tealTheme4 c-tealTheme11 fs-13px fw-600">
GH
<span className="position-absolute bottom-0 r-0 w-10px h-10px br-999px bgc-greenTheme9 b-2px-solid-slateTheme1" />
</span>
<span className="d-grid lh-1.3">
<b className="fs-14px fw-600 c-slateTheme12">Grace Hopper</b>
<span className="fs-12px c-greenTheme11">Online</span>
</span>
</header>
<ol className="m-0 p-16px list-style-none d-flex fd-column g-8px overflow-y-auto fs-14px lh-1.45">
<li className="as-flex-start xw-75% px-12px py-8px br-16px border-bottom-left-radius-4px bgc-slateTheme3 c-slateTheme12">Did the deploy go through?</li>
<li className="as-flex-end xw-75% px-12px py-8px br-16px border-bottom-right-radius-4px bgc-accentRA1000 c-white">Yes, it's live. Tests passed in 2 minutes.</li>
<li className="as-flex-end xw-75% px-12px py-8px br-16px border-bottom-right-radius-4px bgc-accentRA1000 c-white">I'll share the preview link in the channel.</li>
<li className="as-flex-start xw-75% px-12px py-8px br-16px border-bottom-left-radius-4px bgc-slateTheme3 c-slateTheme12">Perfect, thank you!</li>
<li aria-label="Grace is typing" className="d-flex g-4px w-fit-content px-12px py-12px br-16px border-bottom-left-radius-4px bgc-slateTheme3 __span[w-6px,h-6px,br-999px,bgc-slateTheme10,animation(typing_1.2s_infinite)] __span--nth-child(2)-animation-delay-.15s __span--nth-child(3)-animation-delay-.3s">
<span />
<span />
<span />
</li>
</ol>
<form className="d-flex ai-flex-end g-8px p-12px border-top-1px-solid-slateTheme5">
<button type="button" aria-label="Attach file" className="d-grid place-items-center flex-shrink-0 w-38px h-38px br-10px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme3">
<svg className="w-18px h-18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m21.4 11.1-9.2 9.2a6 6 0 0 1-8.5-8.5l9.2-9.2a4 4 0 0 1 5.7 5.7l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5" />
</svg>
</button>
<textarea rows="1" placeholder="Write a message…" aria-label="Message" className="flex-1 mh-38px xh-120px px-12px py-9px br-10px b-1px-solid-slateTheme6 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit lh-1.4 resize-none field-sizing-content box-sizing-border-box outline-none --focus-bc-accentRATheme900 --placeholder-c-slateTheme9" />
<button aria-label="Send" className="d-grid place-items-center flex-shrink-0 w-38px h-38px br-10px b-0 bgc-accentRA1000 c-white cursor-pointer --hover-bgc-accentRA1100">
<svg className="w-18px h-18px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m22 2-7 20-4-9-9-4z" />
<path d="M22 2 11 13" />
</svg>
</button>
</form>
</section>
</>
);
}Mail inbox
A message list with unread rows, a selected row, labels and a preview line that ends in an ellipsis.
<div class="br-14px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-hidden">
<header class="d-flex aic g-8px px-16px h-52px border-bottom-1px-solid-slateTheme5">
<h2 class="m-0 fs-15px fw-600 c-slateTheme12">Inbox</h2><span class="fs-13px c-slateTheme10">3 unread</span>
<nav aria-label="Folders" class="ml-auto d-flex g-2px __a[px-10px,py-4px,br-6px,fs-13px,c-slateTheme11,td-none] __a--hover-bgc-slateTheme3 __a[aria-current=page][bgc-slateTheme3,c-slateTheme12,fw-500]"><a href="#" aria-current="page">All</a><a href="#">Unread</a><a href="#">Starred</a></nav>
</header>
<ul class="m-0 p-0 list-style-none __li--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<li><a href="#" class="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px --hover-bgc-slateTheme2 c-slateTheme12"><span class="grid-row-span-2 w-8px h-8px mt-6px br-999px bgc-accentRA1000"></span><b class="fw-700">Stripe</b><span class="fs-12px c-slateTheme10">9:41</span><span class="grid-column(2_/_4) white-space-nowrap overflow-hidden text-overflow-ellipsis">Your payout of $4,210.00 is on its way — expected Friday.</span></a></li>
<li><a href="#" aria-current="true" class="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px bgc-accentRATheme100 box-shadow(inset_3px_0_0_var(--x-bar-color)) --x-bar-color:accentRA1000"><span class="grid-row-span-2 w-8px h-8px mt-6px br-999px bgc-accentRA1000"></span><b class="fw-700 c-slateTheme12">Grace Hopper</b><span class="fs-12px c-slateTheme10">8:15</span><span class="grid-column(2_/_4) white-space-nowrap overflow-hidden text-overflow-ellipsis c-slateTheme12">Re: Launch plan — I moved the review to Thursday so design can join.</span></a></li>
<li><a href="#" class="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px --hover-bgc-slateTheme2"><span class="grid-row-span-2 w-8px h-8px mt-6px"></span><b class="fw-500">GitHub</b><span class="fs-12px c-slateTheme10">Yesterday</span><span class="grid-column(2_/_4) d-flex aic g-8px mw-0"><span class="flex-shrink-0 px-6px br-4px bgc-greenTheme3 c-greenTheme11 fs-11px fw-500">CI</span><span class="white-space-nowrap overflow-hidden text-overflow-ellipsis">All checks have passed on pull request #482.</span></span></a></li>
</ul>
</div>export default function MailInbox() {
return (
<div className="br-14px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-hidden">
<header className="d-flex aic g-8px px-16px h-52px border-bottom-1px-solid-slateTheme5">
<h2 className="m-0 fs-15px fw-600 c-slateTheme12">Inbox</h2>
<span className="fs-13px c-slateTheme10">3 unread</span>
<nav aria-label="Folders" className="ml-auto d-flex g-2px __a[px-10px,py-4px,br-6px,fs-13px,c-slateTheme11,td-none] __a--hover-bgc-slateTheme3 __a[aria-current=page][bgc-slateTheme3,c-slateTheme12,fw-500]">
<a href="#" aria-current="page">All</a>
<a href="#">Unread</a>
<a href="#">Starred</a>
</nav>
</header>
<ul className="m-0 p-0 list-style-none __li--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<li>
<a href="#" className="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px --hover-bgc-slateTheme2 c-slateTheme12">
<span className="grid-row-span-2 w-8px h-8px mt-6px br-999px bgc-accentRA1000" />
<b className="fw-700">Stripe</b>
<span className="fs-12px c-slateTheme10">9:41</span>
<span className="grid-column(2_/_4) white-space-nowrap overflow-hidden text-overflow-ellipsis">Your payout of $4,210.00 is on its way — expected Friday.</span>
</a>
</li>
<li>
<a href="#" aria-current="true" className="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px bgc-accentRATheme100 box-shadow(inset_3px_0_0_var(--x-bar-color)) --x-bar-color:accentRA1000">
<span className="grid-row-span-2 w-8px h-8px mt-6px br-999px bgc-accentRA1000" />
<b className="fw-700 c-slateTheme12">Grace Hopper</b>
<span className="fs-12px c-slateTheme10">8:15</span>
<span className="grid-column(2_/_4) white-space-nowrap overflow-hidden text-overflow-ellipsis c-slateTheme12">
Re: Launch plan — I moved the review to Thursday so design can join.
</span>
</a>
</li>
<li>
<a href="#" className="d-grid gtc(auto_1fr_auto) cg-12px rg-2px px-16px py-12px td-none c-slateTheme11 fs-14px --hover-bgc-slateTheme2">
<span className="grid-row-span-2 w-8px h-8px mt-6px" />
<b className="fw-500">GitHub</b>
<span className="fs-12px c-slateTheme10">Yesterday</span>
<span className="grid-column(2_/_4) d-flex aic g-8px mw-0">
<span className="flex-shrink-0 px-6px br-4px bgc-greenTheme3 c-greenTheme11 fs-11px fw-500">CI</span>
<span className="white-space-nowrap overflow-hidden text-overflow-ellipsis">All checks have passed on pull request #482.</span>
</span>
</a>
</li>
</ul>
</div>
);
}Split sign-up page
Form on one side, a brand panel on the other. The panel hides on narrow screens with a container query.
<div class="container-type-inline-size br-16px b-1px-solid-slateTheme5 overflow-hidden bgc-slateTheme1">
<div class="d-grid @container-sm-gtc-1fr-1fr mh-480px">
<form class="d-grid align-content-center g-14px p-32px">
<h1 class="m-0 fs-24px fw-700 letter-spacing--0.02em c-slateTheme12">Create your account</h1>
<p class="m-0 fs-14px c-slateTheme11">Start your 14-day trial. No card needed.</p>
<label class="d-grid g-6px"><span class="fs-14px fw-500 c-slateTheme12">Work email</span><input type="email" placeholder="you@company.com" class="h-40px px-12px br-8px b-1px-solid-slateTheme7 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit outline-none --focus-bc-accentRATheme900 --placeholder-c-slateTheme9"></label>
<label class="d-grid g-6px"><span class="fs-14px fw-500 c-slateTheme12">Password</span><input type="password" class="h-40px px-12px br-8px b-1px-solid-slateTheme7 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit outline-none --focus-bc-accentRATheme900"></label>
<button class="h-42px br-10px b-0 bgc-accentRA1000 c-white fs-15px fw-500 font-family-inherit cursor-pointer --hover-bgc-accentRA1100">Create account</button>
<p class="m-0 fs-12px lh-1.5 c-slateTheme10">By signing up you agree to the <a href="#" class="c-slateTheme11">Terms</a> and <a href="#" class="c-slateTheme11">Privacy Policy</a>.</p>
</form>
<aside class="@components[d-none] @container-sm-d-grid align-content-end g-16px p-32px c-white background(radial-gradient(120%_80%_at_100%_0%,var(--x-a-color),transparent),linear-gradient(160deg,var(--x-b-color),var(--x-c-color))) --x-a-color:pinkTheme9 --x-b-color:accentRA1000 --x-c-color:accentRA1500">
<blockquote class="m-0 fs-18px lh-1.5 fw-500">“We shipped our redesign in two weeks. The team still talks about it.”</blockquote>
<span class="fs-14px o-0.85">Priya Raman, Frontend lead at Globex</span>
</aside>
</div>
</div>export default function AuthSplit() {
return (
<div className="container-type-inline-size br-16px b-1px-solid-slateTheme5 overflow-hidden bgc-slateTheme1">
<div className="d-grid @container-sm-gtc-1fr-1fr mh-480px">
<form className="d-grid align-content-center g-14px p-32px">
<h1 className="m-0 fs-24px fw-700 letter-spacing--0.02em c-slateTheme12">Create your account</h1>
<p className="m-0 fs-14px c-slateTheme11">Start your 14-day trial. No card needed.</p>
<label className="d-grid g-6px">
<span className="fs-14px fw-500 c-slateTheme12">Work email</span>
<input type="email" placeholder="you@company.com" className="h-40px px-12px br-8px b-1px-solid-slateTheme7 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit outline-none --focus-bc-accentRATheme900 --placeholder-c-slateTheme9" />
</label>
<label className="d-grid g-6px">
<span className="fs-14px fw-500 c-slateTheme12">Password</span>
<input type="password" className="h-40px px-12px br-8px b-1px-solid-slateTheme7 bgc-slateTheme1 c-slateTheme12 fs-14px font-family-inherit outline-none --focus-bc-accentRATheme900" />
</label>
<button className="h-42px br-10px b-0 bgc-accentRA1000 c-white fs-15px fw-500 font-family-inherit cursor-pointer --hover-bgc-accentRA1100">Create account</button>
<p className="m-0 fs-12px lh-1.5 c-slateTheme10">
By signing up you agree to the
<a href="#" className="c-slateTheme11">Terms</a>
and
<a href="#" className="c-slateTheme11">Privacy Policy</a>
.
</p>
</form>
<aside className="@components[d-none] @container-sm-d-grid align-content-end g-16px p-32px c-white background(radial-gradient(120%_80%_at_100%_0%,var(--x-a-color),transparent),linear-gradient(160deg,var(--x-b-color),var(--x-c-color))) --x-a-color:pinkTheme9 --x-b-color:accentRA1000 --x-c-color:accentRA1500">
<blockquote className="m-0 fs-18px lh-1.5 fw-500">
“We shipped our redesign in two weeks. The team still talks about it.”
</blockquote>
<span className="fs-14px o-0.85">Priya Raman, Frontend lead at Globex</span>
</aside>
</div>
</div>
);
}Settings page
Section navigation on the left and grouped rows of settings on the right, each row with a description and a control.
<div class="container-type-inline-size">
<div class="d-grid g-24px @container-sm-gtc(180px_1fr)">
<nav aria-label="Settings" class="@components[d-flex] @container-sm-d-grid align-content-start g-2px overflow-x-auto __a[d-flex,aic,g-10px,h-34px,px-10px,br-8px,fs-14px,c-slateTheme11,td-none,white-space-nowrap] __a--hover[bgc-slateTheme3,c-slateTheme12] __a[aria-current=page][bgc-slateTheme3,c-slateTheme12,fw-500]">
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 21a8 8 0 0 1 16 0"/></svg>Account</a>
<a href="#" aria-current="page"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>Notifications</a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>Security</a>
<a href="#"><svg class="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="8" r="4"/><path d="M2 21a7 7 0 0 1 14 0M16 3.1a4 4 0 0 1 0 7.8M22 21a7 7 0 0 0-4-6.3"/></svg>Members</a>
</nav>
<div class="d-grid g-16px">
<section class="br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<h2 class="m-0 px-16px py-12px border-bottom-1px-solid-slateTheme5 fs-15px fw-600 c-slateTheme12">Email</h2>
<div class="__label[d-flex,aic,jcsb,g-16px,px-16px,py-14px,cursor-pointer] __label--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<label><span class="d-grid g-2px"><b class="fs-14px fw-500 c-slateTheme12">Comments</b><span class="fs-13px c-slateTheme11">When someone replies to you.</span></span><input type="checkbox" role="switch" checked class="appearance-none m-0 flex-shrink-0 w-40px h-24px p-2px br-999px bgc-slateTheme6 cursor-pointer transition(background-color_.2s) --checked-bgc-accentRA1000 --before[cont,d-block,w-20px,h-20px,br-999px,bgc-white,transition(translate_.2s)] --checked--before-translate-16px"></label>
<label><span class="d-grid g-2px"><b class="fs-14px fw-500 c-slateTheme12">Product news</b><span class="fs-13px c-slateTheme11">A short email when we ship something big.</span></span><input type="checkbox" role="switch" class="appearance-none m-0 flex-shrink-0 w-40px h-24px p-2px br-999px bgc-slateTheme6 cursor-pointer transition(background-color_.2s) --checked-bgc-accentRA1000 --before[cont,d-block,w-20px,h-20px,br-999px,bgc-white,transition(translate_.2s)] --checked--before-translate-16px"></label>
</div>
</section>
<section class="br-12px b-1px-solid-redTheme6 bgc-slateTheme1">
<div class="d-flex flex-wrap-wrap aic jcsb g-16px p-16px">
<span class="d-grid g-2px"><b class="fs-14px fw-600 c-slateTheme12">Delete account</b><span class="fs-13px c-slateTheme11">Removes your data. This can't be undone.</span></span>
<button class="h-34px px-14px br-8px b-1px-solid-redTheme7 bgc-transparent c-redTheme11 fs-14px fw-500 font-family-inherit cursor-pointer --hover-bgc-redTheme3">Delete</button>
</div>
</section>
</div>
</div>
</div>export default function SettingsPage() {
return (
<div className="container-type-inline-size">
<div className="d-grid g-24px @container-sm-gtc(180px_1fr)">
<nav aria-label="Settings" className="@components[d-flex] @container-sm-d-grid align-content-start g-2px overflow-x-auto __a[d-flex,aic,g-10px,h-34px,px-10px,br-8px,fs-14px,c-slateTheme11,td-none,white-space-nowrap] __a--hover[bgc-slateTheme3,c-slateTheme12] __a[aria-current=page][bgc-slateTheme3,c-slateTheme12,fw-500]">
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<circle cx="12" cy="8" r="4" />
<path d="M4 21a8 8 0 0 1 16 0" />
</svg>
Account
</a>
<a href="#" aria-current="page">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />
<path d="M10.3 21a1.94 1.94 0 0 0 3.4 0" />
</svg>
Notifications
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<rect x="3" y="11" width="18" height="11" rx="2" />
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
</svg>
Security
</a>
<a href="#">
<svg className="w-16px h-16px flex-shrink-0" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<circle cx="9" cy="8" r="4" />
<path d="M2 21a7 7 0 0 1 14 0M16 3.1a4 4 0 0 1 0 7.8M22 21a7 7 0 0 0-4-6.3" />
</svg>
Members
</a>
</nav>
<div className="d-grid g-16px">
<section className="br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<h2 className="m-0 px-16px py-12px border-bottom-1px-solid-slateTheme5 fs-15px fw-600 c-slateTheme12">Email</h2>
<div className="__label[d-flex,aic,jcsb,g-16px,px-16px,py-14px,cursor-pointer] __label--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<label>
<span className="d-grid g-2px">
<b className="fs-14px fw-500 c-slateTheme12">Comments</b>
<span className="fs-13px c-slateTheme11">When someone replies to you.</span>
</span>
<input type="checkbox" role="switch" defaultChecked className="appearance-none m-0 flex-shrink-0 w-40px h-24px p-2px br-999px bgc-slateTheme6 cursor-pointer transition(background-color_.2s) --checked-bgc-accentRA1000 --before[cont,d-block,w-20px,h-20px,br-999px,bgc-white,transition(translate_.2s)] --checked--before-translate-16px" />
</label>
<label>
<span className="d-grid g-2px">
<b className="fs-14px fw-500 c-slateTheme12">Product news</b>
<span className="fs-13px c-slateTheme11">A short email when we ship something big.</span>
</span>
<input type="checkbox" role="switch" className="appearance-none m-0 flex-shrink-0 w-40px h-24px p-2px br-999px bgc-slateTheme6 cursor-pointer transition(background-color_.2s) --checked-bgc-accentRA1000 --before[cont,d-block,w-20px,h-20px,br-999px,bgc-white,transition(translate_.2s)] --checked--before-translate-16px" />
</label>
</div>
</section>
<section className="br-12px b-1px-solid-redTheme6 bgc-slateTheme1">
<div className="d-flex flex-wrap-wrap aic jcsb g-16px p-16px">
<span className="d-grid g-2px">
<b className="fs-14px fw-600 c-slateTheme12">Delete account</b>
<span className="fs-13px c-slateTheme11">Removes your data. This can't be undone.</span>
</span>
<button className="h-34px px-14px br-8px b-1px-solid-redTheme7 bgc-transparent c-redTheme11 fs-14px fw-500 font-family-inherit cursor-pointer --hover-bgc-redTheme3">Delete</button>
</div>
</section>
</div>
</div>
</div>
);
}