Blog Card Grid
A grid of article cards with image, category, title and meta.
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#18181b, #fafafa);
--color-accent: light-dark(#4f46e5, #818cf8);
--color-bg: light-dark(#ffffff, #0b0b0d);
--color-surface: light-dark(#f7f7f8, #161619);
--color-text: light-dark(#0a0a0c, #f5f5f6);
--color-text-muted: light-dark(#52525b, #a1a1aa);
--color-border: light-dark(#e4e4e7, #26262b);
--font-heading: 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.1;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 0.625rem;
--shadow: 0 1px 2px rgb(10 10 12 / 0.05), 0 4px 12px rgb(10 10 12 / 0.06), 0 16px 40px rgb(10 10 12 / 0.06);
--container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#4f46e5, #818cf8);
--color-accent: light-dark(#a855f7, #c084fc);
--color-bg: light-dark(#ffffff, #0c0c18);
--color-surface: light-dark(#f5f5ff, #16162b);
--color-text: light-dark(#111127, #ececf6);
--color-text-muted: light-dark(#5a5a72, #9d9dbd);
--color-border: light-dark(#e4e4f2, #28284a);
--font-heading: 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.1;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 0.75rem;
--shadow: 0 1px 2px rgb(79 70 229 / 0.06), 0 6px 16px rgb(79 70 229 / 0.10), 0 20px 48px rgb(79 70 229 / 0.10);
--container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#0d9488, #2dd4bf);
--color-accent: light-dark(#f97316, #fb923c);
--color-bg: light-dark(#fbfaf8, #171412);
--color-surface: light-dark(#f3f0ea, #221e1a);
--color-text: light-dark(#292524, #ece7e0);
--color-text-muted: light-dark(#6b6560, #a8a099);
--color-border: light-dark(#e5dfd6, #37312a);
--font-heading: Georgia, 'Times New Roman', serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.15;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 1rem;
--shadow: 0 2px 6px rgb(90 75 60 / 0.06), 0 10px 28px rgb(90 75 60 / 0.10);
--container-width: 1120px;
}
HTML
<section class="s-blog-cards-three-col">
<div class="bc-inner">
<div class="bc-head">
<div><span class="bc-eyebrow">Blog</span><h2>From the blog</h2></div>
<a class="bc-all" href="#">View all posts →</a>
</div>
<div class="bc-grid">
<article class="bc-card"><a href="#"><div class="bc-media"><img src="data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22360%22%20viewBox%3D%220%200%20600%20360%22%20role%3D%22img%22%20aria-label%3D%22Article%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f2f3f7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dfe2ea%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22p%22%20width%3D%2236%22%20height%3D%2236%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M%2036%200%20L%200%200%200%2036%22%20fill%3D%22none%22%20stroke%3D%22%23c9cdd8%22%20stroke-opacity%3D%220.3%22%20stroke-width%3D%221%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23g)%22%2F%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23p)%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22166.2%22%20r%3D%2236.800000000000004%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.6%22%2F%3E%3Cpath%20d%3D%22M280.45%20175.4%20l13.799999999999999%20-17.25%20l10.35%2011.5%20l6.8999999999999995%20-8.049999999999999%20l8.049999999999999%2013.799999999999999%20z%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ccircle%20cx%3D%22312.65%22%20cy%3D%22148.95%22%20r%3D%225.52%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%22223.7%22%20fill%3D%22%238a90a0%22%20font-family%3D%22system-ui%2C%20sans-serif%22%20font-size%3D%2223%22%20font-weight%3D%22600%22%20letter-spacing%3D%220.08em%22%20text-anchor%3D%22middle%22%3EARTICLE%3C%2Ftext%3E%3C%2Fsvg%3E" alt="" width="600" height="360" /></div><span class="bc-tag">Engineering</span><h3>How we cut our CSS bundle in half</h3><p>A practical walk through the audit that removed 40kb of dead styles.</p><span class="bc-meta">Jun 12 · 5 min read</span></a></article>
<article class="bc-card"><a href="#"><div class="bc-media"><img src="data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22360%22%20viewBox%3D%220%200%20600%20360%22%20role%3D%22img%22%20aria-label%3D%22Article%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f2f3f7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dfe2ea%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22p%22%20width%3D%2236%22%20height%3D%2236%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M%2036%200%20L%200%200%200%2036%22%20fill%3D%22none%22%20stroke%3D%22%23c9cdd8%22%20stroke-opacity%3D%220.3%22%20stroke-width%3D%221%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23g)%22%2F%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23p)%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22166.2%22%20r%3D%2236.800000000000004%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.6%22%2F%3E%3Cpath%20d%3D%22M280.45%20175.4%20l13.799999999999999%20-17.25%20l10.35%2011.5%20l6.8999999999999995%20-8.049999999999999%20l8.049999999999999%2013.799999999999999%20z%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ccircle%20cx%3D%22312.65%22%20cy%3D%22148.95%22%20r%3D%225.52%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%22223.7%22%20fill%3D%22%238a90a0%22%20font-family%3D%22system-ui%2C%20sans-serif%22%20font-size%3D%2223%22%20font-weight%3D%22600%22%20letter-spacing%3D%220.08em%22%20text-anchor%3D%22middle%22%3EARTICLE%3C%2Ftext%3E%3C%2Fsvg%3E" alt="" width="600" height="360" /></div><span class="bc-tag">Design</span><h3>Designing with tokens, not pixels</h3><p>Why a small set of variables beats hand-tuning every screen.</p><span class="bc-meta">Jun 4 · 7 min read</span></a></article>
<article class="bc-card"><a href="#"><div class="bc-media"><img src="data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22600%22%20height%3D%22360%22%20viewBox%3D%220%200%20600%20360%22%20role%3D%22img%22%20aria-label%3D%22Article%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f2f3f7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dfe2ea%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22p%22%20width%3D%2236%22%20height%3D%2236%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M%2036%200%20L%200%200%200%2036%22%20fill%3D%22none%22%20stroke%3D%22%23c9cdd8%22%20stroke-opacity%3D%220.3%22%20stroke-width%3D%221%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23g)%22%2F%3E%3Crect%20width%3D%22600%22%20height%3D%22360%22%20fill%3D%22url(%23p)%22%2F%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%22166.2%22%20r%3D%2236.800000000000004%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.6%22%2F%3E%3Cpath%20d%3D%22M280.45%20175.4%20l13.799999999999999%20-17.25%20l10.35%2011.5%20l6.8999999999999995%20-8.049999999999999%20l8.049999999999999%2013.799999999999999%20z%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ccircle%20cx%3D%22312.65%22%20cy%3D%22148.95%22%20r%3D%225.52%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%22223.7%22%20fill%3D%22%238a90a0%22%20font-family%3D%22system-ui%2C%20sans-serif%22%20font-size%3D%2223%22%20font-weight%3D%22600%22%20letter-spacing%3D%220.08em%22%20text-anchor%3D%22middle%22%3EARTICLE%3C%2Ftext%3E%3C%2Fsvg%3E" alt="" width="600" height="360" /></div><span class="bc-tag">Product</span><h3>Shipping small, shipping often</h3><p>The release habit that keeps our roadmap honest.</p><span class="bc-meta">May 28 · 4 min read</span></a></article>
</div>
</div>
</section>CSS block only, works with any theme's tokens
.s-blog-cards-three-col {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-body);
padding-block: var(--space-2xl);
}
.s-blog-cards-three-col .bc-inner {
max-width: var(--container-width);
margin-inline: auto;
padding-inline: var(--space-lg);
}
.s-blog-cards-three-col .bc-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: var(--space-lg);
margin-bottom: var(--space-xl);
}
.s-blog-cards-three-col .bc-eyebrow {
display: inline-block;
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-primary);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: var(--space-xs);
}
.s-blog-cards-three-col .bc-head h2 {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-3xl);
font-weight: var(--weight-bold);
letter-spacing: -0.02em;
margin: 0;
}
.s-blog-cards-three-col .bc-all {
font-size: var(--text-base);
font-weight: var(--weight-medium);
color: var(--color-primary);
text-decoration: none;
white-space: nowrap;
}
.s-blog-cards-three-col .bc-all:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
.s-blog-cards-three-col .bc-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
}
.s-blog-cards-three-col .bc-card {
border: 1px solid var(--color-border);
border-radius: var(--radius);
overflow: hidden;
background: var(--color-surface);
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.s-blog-cards-three-col .bc-card:hover {
transform: translateY(-3px);
border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
box-shadow: var(--shadow);
}
.s-blog-cards-three-col .bc-card a {
display: block;
text-decoration: none;
color: inherit;
}
.s-blog-cards-three-col .bc-media {
overflow: hidden;
}
.s-blog-cards-three-col .bc-card img {
width: 100%;
height: auto;
aspect-ratio: 5 / 3;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}
.s-blog-cards-three-col .bc-card:hover img {
transform: scale(1.04);
}
.s-blog-cards-three-col .bc-tag {
display: inline-block;
margin: var(--space-md) var(--space-md) 0;
padding: 0.1rem var(--space-sm);
border-radius: 999px;
background: color-mix(in srgb, var(--color-primary) 9%, var(--color-bg));
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-primary);
}
.s-blog-cards-three-col .bc-card h3 {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-lg);
font-weight: var(--weight-bold);
line-height: var(--leading-tight);
letter-spacing: -0.01em;
margin: var(--space-sm) var(--space-md);
}
.s-blog-cards-three-col .bc-card p {
font-size: var(--text-base);
line-height: var(--leading-normal);
text-wrap: pretty;
color: var(--color-text-muted);
margin: 0 var(--space-md) var(--space-md);
}
.s-blog-cards-three-col .bc-meta {
display: block;
padding: 0 var(--space-md) var(--space-md);
font-size: var(--text-sm);
color: var(--color-text-muted);
}
@media (max-width: 900px) {
.s-blog-cards-three-col .bc-grid {
grid-template-columns: 1fr;
max-width: 420px;
margin-inline: auto;
}
}
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#18181b, #fafafa);
--color-accent: light-dark(#4f46e5, #818cf8);
--color-bg: light-dark(#ffffff, #0b0b0d);
--color-surface: light-dark(#f7f7f8, #161619);
--color-text: light-dark(#0a0a0c, #f5f5f6);
--color-text-muted: light-dark(#52525b, #a1a1aa);
--color-border: light-dark(#e4e4e7, #26262b);
--font-heading: 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.1;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 0.625rem;
--shadow: 0 1px 2px rgb(10 10 12 / 0.05), 0 4px 12px rgb(10 10 12 / 0.06), 0 16px 40px rgb(10 10 12 / 0.06);
--container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#4f46e5, #818cf8);
--color-accent: light-dark(#a855f7, #c084fc);
--color-bg: light-dark(#ffffff, #0c0c18);
--color-surface: light-dark(#f5f5ff, #16162b);
--color-text: light-dark(#111127, #ececf6);
--color-text-muted: light-dark(#5a5a72, #9d9dbd);
--color-border: light-dark(#e4e4f2, #28284a);
--font-heading: 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.1;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 0.75rem;
--shadow: 0 1px 2px rgb(79 70 229 / 0.06), 0 6px 16px rgb(79 70 229 / 0.10), 0 20px 48px rgb(79 70 229 / 0.10);
--container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
color-scheme: light dark;
--color-primary: light-dark(#0d9488, #2dd4bf);
--color-accent: light-dark(#f97316, #fb923c);
--color-bg: light-dark(#fbfaf8, #171412);
--color-surface: light-dark(#f3f0ea, #221e1a);
--color-text: light-dark(#292524, #ece7e0);
--color-text-muted: light-dark(#6b6560, #a8a099);
--color-border: light-dark(#e5dfd6, #37312a);
--font-heading: Georgia, 'Times New Roman', serif;
--font-body: 'Inter', system-ui, sans-serif;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.375rem;
--text-2xl: 1.75rem;
--text-3xl: 2.375rem;
--text-4xl: 3.5rem;
--weight-normal: 400;
--weight-medium: 500;
--weight-bold: 700;
--leading-tight: 1.15;
--leading-normal: 1.6;
--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 2rem;
--space-xl: 4rem;
--space-2xl: 6rem;
--space-3xl: 8rem;
--radius: 1rem;
--shadow: 0 2px 6px rgb(90 75 60 / 0.06), 0 10px 28px rgb(90 75 60 / 0.10);
--container-width: 1120px;
}
HTML
<section class="s-blog-cards-featured">
<div class="bc-inner">
<div class="bc-grid">
<article class="bc-lead"><a href="#"><div class="bc-media"><img src="data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22760%22%20height%3D%22440%22%20viewBox%3D%220%200%20760%20440%22%20role%3D%22img%22%20aria-label%3D%22Featured%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22g%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%221%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f2f3f7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23dfe2ea%22%2F%3E%3C%2FlinearGradient%3E%3Cpattern%20id%3D%22p%22%20width%3D%2244%22%20height%3D%2244%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Cpath%20d%3D%22M%2044%200%20L%200%200%200%2044%22%20fill%3D%22none%22%20stroke%3D%22%23c9cdd8%22%20stroke-opacity%3D%220.3%22%20stroke-width%3D%221%22%2F%3E%3C%2Fpattern%3E%3C%2Fdefs%3E%3Crect%20width%3D%22760%22%20height%3D%22440%22%20fill%3D%22url(%23g)%22%2F%3E%3Crect%20width%3D%22760%22%20height%3D%22440%22%20fill%3D%22url(%23p)%22%2F%3E%3Ccircle%20cx%3D%22380%22%20cy%3D%22203.2%22%20r%3D%2244.800000000000004%22%20fill%3D%22%23ffffff%22%20fill-opacity%3D%220.6%22%2F%3E%3Cpath%20d%3D%22M356.2%20214.4%20l16.8%20-21%20l12.6%2014%20l8.4%20-9.799999999999999%20l9.799999999999999%2016.8%20z%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ccircle%20cx%3D%22395.4%22%20cy%3D%22182.2%22%20r%3D%226.72%22%20fill%3D%22%23a2a8b8%22%2F%3E%3Ctext%20x%3D%2250%25%22%20y%3D%22273.2%22%20fill%3D%22%238a90a0%22%20font-family%3D%22system-ui%2C%20sans-serif%22%20font-size%3D%2228%22%20font-weight%3D%22600%22%20letter-spacing%3D%220.08em%22%20text-anchor%3D%22middle%22%3EFEATURED%3C%2Ftext%3E%3C%2Fsvg%3E" alt="" width="760" height="440" /></div><span class="bc-tag">Featured</span><h3>The state of vanilla CSS in 2026</h3><p>Everything the platform now does natively that we used to reach for a framework to solve.</p><span class="bc-meta">Jun 18 · 9 min read</span></a></article>
<div class="bc-list">
<article class="bc-item"><a href="#"><span class="bc-tag">Engineering</span><h4>Cutting the CSS bundle in half</h4><span class="bc-meta">Jun 12</span></a></article>
<article class="bc-item"><a href="#"><span class="bc-tag">Design</span><h4>Designing with tokens, not pixels</h4><span class="bc-meta">Jun 4</span></a></article>
<article class="bc-item"><a href="#"><span class="bc-tag">Product</span><h4>Shipping small, shipping often</h4><span class="bc-meta">May 28</span></a></article>
</div>
</div>
</div>
</section>CSS block only, works with any theme's tokens
.s-blog-cards-featured {
background: var(--color-bg);
color: var(--color-text);
font-family: var(--font-body);
padding-block: var(--space-2xl);
}
.s-blog-cards-featured .bc-inner {
max-width: var(--container-width);
margin-inline: auto;
padding-inline: var(--space-lg);
}
.s-blog-cards-featured .bc-grid {
display: grid;
grid-template-columns: 1.4fr 1fr;
gap: var(--space-xl);
align-items: start;
}
.s-blog-cards-featured .bc-lead a {
display: block;
text-decoration: none;
color: inherit;
}
.s-blog-cards-featured .bc-media {
overflow: hidden;
border-radius: var(--radius);
border: 1px solid var(--color-border);
box-shadow: var(--shadow);
margin-bottom: var(--space-md);
}
.s-blog-cards-featured .bc-lead img {
width: 100%;
height: auto;
aspect-ratio: 19 / 11;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}
.s-blog-cards-featured .bc-lead:hover img {
transform: scale(1.03);
}
.s-blog-cards-featured .bc-tag {
display: inline-block;
padding: 0.1rem var(--space-sm);
border-radius: 999px;
background: color-mix(in srgb, var(--color-primary) 9%, var(--color-bg));
font-size: var(--text-sm);
font-weight: var(--weight-medium);
color: var(--color-primary);
margin-bottom: var(--space-xs);
}
.s-blog-cards-featured .bc-lead h3 {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
line-height: var(--leading-tight);
letter-spacing: -0.015em;
margin: var(--space-xs) 0 var(--space-sm);
}
.s-blog-cards-featured .bc-lead p {
font-size: var(--text-lg);
line-height: var(--leading-normal);
text-wrap: pretty;
color: var(--color-text-muted);
margin: 0 0 var(--space-sm);
}
.s-blog-cards-featured .bc-list {
display: grid;
gap: var(--space-md);
}
.s-blog-cards-featured .bc-item {
padding: var(--space-md);
border: 1px solid var(--color-border);
border-radius: var(--radius);
background: var(--color-surface);
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.s-blog-cards-featured .bc-item:hover {
transform: translateY(-2px);
border-color: color-mix(in srgb, var(--color-primary) 30%, var(--color-border));
box-shadow: var(--shadow);
}
.s-blog-cards-featured .bc-item a {
text-decoration: none;
color: inherit;
}
.s-blog-cards-featured .bc-item h4 {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-lg);
font-weight: var(--weight-bold);
line-height: var(--leading-tight);
margin: var(--space-xs) 0;
}
.s-blog-cards-featured .bc-meta {
font-size: var(--text-sm);
color: var(--color-text-muted);
}
@media (max-width: 768px) {
.s-blog-cards-featured .bc-grid {
grid-template-columns: 1fr;
gap: var(--space-lg);
}
}
Modern CSS in this block
Baseline 2024 — works in every up-to-date browser.
- color-mix()Newly availableMixing colors without a preprocessor
- text-wrap: balanceNewly availableBalanced headlines without manual line breaks
- text-wrap: prettyNewly availablePretty paragraph wrapping without orphan words
- aspect-ratioWidely availableAspect ratios without the padding hack
Plus universally supported features: logical properties, custom properties. Baseline status is pulled from each feature's reference snippet.