HTML
Copy
<div><span class="mb-4 block text-[.72rem] tracking-[.12em] text-cq-muted uppercase">One widget, three widths (container queries)</span>
<div class="flex flex-col gap-[18px]">
<div class="@container max-w-[250px]">
<article class="grid gap-x-[18px] gap-y-2.5 [grid-template-areas:'head'_'main'_'spark'_'stats'] @min-[340px]:grid-cols-2 @min-[340px]:[grid-template-areas:'head_head'_'main_spark'_'stats_stats'] @min-[620px]:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)_200px] @min-[620px]:p-[22px] @min-[620px]:[grid-template-areas:'head_head_stats'_'main_spark_stats'] min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]">
<div class="flex items-baseline justify-between gap-2 [grid-area:head]"><h3 class="text-[.84rem] font-semibold text-cq-muted">Active trials</h3><span class="text-[.74rem] text-cq-muted">Week 42</span></div>
<div class="flex flex-col gap-1.5 [grid-area:main]"><p class="text-[clamp(1.7rem,9cqi,2.8rem)] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">1,248</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>+9.2%</span>vs last week</p></div>
<svg class="block h-12 w-full self-end overflow-visible [grid-area:spark] @min-[340px]:h-14 @min-[620px]:h-[72px]" viewBox="0 0 120 40" preserveAspectRatio="none" aria-hidden="true"><path class="fill-cq-accent opacity-12" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3L120 40L0 40Z"/><path class="fill-none stroke-cq-accent stroke-2 [stroke-linecap:round] [stroke-linejoin:round]" vector-effect="non-scaling-stroke" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3"/></svg>
<dl class="grid gap-1.5 border-t border-cq-line pt-2.5 text-[.8rem] [grid-area:stats] @min-[340px]:grid-cols-3 @min-[620px]:grid-cols-1 @min-[620px]:content-center @min-[620px]:gap-3 @min-[620px]:border-t-0 @min-[620px]:border-l @min-[620px]:pt-0 @min-[620px]:pl-[18px] [&>div]:flex [&>div]:justify-between [&>div]:gap-2 @min-[340px]:[&>div]:flex-col @min-[340px]:[&>div]:gap-0 [&_dt]:text-cq-muted [&_dd]:font-bold [&_dd]:tabular-nums @min-[620px]:[&_dd]:text-[1.05rem]"><div><dt>Converted</dt><dd>214</dd></div><div><dt>Expiring this week</dt><dd>96</dd></div><div><dt>Days to convert</dt><dd>9.4</dd></div></dl>
</article></div>
<div class="@container max-w-[440px]">
<article class="grid gap-x-[18px] gap-y-2.5 [grid-template-areas:'head'_'main'_'spark'_'stats'] @min-[340px]:grid-cols-2 @min-[340px]:[grid-template-areas:'head_head'_'main_spark'_'stats_stats'] @min-[620px]:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)_200px] @min-[620px]:p-[22px] @min-[620px]:[grid-template-areas:'head_head_stats'_'main_spark_stats'] min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]">
<div class="flex items-baseline justify-between gap-2 [grid-area:head]"><h3 class="text-[.84rem] font-semibold text-cq-muted">Active trials</h3><span class="text-[.74rem] text-cq-muted">Week 42</span></div>
<div class="flex flex-col gap-1.5 [grid-area:main]"><p class="text-[clamp(1.7rem,9cqi,2.8rem)] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">1,248</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>+9.2%</span>vs last week</p></div>
<svg class="block h-12 w-full self-end overflow-visible [grid-area:spark] @min-[340px]:h-14 @min-[620px]:h-[72px]" viewBox="0 0 120 40" preserveAspectRatio="none" aria-hidden="true"><path class="fill-cq-accent opacity-12" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3L120 40L0 40Z"/><path class="fill-none stroke-cq-accent stroke-2 [stroke-linecap:round] [stroke-linejoin:round]" vector-effect="non-scaling-stroke" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3"/></svg>
<dl class="grid gap-1.5 border-t border-cq-line pt-2.5 text-[.8rem] [grid-area:stats] @min-[340px]:grid-cols-3 @min-[620px]:grid-cols-1 @min-[620px]:content-center @min-[620px]:gap-3 @min-[620px]:border-t-0 @min-[620px]:border-l @min-[620px]:pt-0 @min-[620px]:pl-[18px] [&>div]:flex [&>div]:justify-between [&>div]:gap-2 @min-[340px]:[&>div]:flex-col @min-[340px]:[&>div]:gap-0 [&_dt]:text-cq-muted [&_dd]:font-bold [&_dd]:tabular-nums @min-[620px]:[&_dd]:text-[1.05rem]"><div><dt>Converted</dt><dd>214</dd></div><div><dt>Expiring this week</dt><dd>96</dd></div><div><dt>Days to convert</dt><dd>9.4</dd></div></dl>
</article></div>
<div class="@container">
<article class="grid gap-x-[18px] gap-y-2.5 [grid-template-areas:'head'_'main'_'spark'_'stats'] @min-[340px]:grid-cols-2 @min-[340px]:[grid-template-areas:'head_head'_'main_spark'_'stats_stats'] @min-[620px]:grid-cols-[minmax(0,1fr)_minmax(0,1.3fr)_200px] @min-[620px]:p-[22px] @min-[620px]:[grid-template-areas:'head_head_stats'_'main_spark_stats'] min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]">
<div class="flex items-baseline justify-between gap-2 [grid-area:head]"><h3 class="text-[.84rem] font-semibold text-cq-muted">Active trials</h3><span class="text-[.74rem] text-cq-muted">Week 42</span></div>
<div class="flex flex-col gap-1.5 [grid-area:main]"><p class="text-[clamp(1.7rem,9cqi,2.8rem)] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">1,248</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>+9.2%</span>vs last week</p></div>
<svg class="block h-12 w-full self-end overflow-visible [grid-area:spark] @min-[340px]:h-14 @min-[620px]:h-[72px]" viewBox="0 0 120 40" preserveAspectRatio="none" aria-hidden="true"><path class="fill-cq-accent opacity-12" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3L120 40L0 40Z"/><path class="fill-none stroke-cq-accent stroke-2 [stroke-linecap:round] [stroke-linejoin:round]" vector-effect="non-scaling-stroke" d="M0 37L8.6 33.9L17.1 35.9L25.7 29.7L34.3 26.3L42.9 28.1L51.4 22.7L60 20.7L68.6 24.4L77.1 18L85.7 13.3L94.3 11L102.9 18L111.4 8.4L120 3"/></svg>
<dl class="grid gap-1.5 border-t border-cq-line pt-2.5 text-[.8rem] [grid-area:stats] @min-[340px]:grid-cols-3 @min-[620px]:grid-cols-1 @min-[620px]:content-center @min-[620px]:gap-3 @min-[620px]:border-t-0 @min-[620px]:border-l @min-[620px]:pt-0 @min-[620px]:pl-[18px] [&>div]:flex [&>div]:justify-between [&>div]:gap-2 @min-[340px]:[&>div]:flex-col @min-[340px]:[&>div]:gap-0 [&_dt]:text-cq-muted [&_dd]:font-bold [&_dd]:tabular-nums @min-[620px]:[&_dd]:text-[1.05rem]"><div><dt>Converted</dt><dd>214</dd></div><div><dt>Expiring this week</dt><dd>96</dd></div><div><dt>Days to convert</dt><dd>9.4</dd></div></dl>
</article></div>
</div></div>
<div><span class="mb-4 block text-[.72rem] tracking-[.12em] text-cq-muted uppercase">Stat cards on subgrid rows</span>
<div class="grid grid-cols-[repeat(auto-fill,minmax(min(100%,210px),1fr))] gap-4">
<article class="row-span-3 grid grid-rows-subgrid gap-2 min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]"><div class="flex items-start justify-between gap-2.5"><h3 class="text-[.84rem] font-semibold text-cq-muted">Signups</h3><span class="grid size-[34px] flex-none place-items-center rounded-[10px] bg-[#efedfb] text-cq-accent" aria-hidden="true"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M19 8v6M22 11h-6"/></svg></span></div>
<p class="self-end text-[1.9rem] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">2,904</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>+11.3%</span>vs September</p></article>
<article class="row-span-3 grid grid-rows-subgrid gap-2 min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]"><div class="flex items-start justify-between gap-2.5"><h3 class="text-[.84rem] font-semibold text-cq-muted">Average revenue per account</h3><span class="grid size-[34px] flex-none place-items-center rounded-[10px] bg-[#efedfb] text-cq-accent" aria-hidden="true"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg></span></div>
<p class="self-end text-[1.9rem] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">$37.03</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5M5 12l7-7 7 7"/></svg>+$1.20</span>vs September</p></article>
<article class="row-span-3 grid grid-rows-subgrid gap-2 min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]"><div class="flex items-start justify-between gap-2.5"><h3 class="text-[.84rem] font-semibold text-cq-muted">Trial to paid</h3><span class="grid size-[34px] flex-none place-items-center rounded-[10px] bg-[#efedfb] text-cq-accent" aria-hidden="true"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg></span></div>
<p class="self-end text-[1.9rem] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">17.1%</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-bad-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-bad tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>−0.6 pts</span>vs September</p></article>
<article class="row-span-3 grid grid-rows-subgrid gap-2 min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]"><div class="flex items-start justify-between gap-2.5"><h3 class="text-[.84rem] font-semibold text-cq-muted">Refunds</h3><span class="grid size-[34px] flex-none place-items-center rounded-[10px] bg-[#efedfb] text-cq-accent" aria-hidden="true"><svg class="size-[18px]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-15-6.7L3 13"/></svg></span></div>
<p class="self-end text-[1.9rem] leading-[1.15] font-[750] tracking-[-.02em] tabular-nums">$1,284</p><p class="flex flex-wrap items-center gap-2 text-[.8rem] text-cq-muted"><span class="inline-flex items-center gap-[3px] rounded-full bg-cq-good-bg py-0.5 pr-2 pl-1.5 text-[.78rem] font-bold text-cq-good tabular-nums"><svg class="size-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>−18%</span>lower is better</p></article>
</div></div>
<div><span class="mb-4 block text-[.72rem] tracking-[.12em] text-cq-muted uppercase">Conic-gradient donut, narrow and wide</span>
<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,300px),1fr))] gap-4">
<div class="@container">
<section class="grid justify-items-center gap-[18px] @min-[460px]:grid-cols-[190px_minmax(0,1fr)] @min-[460px]:items-center @min-[460px]:gap-x-8 @min-[460px]:p-[22px] @min-[460px]:[grid-template-areas:'head_head'_'ring_legend'] min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]" aria-labelledby="dn-t1">
<div class="justify-self-stretch @min-[460px]:[grid-area:head]"><h3 class="text-[.84rem] font-semibold text-cq-muted" id="dn-t1">Plan mix, paying accounts</h3><p class="text-[.74rem] text-cq-muted">October 16 · 3,069 accounts</p></div>
<div class="relative grid w-[min(100%,190px)] place-items-center @min-[460px]:[grid-area:ring]"><div class="aspect-square w-full rounded-full bg-[conic-gradient(#2a78d6_0%_45.6%,#fff_45.6%_46%,#eb6834_46%_77.6%,#fff_77.6%_78%,#1baf7a_78%_93.6%,#fff_93.6%_94%,#eda100_94%_99.6%,#fff_99.6%_100%)] [-webkit-mask:radial-gradient(farthest-side,transparent_61%,#000_calc(61%+1px))] [mask:radial-gradient(farthest-side,transparent_61%,#000_calc(61%+1px))]" aria-hidden="true"></div><p class="absolute inset-0 grid place-content-center text-center text-2xl leading-[1.1] font-[750] tabular-nums" aria-hidden="true">3,069<small class="block text-[.72rem] font-medium text-cq-muted">accounts</small></p></div>
<ul class="grid gap-[9px] justify-self-stretch text-[.86rem] @min-[460px]:[grid-area:legend] @min-[460px]:max-w-[380px]">
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#2a78d6]"></i><span>Starter</span><b class="font-bold">1,412</b><span class="text-right text-cq-muted">46%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#eb6834]"></i><span>Growth</span><b class="font-bold">982</b><span class="text-right text-cq-muted">32%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#1baf7a]"></i><span>Scale</span><b class="font-bold">491</b><span class="text-right text-cq-muted">16%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#eda100]"></i><span>Enterprise</span><b class="font-bold">184</b><span class="text-right text-cq-muted">6%</span></li>
</ul>
</section></div>
<div class="@container min-[701px]:col-span-2">
<section class="grid justify-items-center gap-[18px] @min-[460px]:grid-cols-[190px_minmax(0,1fr)] @min-[460px]:items-center @min-[460px]:gap-x-8 @min-[460px]:p-[22px] @min-[460px]:[grid-template-areas:'head_head'_'ring_legend'] min-w-0 rounded-[18px] border border-cq-line bg-white p-[18px] shadow-[0_1px_2px_rgba(30,27,46,.05),0_10px_28px_rgba(98,80,214,.08)]" aria-labelledby="dn-t2">
<div class="justify-self-stretch @min-[460px]:[grid-area:head]"><h3 class="text-[.84rem] font-semibold text-cq-muted" id="dn-t2">Plan mix, paying accounts</h3><p class="text-[.74rem] text-cq-muted">October 16 · 3,069 accounts</p></div>
<div class="relative grid w-[min(100%,190px)] place-items-center @min-[460px]:[grid-area:ring]"><div class="aspect-square w-full rounded-full bg-[conic-gradient(#2a78d6_0%_45.6%,#fff_45.6%_46%,#eb6834_46%_77.6%,#fff_77.6%_78%,#1baf7a_78%_93.6%,#fff_93.6%_94%,#eda100_94%_99.6%,#fff_99.6%_100%)] [-webkit-mask:radial-gradient(farthest-side,transparent_61%,#000_calc(61%+1px))] [mask:radial-gradient(farthest-side,transparent_61%,#000_calc(61%+1px))]" aria-hidden="true"></div><p class="absolute inset-0 grid place-content-center text-center text-2xl leading-[1.1] font-[750] tabular-nums" aria-hidden="true">3,069<small class="block text-[.72rem] font-medium text-cq-muted">accounts</small></p></div>
<ul class="grid gap-[9px] justify-self-stretch text-[.86rem] @min-[460px]:[grid-area:legend] @min-[460px]:max-w-[380px]">
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#2a78d6]"></i><span>Starter</span><b class="font-bold">1,412</b><span class="text-right text-cq-muted">46%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#eb6834]"></i><span>Growth</span><b class="font-bold">982</b><span class="text-right text-cq-muted">32%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#1baf7a]"></i><span>Scale</span><b class="font-bold">491</b><span class="text-right text-cq-muted">16%</span></li>
<li class="grid grid-cols-[12px_1fr_auto_3.5ch] items-center gap-2.5 tabular-nums"><i class="size-3 rounded-[3px] bg-[#eda100]"></i><span>Enterprise</span><b class="font-bold">184</b><span class="text-right text-cq-muted">6%</span></li>
</ul>
</section></div>
</div></div>