Examples /
Data display
Stat cards, tables, lists, activity feeds, description lists, progress, charts made from CSS, calendars and kanban columns.
Stat cards
A responsive grid of metrics with a trend. auto-fit and minmax() reflow the cards without breakpoints.
<div class="d-grid g-12px gtc(repeat(auto-fit,minmax(180px,1fr)))">
<div class="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span class="fs-13px c-slateTheme11">Revenue</span>
<span class="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">$48,290</span>
<span class="d-inline-flex aic g-4px fs-13px c-greenTheme11"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m22 7-8.5 8.5-5-5L2 17"/><path d="M16 7h6v6"/></svg>12.4% <span class="c-slateTheme10">vs last month</span></span>
</div>
<div class="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span class="fs-13px c-slateTheme11">Active users</span>
<span class="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">2,318</span>
<span class="d-inline-flex aic g-4px fs-13px c-greenTheme11"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m22 7-8.5 8.5-5-5L2 17"/><path d="M16 7h6v6"/></svg>4.1% <span class="c-slateTheme10">vs last month</span></span>
</div>
<div class="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span class="fs-13px c-slateTheme11">Churn</span>
<span class="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">1.8%</span>
<span class="d-inline-flex aic g-4px fs-13px c-redTheme11"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m22 17-8.5-8.5-5 5L2 7"/><path d="M16 17h6v-6"/></svg>0.3% <span class="c-slateTheme10">vs last month</span></span>
</div>
</div>export default function StatCards() {
return (
<div className="d-grid g-12px gtc(repeat(auto-fit,minmax(180px,1fr)))">
<div className="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span className="fs-13px c-slateTheme11">Revenue</span>
<span className="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">$48,290</span>
<span className="d-inline-flex aic g-4px fs-13px c-greenTheme11">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m22 7-8.5 8.5-5-5L2 17" />
<path d="M16 7h6v6" />
</svg>
12.4%
<span className="c-slateTheme10">vs last month</span>
</span>
</div>
<div className="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span className="fs-13px c-slateTheme11">Active users</span>
<span className="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">2,318</span>
<span className="d-inline-flex aic g-4px fs-13px c-greenTheme11">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m22 7-8.5 8.5-5-5L2 17" />
<path d="M16 7h6v6" />
</svg>
4.1%
<span className="c-slateTheme10">vs last month</span>
</span>
</div>
<div className="d-grid g-6px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<span className="fs-13px c-slateTheme11">Churn</span>
<span className="fs-26px fw-600 c-slateTheme12 font-variant-numeric(tabular-nums) letter-spacing--0.02em">1.8%</span>
<span className="d-inline-flex aic g-4px fs-13px c-redTheme11">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="m22 17-8.5-8.5-5 5L2 7" />
<path d="M16 17h6v-6" />
</svg>
0.3%
<span className="c-slateTheme10">vs last month</span>
</span>
</div>
</div>
);
}Data table
A table with a header, status badges, right-aligned numbers, row hover and a horizontal scroll on narrow screens.
<div class="br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-x-auto">
<table class="w-100% border-collapse-collapse fs-14px white-space-nowrap _th[px-16px,py-10px,ta-start,fs-12px,fw-500,c-slateTheme11,bgc-slateTheme2,border-bottom-1px-solid-slateTheme5] _td[px-16px,py-12px,border-bottom-1px-solid-slateTheme4,c-slateTheme12] _tbody__tr--last-child__td-border-bottom-0 _tbody__tr--hover-bgc-slateTheme2 _th--last-child-ta-right _td--last-child-ta-right">
<thead>
<tr><th>Customer</th><th>Status</th><th>Plan</th><th>Amount</th></tr>
</thead>
<tbody>
<tr>
<td><span class="d-flex aic g-10px"><span class="d-grid place-items-center w-28px h-28px br-999px bgc-blueTheme4 c-blueTheme11 fs-12px fw-600">OK</span><span class="d-grid"><b class="fw-500">Olivia Kim</b><span class="fs-13px c-slateTheme10">olivia@kim.dev</span></span></span></td>
<td><span class="d-inline-flex px-8px py-2px br-999px bgc-greenTheme3 c-greenTheme11 fs-12px fw-500">Paid</span></td>
<td class="c-slateTheme11">Pro</td>
<td class="font-variant-numeric(tabular-nums)">$290.00</td>
</tr>
<tr>
<td><span class="d-flex aic g-10px"><span class="d-grid place-items-center w-28px h-28px br-999px bgc-orangeTheme4 c-orangeTheme11 fs-12px fw-600">RS</span><span class="d-grid"><b class="fw-500">Ravi Shah</b><span class="fs-13px c-slateTheme10">ravi@shah.io</span></span></span></td>
<td><span class="d-inline-flex px-8px py-2px br-999px bgc-amberTheme3 c-amberTheme11 fs-12px fw-500">Pending</span></td>
<td class="c-slateTheme11">Team</td>
<td class="font-variant-numeric(tabular-nums)">$1,180.00</td>
</tr>
<tr>
<td><span class="d-flex aic g-10px"><span class="d-grid place-items-center w-28px h-28px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-12px fw-600">ML</span><span class="d-grid"><b class="fw-500">Mia Lopez</b><span class="fs-13px c-slateTheme10">mia@lopez.co</span></span></span></td>
<td><span class="d-inline-flex px-8px py-2px br-999px bgc-redTheme3 c-redTheme11 fs-12px fw-500">Failed</span></td>
<td class="c-slateTheme11">Starter</td>
<td class="font-variant-numeric(tabular-nums)">$49.00</td>
</tr>
</tbody>
</table>
</div>export default function DataTable() {
return (
<div className="br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 overflow-x-auto">
<table className="w-100% border-collapse-collapse fs-14px white-space-nowrap _th[px-16px,py-10px,ta-start,fs-12px,fw-500,c-slateTheme11,bgc-slateTheme2,border-bottom-1px-solid-slateTheme5] _td[px-16px,py-12px,border-bottom-1px-solid-slateTheme4,c-slateTheme12] _tbody__tr--last-child__td-border-bottom-0 _tbody__tr--hover-bgc-slateTheme2 _th--last-child-ta-right _td--last-child-ta-right">
<thead>
<tr>
<th>Customer</th>
<th>Status</th>
<th>Plan</th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<span className="d-flex aic g-10px">
<span className="d-grid place-items-center w-28px h-28px br-999px bgc-blueTheme4 c-blueTheme11 fs-12px fw-600">OK</span>
<span className="d-grid">
<b className="fw-500">Olivia Kim</b>
<span className="fs-13px c-slateTheme10">olivia@kim.dev</span>
</span>
</span>
</td>
<td>
<span className="d-inline-flex px-8px py-2px br-999px bgc-greenTheme3 c-greenTheme11 fs-12px fw-500">Paid</span>
</td>
<td className="c-slateTheme11">Pro</td>
<td className="font-variant-numeric(tabular-nums)">$290.00</td>
</tr>
<tr>
<td>
<span className="d-flex aic g-10px">
<span className="d-grid place-items-center w-28px h-28px br-999px bgc-orangeTheme4 c-orangeTheme11 fs-12px fw-600">RS</span>
<span className="d-grid">
<b className="fw-500">Ravi Shah</b>
<span className="fs-13px c-slateTheme10">ravi@shah.io</span>
</span>
</span>
</td>
<td>
<span className="d-inline-flex px-8px py-2px br-999px bgc-amberTheme3 c-amberTheme11 fs-12px fw-500">Pending</span>
</td>
<td className="c-slateTheme11">Team</td>
<td className="font-variant-numeric(tabular-nums)">$1,180.00</td>
</tr>
<tr>
<td>
<span className="d-flex aic g-10px">
<span className="d-grid place-items-center w-28px h-28px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-12px fw-600">ML</span>
<span className="d-grid">
<b className="fw-500">Mia Lopez</b>
<span className="fs-13px c-slateTheme10">mia@lopez.co</span>
</span>
</span>
</td>
<td>
<span className="d-inline-flex px-8px py-2px br-999px bgc-redTheme3 c-redTheme11 fs-12px fw-500">Failed</span>
</td>
<td className="c-slateTheme11">Starter</td>
<td className="font-variant-numeric(tabular-nums)">$49.00</td>
</tr>
</tbody>
</table>
</div>
);
}List with actions
A stacked list of people with a role and an action. Dividers come from the list, not the items.
<ul class="w-100% xw-480px m-0 p-0 list-style-none br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 __li--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<li class="d-flex aic g-12px px-16px py-12px">
<span class="d-grid place-items-center w-36px h-36px br-999px bgc-violetTheme4 c-violetTheme11 fs-13px fw-600">AL</span>
<span class="d-grid flex-1 mw-0"><b class="fs-14px fw-500 c-slateTheme12">Ada Lovelace</b><span class="fs-13px c-slateTheme10">Owner</span></span>
<button class="h-30px px-12px br-8px b-1px-solid-slateTheme7 bgc-transparent c-slateTheme12 fs-13px font-family-inherit cursor-pointer --hover-bgc-slateTheme3">Manage</button>
</li>
<li class="d-flex aic g-12px px-16px py-12px">
<span class="d-grid place-items-center w-36px h-36px br-999px bgc-tealTheme4 c-tealTheme11 fs-13px fw-600">GH</span>
<span class="d-grid flex-1 mw-0"><b class="fs-14px fw-500 c-slateTheme12">Grace Hopper</b><span class="fs-13px c-slateTheme10">Admin</span></span>
<button class="h-30px px-12px br-8px b-1px-solid-slateTheme7 bgc-transparent c-slateTheme12 fs-13px font-family-inherit cursor-pointer --hover-bgc-slateTheme3">Manage</button>
</li>
<li class="d-flex aic g-12px px-16px py-12px">
<span class="d-grid place-items-center w-36px h-36px br-999px bgc-slateTheme4 c-slateTheme11 fs-13px fw-600">?</span>
<span class="d-grid flex-1 mw-0"><b class="fs-14px fw-500 c-slateTheme12">alan@turing.org</b><span class="fs-13px c-slateTheme10">Invited · expires in 6 days</span></span>
<button class="h-30px px-12px br-8px b-0 bgc-transparent c-accentRATheme1100 fs-13px fw-500 font-family-inherit cursor-pointer --hover-bgc-accentRATheme100">Resend</button>
</li>
</ul>export default function UserList() {
return (
<ul className="w-100% xw-480px m-0 p-0 list-style-none br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 __li--not(--last-child)-border-bottom-1px-solid-slateTheme4">
<li className="d-flex aic g-12px px-16px py-12px">
<span className="d-grid place-items-center w-36px h-36px br-999px bgc-violetTheme4 c-violetTheme11 fs-13px fw-600">AL</span>
<span className="d-grid flex-1 mw-0">
<b className="fs-14px fw-500 c-slateTheme12">Ada Lovelace</b>
<span className="fs-13px c-slateTheme10">Owner</span>
</span>
<button className="h-30px px-12px br-8px b-1px-solid-slateTheme7 bgc-transparent c-slateTheme12 fs-13px font-family-inherit cursor-pointer --hover-bgc-slateTheme3">Manage</button>
</li>
<li className="d-flex aic g-12px px-16px py-12px">
<span className="d-grid place-items-center w-36px h-36px br-999px bgc-tealTheme4 c-tealTheme11 fs-13px fw-600">GH</span>
<span className="d-grid flex-1 mw-0">
<b className="fs-14px fw-500 c-slateTheme12">Grace Hopper</b>
<span className="fs-13px c-slateTheme10">Admin</span>
</span>
<button className="h-30px px-12px br-8px b-1px-solid-slateTheme7 bgc-transparent c-slateTheme12 fs-13px font-family-inherit cursor-pointer --hover-bgc-slateTheme3">Manage</button>
</li>
<li className="d-flex aic g-12px px-16px py-12px">
<span className="d-grid place-items-center w-36px h-36px br-999px bgc-slateTheme4 c-slateTheme11 fs-13px fw-600">?</span>
<span className="d-grid flex-1 mw-0">
<b className="fs-14px fw-500 c-slateTheme12">alan@turing.org</b>
<span className="fs-13px c-slateTheme10">Invited · expires in 6 days</span>
</span>
<button className="h-30px px-12px br-8px b-0 bgc-transparent c-accentRATheme1100 fs-13px fw-500 font-family-inherit cursor-pointer --hover-bgc-accentRATheme100">Resend</button>
</li>
</ul>
);
}Activity feed
A timeline: each item draws the connecting line with ::before, and the last one leaves it out.
<ol class="w-100% xw-440px m-0 p-0 list-style-none">
<li class="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span class="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-greenTheme3 c-greenTheme11"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg></span>
<p class="m-0 pt-6px fs-14px c-slateTheme11"><b class="fw-500 c-slateTheme12">Ada</b> deployed <b class="fw-500 c-slateTheme12">main</b> to production <span class="d-block fs-12px c-slateTheme10">4 min ago</span></p>
</li>
<li class="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span class="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-blueTheme3 c-blueTheme11"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg></span>
<p class="m-0 pt-6px fs-14px c-slateTheme11"><b class="fw-500 c-slateTheme12">Grace</b> commented on <b class="fw-500 c-slateTheme12">Login page</b> <span class="d-block fs-12px c-slateTheme10">1 hour ago</span></p>
</li>
<li class="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span class="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-violetTheme3 c-violetTheme11"><svg class="w-14px h-14px" 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></span>
<p class="m-0 pt-6px fs-14px c-slateTheme11"><b class="fw-500 c-slateTheme12">Alan</b> joined the team <span class="d-block fs-12px c-slateTheme10">Yesterday</span></p>
</li>
</ol>export default function ActivityFeed() {
return (
<ol className="w-100% xw-440px m-0 p-0 list-style-none">
<li className="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span className="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-greenTheme3 c-greenTheme11">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M20 6 9 17l-5-5" />
</svg>
</span>
<p className="m-0 pt-6px fs-14px c-slateTheme11">
<b className="fw-500 c-slateTheme12">Ada</b>
deployed
<b className="fw-500 c-slateTheme12">main</b>
to production
<span className="d-block fs-12px c-slateTheme10">4 min ago</span>
</p>
</li>
<li className="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span className="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-blueTheme3 c-blueTheme11">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
</svg>
</span>
<p className="m-0 pt-6px fs-14px c-slateTheme11">
<b className="fw-500 c-slateTheme12">Grace</b>
commented on
<b className="fw-500 c-slateTheme12">Login page</b>
<span className="d-block fs-12px c-slateTheme10">1 hour ago</span>
</p>
</li>
<li className="position-relative d-flex g-12px pb-20px --not(--last-child)--before[cont,position-absolute,l-15px,t-32px,bottom-0,w-2px,bgc-slateTheme5]">
<span className="d-grid place-items-center flex-shrink-0 w-32px h-32px br-999px bgc-violetTheme3 c-violetTheme11">
<svg className="w-14px h-14px" 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>
</span>
<p className="m-0 pt-6px fs-14px c-slateTheme11">
<b className="fw-500 c-slateTheme12">Alan</b>
joined the team
<span className="d-block fs-12px c-slateTheme10">Yesterday</span>
</p>
</li>
</ol>
);
}Description list
Label and value pairs, two columns from 640px. A dl is the right element for this.
<dl class="xw-600px w-100% mx-auto m-0 br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 __div[d-grid,g-4px,px-16px,py-12px] __div--not(--last-child)-border-bottom-1px-solid-slateTheme4 @sm__div-gtc(180px_1fr) _dt[fs-13px,c-slateTheme11] _dd[m-0,fs-14px,c-slateTheme12]">
<div><dt>Full name</dt><dd>Ada Lovelace</dd></div>
<div><dt>Email</dt><dd>ada@analytical.engine</dd></div>
<div><dt>Plan</dt><dd>Pro, billed yearly</dd></div>
<div><dt>Attachments</dt><dd class="d-flex aic g-8px"><svg class="w-14px h-14px c-slateTheme10" 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>notes-on-the-engine.pdf <a href="#" class="ml-auto c-accentRATheme1100 td-none fs-13px fw-500">Download</a></dd></div>
</dl>export default function DescriptionList() {
return (
<dl className="xw-600px w-100% mx-auto m-0 br-12px b-1px-solid-slateTheme5 bgc-slateTheme1 __div[d-grid,g-4px,px-16px,py-12px] __div--not(--last-child)-border-bottom-1px-solid-slateTheme4 @sm__div-gtc(180px_1fr) _dt[fs-13px,c-slateTheme11] _dd[m-0,fs-14px,c-slateTheme12]">
<div>
<dt>Full name</dt>
<dd>Ada Lovelace</dd>
</div>
<div>
<dt>Email</dt>
<dd>ada@analytical.engine</dd>
</div>
<div>
<dt>Plan</dt>
<dd>Pro, billed yearly</dd>
</div>
<div>
<dt>Attachments</dt>
<dd className="d-flex aic g-8px">
<svg className="w-14px h-14px c-slateTheme10" 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>
notes-on-the-engine.pdf
<a href="#" className="ml-auto c-accentRATheme1100 td-none fs-13px fw-500">Download</a>
</dd>
</div>
</dl>
);
}Progress
Bars with a label and value, and a ring made from a conic gradient with a mask. The ring’s value is one custom property.
<div class="d-flex flex-wrap-wrap aic g-40px">
<div class="w-280px d-grid g-16px">
<div class="d-grid g-6px"><span class="d-flex jcsb fs-13px"><span class="c-slateTheme12 fw-500">Storage</span><span class="c-slateTheme11">72%</span></span><span class="h-8px br-999px bgc-slateTheme4 overflow-hidden"><span class="d-block w-72% h-100% br-999px bgc-accentRA1000"></span></span></div>
<div class="d-grid g-6px"><span class="d-flex jcsb fs-13px"><span class="c-slateTheme12 fw-500">Bandwidth</span><span class="c-slateTheme11">38%</span></span><span class="h-8px br-999px bgc-slateTheme4 overflow-hidden"><span class="d-block w-38% h-100% br-999px bgc-greenTheme9"></span></span></div>
<div class="d-grid g-6px"><span class="d-flex jcsb fs-13px"><span class="c-slateTheme12 fw-500">API calls</span><span class="c-redTheme11">94%</span></span><span class="h-8px br-999px bgc-slateTheme4 overflow-hidden"><span class="d-block w-94% h-100% br-999px bgc-redTheme9"></span></span></div>
</div>
<div class="position-relative d-grid place-items-center w-112px h-112px --x-value:68">
<span class="position-absolute inset-0 br-999px background(conic-gradient(var(--x-ring-color)_calc(var(--x-value)_*_1%),var(--x-track-color)_0)) mask(radial-gradient(farthest-side,transparent_calc(100%_-_10px),black_calc(100%_-_9px))) --x-ring-color:accentRA1000 --x-track-color:slateTheme4"></span>
<span class="d-grid ta-center lh-1.2"><b class="fs-22px fw-600 c-slateTheme12">68%</b><span class="fs-12px c-slateTheme11">complete</span></span>
</div>
</div>export default function Progress() {
return (
<div className="d-flex flex-wrap-wrap aic g-40px">
<div className="w-280px d-grid g-16px">
<div className="d-grid g-6px">
<span className="d-flex jcsb fs-13px">
<span className="c-slateTheme12 fw-500">Storage</span>
<span className="c-slateTheme11">72%</span>
</span>
<span className="h-8px br-999px bgc-slateTheme4 overflow-hidden">
<span className="d-block w-72% h-100% br-999px bgc-accentRA1000" />
</span>
</div>
<div className="d-grid g-6px">
<span className="d-flex jcsb fs-13px">
<span className="c-slateTheme12 fw-500">Bandwidth</span>
<span className="c-slateTheme11">38%</span>
</span>
<span className="h-8px br-999px bgc-slateTheme4 overflow-hidden">
<span className="d-block w-38% h-100% br-999px bgc-greenTheme9" />
</span>
</div>
<div className="d-grid g-6px">
<span className="d-flex jcsb fs-13px">
<span className="c-slateTheme12 fw-500">API calls</span>
<span className="c-redTheme11">94%</span>
</span>
<span className="h-8px br-999px bgc-slateTheme4 overflow-hidden">
<span className="d-block w-94% h-100% br-999px bgc-redTheme9" />
</span>
</div>
</div>
<div className="position-relative d-grid place-items-center w-112px h-112px --x-value:68">
<span className="position-absolute inset-0 br-999px background(conic-gradient(var(--x-ring-color)_calc(var(--x-value)_*_1%),var(--x-track-color)_0)) mask(radial-gradient(farthest-side,transparent_calc(100%_-_10px),black_calc(100%_-_9px))) --x-ring-color:accentRA1000 --x-track-color:slateTheme4" />
<span className="d-grid ta-center lh-1.2">
<b className="fs-22px fw-600 c-slateTheme12">68%</b>
<span className="fs-12px c-slateTheme11">complete</span>
</span>
</div>
</div>
);
}Bar chart
A small chart with no library: each bar’s height is a custom property, and the value shows on hover.
<figure class="m-0 w-100% xw-480px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<figcaption class="d-flex jcsb aic mb-16px"><b class="fs-14px fw-600 c-slateTheme12">Weekly signups</b><span class="fs-13px c-slateTheme10">Last 7 days</span></figcaption>
<div class="d-flex ai-flex-end g-10px h-160px border-bottom-1px-solid-slateTheme5 __span[position-relative,flex-1,h(calc(var(--x-v)_*_1%)),br-6px-6px-0-0,bgc-accentRATheme300,transition(background-color_.15s)] __span--hover-bgc-accentRA1000 __span--after[content(attr(data-v)),position-absolute,bottom-100%,l-0,r-0,mb-4px,ta-center,fs-11px,c-slateTheme11,o-0] __span--hover--after-o-1">
<span class="--x-v:42" data-v="84"></span>
<span class="--x-v:58" data-v="116"></span>
<span class="--x-v:35" data-v="70"></span>
<span class="--x-v:76" data-v="152"></span>
<span class="--x-v:64" data-v="128"></span>
<span class="--x-v:90" data-v="180"></span>
<span class="--x-v:52" data-v="104"></span>
</div>
<div class="d-flex g-10px mt-8px __span[flex-1,ta-center,fs-12px,c-slateTheme10]"><span>Mon</span><span>Tue</span><span>Wed</span><span>Thu</span><span>Fri</span><span>Sat</span><span>Sun</span></div>
</figure>export default function BarChart() {
return (
<figure className="m-0 w-100% xw-480px p-16px br-12px b-1px-solid-slateTheme5 bgc-slateTheme1">
<figcaption className="d-flex jcsb aic mb-16px">
<b className="fs-14px fw-600 c-slateTheme12">Weekly signups</b>
<span className="fs-13px c-slateTheme10">Last 7 days</span>
</figcaption>
<div className="d-flex ai-flex-end g-10px h-160px border-bottom-1px-solid-slateTheme5 __span[position-relative,flex-1,h(calc(var(--x-v)_*_1%)),br-6px-6px-0-0,bgc-accentRATheme300,transition(background-color_.15s)] __span--hover-bgc-accentRA1000 __span--after[content(attr(data-v)),position-absolute,bottom-100%,l-0,r-0,mb-4px,ta-center,fs-11px,c-slateTheme11,o-0] __span--hover--after-o-1">
<span className="--x-v:42" data-v="84" />
<span className="--x-v:58" data-v="116" />
<span className="--x-v:35" data-v="70" />
<span className="--x-v:76" data-v="152" />
<span className="--x-v:64" data-v="128" />
<span className="--x-v:90" data-v="180" />
<span className="--x-v:52" data-v="104" />
</div>
<div className="d-flex g-10px mt-8px __span[flex-1,ta-center,fs-12px,c-slateTheme10]">
<span>Mon</span>
<span>Tue</span>
<span>Wed</span>
<span>Thu</span>
<span>Fri</span>
<span>Sat</span>
<span>Sun</span>
</div>
</figure>
);
}Calendar month
A seven-column grid with today, a selected day and days from the next month. Plug in your own dates.
<div class="w-288px p-16px br-14px b-1px-solid-slateTheme5 bgc-slateTheme1">
<div class="d-flex aic jcsb mb-12px">
<button aria-label="Previous month" class="d-grid place-items-center w-28px h-28px br-6px 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="m15 18-6-6 6-6"/></svg></button>
<b class="fs-14px fw-600 c-slateTheme12">November 2026</b>
<button aria-label="Next month" class="d-grid place-items-center w-28px h-28px br-6px 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="m9 18 6-6-6-6"/></svg></button>
</div>
<div class="d-grid gtc(repeat(7,1fr)) g-2px ta-center fs-13px __span[h-32px,d-grid,place-items-center,br-8px] __button[h-32px,br-8px,b-0,bgc-transparent,c-slateTheme12,fs-13px,font-family-inherit,cursor-pointer,font-variant-numeric(tabular-nums)] __button--hover-bgc-slateTheme3 __button[aria-current=date][fw-700,c-accentRATheme1100] __button[aria-pressed=true][bgc-accentRA1000,c-white] __button--disabled[c-slateTheme9,cursor-default,bgc-transparent]">
<span class="c-slateTheme10 fs-12px">Mo</span><span class="c-slateTheme10 fs-12px">Tu</span><span class="c-slateTheme10 fs-12px">We</span><span class="c-slateTheme10 fs-12px">Th</span><span class="c-slateTheme10 fs-12px">Fr</span><span class="c-slateTheme10 fs-12px">Sa</span><span class="c-slateTheme10 fs-12px">Su</span>
<span></span><span></span><span></span><span></span><span></span><span></span>
<button>1</button><button>2</button><button>3</button><button>4</button><button>5</button><button>6</button><button>7</button><button>8</button>
<button>9</button><button>10</button><button>11</button><button>12</button><button>13</button><button>14</button><button>15</button>
<button>16</button><button>17</button><button>18</button><button>19</button><button>20</button><button>21</button><button>22</button>
<button aria-current="date">23</button><button>24</button><button aria-pressed="true">25</button><button>26</button><button>27</button><button>28</button><button>29</button>
<button>30</button><button disabled>1</button><button disabled>2</button><button disabled>3</button><button disabled>4</button><button disabled>5</button><button disabled>6</button>
</div>
</div>export default function Calendar() {
return (
<div className="w-288px p-16px br-14px b-1px-solid-slateTheme5 bgc-slateTheme1">
<div className="d-flex aic jcsb mb-12px">
<button aria-label="Previous month" className="d-grid place-items-center w-28px h-28px br-6px 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="m15 18-6-6 6-6" />
</svg>
</button>
<b className="fs-14px fw-600 c-slateTheme12">November 2026</b>
<button aria-label="Next month" className="d-grid place-items-center w-28px h-28px br-6px 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="m9 18 6-6-6-6" />
</svg>
</button>
</div>
<div className="d-grid gtc(repeat(7,1fr)) g-2px ta-center fs-13px __span[h-32px,d-grid,place-items-center,br-8px] __button[h-32px,br-8px,b-0,bgc-transparent,c-slateTheme12,fs-13px,font-family-inherit,cursor-pointer,font-variant-numeric(tabular-nums)] __button--hover-bgc-slateTheme3 __button[aria-current=date][fw-700,c-accentRATheme1100] __button[aria-pressed=true][bgc-accentRA1000,c-white] __button--disabled[c-slateTheme9,cursor-default,bgc-transparent]">
<span className="c-slateTheme10 fs-12px">Mo</span>
<span className="c-slateTheme10 fs-12px">Tu</span>
<span className="c-slateTheme10 fs-12px">We</span>
<span className="c-slateTheme10 fs-12px">Th</span>
<span className="c-slateTheme10 fs-12px">Fr</span>
<span className="c-slateTheme10 fs-12px">Sa</span>
<span className="c-slateTheme10 fs-12px">Su</span>
<span />
<span />
<span />
<span />
<span />
<span />
<button>1</button>
<button>2</button>
<button>3</button>
<button>4</button>
<button>5</button>
<button>6</button>
<button>7</button>
<button>8</button>
<button>9</button>
<button>10</button>
<button>11</button>
<button>12</button>
<button>13</button>
<button>14</button>
<button>15</button>
<button>16</button>
<button>17</button>
<button>18</button>
<button>19</button>
<button>20</button>
<button>21</button>
<button>22</button>
<button aria-current="date">23</button>
<button>24</button>
<button aria-pressed="true">25</button>
<button>26</button>
<button>27</button>
<button>28</button>
<button>29</button>
<button>30</button>
<button disabled>1</button>
<button disabled>2</button>
<button disabled>3</button>
<button disabled>4</button>
<button disabled>5</button>
<button disabled>6</button>
</div>
</div>
);
}Kanban column
A board column with cards, labels, an assignee and a due date.
<section class="w-300px d-grid g-10px p-10px br-14px bgc-slateTheme3">
<header class="d-flex aic g-8px px-6px pt-4px"><span class="w-8px h-8px br-999px bgc-amberTheme9"></span><b class="fs-14px fw-600 c-slateTheme12">In progress</b><span class="fs-13px c-slateTheme10">3</span><button aria-label="Add card" class="ml-auto d-grid place-items-center w-26px h-26px br-6px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme5"><svg class="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button></header>
<article class="d-grid g-10px p-12px br-10px bgc-slateTheme1 box-shadow(0_1px_2px_rgb(0_0_0_/_0.08)) cursor-grab">
<div class="d-flex g-6px"><span class="px-6px py-1px br-4px bgc-violetTheme3 c-violetTheme11 fs-11px fw-500">Design</span><span class="px-6px py-1px br-4px bgc-redTheme3 c-redTheme11 fs-11px fw-500">Urgent</span></div>
<p class="m-0 fs-14px fw-500 c-slateTheme12">New onboarding flow</p>
<div class="d-flex aic jcsb fs-12px c-slateTheme10"><span class="d-inline-flex aic g-4px"><svg class="w-13px h-13px" 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="4" width="18" height="18" rx="2"/><path d="M16 2v4M8 2v4M3 10h18"/></svg>Nov 28</span><span class="d-grid place-items-center w-22px h-22px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-10px fw-600">AL</span></div>
</article>
<article class="d-grid g-10px p-12px br-10px bgc-slateTheme1 box-shadow(0_1px_2px_rgb(0_0_0_/_0.08)) cursor-grab">
<div class="d-flex g-6px"><span class="px-6px py-1px br-4px bgc-blueTheme3 c-blueTheme11 fs-11px fw-500">Backend</span></div>
<p class="m-0 fs-14px fw-500 c-slateTheme12">Rate limits for the public API</p>
<div class="d-flex aic jcsb fs-12px c-slateTheme10"><span class="d-inline-flex aic g-4px"><svg class="w-13px h-13px" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>4</span><span class="d-grid place-items-center w-22px h-22px br-999px bgc-tealTheme4 c-tealTheme11 fs-10px fw-600">GH</span></div>
</article>
</section>export default function Kanban() {
return (
<section className="w-300px d-grid g-10px p-10px br-14px bgc-slateTheme3">
<header className="d-flex aic g-8px px-6px pt-4px">
<span className="w-8px h-8px br-999px bgc-amberTheme9" />
<b className="fs-14px fw-600 c-slateTheme12">In progress</b>
<span className="fs-13px c-slateTheme10">3</span>
<button aria-label="Add card" className="ml-auto d-grid place-items-center w-26px h-26px br-6px b-0 bgc-transparent c-slateTheme11 cursor-pointer --hover-bgc-slateTheme5">
<svg className="w-14px h-14px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M12 5v14M5 12h14" />
</svg>
</button>
</header>
<article className="d-grid g-10px p-12px br-10px bgc-slateTheme1 box-shadow(0_1px_2px_rgb(0_0_0_/_0.08)) cursor-grab">
<div className="d-flex g-6px">
<span className="px-6px py-1px br-4px bgc-violetTheme3 c-violetTheme11 fs-11px fw-500">Design</span>
<span className="px-6px py-1px br-4px bgc-redTheme3 c-redTheme11 fs-11px fw-500">Urgent</span>
</div>
<p className="m-0 fs-14px fw-500 c-slateTheme12">New onboarding flow</p>
<div className="d-flex aic jcsb fs-12px c-slateTheme10">
<span className="d-inline-flex aic g-4px">
<svg className="w-13px h-13px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<rect x="3" y="4" width="18" height="18" rx="2" />
<path d="M16 2v4M8 2v4M3 10h18" />
</svg>
Nov 28
</span>
<span className="d-grid place-items-center w-22px h-22px br-999px bgc-pinkTheme4 c-pinkTheme11 fs-10px fw-600">AL</span>
</div>
</article>
<article className="d-grid g-10px p-12px br-10px bgc-slateTheme1 box-shadow(0_1px_2px_rgb(0_0_0_/_0.08)) cursor-grab">
<div className="d-flex g-6px">
<span className="px-6px py-1px br-4px bgc-blueTheme3 c-blueTheme11 fs-11px fw-500">Backend</span>
</div>
<p className="m-0 fs-14px fw-500 c-slateTheme12">Rate limits for the public API</p>
<div className="d-flex aic jcsb fs-12px c-slateTheme10">
<span className="d-inline-flex aic g-4px">
<svg className="w-13px h-13px" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
</svg>
4
</span>
<span className="d-grid place-items-center w-22px h-22px br-999px bgc-tealTheme4 c-tealTheme11 fs-10px fw-600">GH</span>
</div>
</article>
</section>
);
}