Testimonials
Customer quotes that make the promise feel real.
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-social-testimonials-three-card">
<div class="st-inner">
<span class="st-eyebrow">Testimonials</span>
<h2 class="st-title">Loved by people who ship</h2>
<div class="st-grid">
<figure class="st-card"><div class="st-stars">★★★★★</div><blockquote>The output is so clean I stopped checking it before committing. That never happens.</blockquote><figcaption><span class="st-avatar">JR</span><span><strong>Jamie Rivera</strong><small>Frontend lead, Northwind</small></span></figcaption></figure>
<figure class="st-card"><div class="st-stars">★★★★★</div><blockquote>I built and shipped a launch page in an afternoon. No framework, no build step, just files.</blockquote><figcaption><span class="st-avatar">PK</span><span><strong>Priya Kapoor</strong><small>Founder, Umbra</small></span></figcaption></figure>
<figure class="st-card"><div class="st-stars">★★★★★</div><blockquote>The live theming sold me. Change one token and the whole page moves with you.</blockquote><figcaption><span class="st-avatar">TM</span><span><strong>Theo Marsh</strong><small>Designer, Globex</small></span></figcaption></figure>
</div>
</div>
</section>CSS block only, works with any theme's tokens
.s-social-testimonials-three-card {
background:
radial-gradient(44rem 22rem at 50% -12%, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 60%),
var(--color-surface);
color: var(--color-text);
font-family: var(--font-body);
padding-block: var(--space-2xl);
}
.s-social-testimonials-three-card .st-inner {
max-width: var(--container-width);
margin-inline: auto;
padding-inline: var(--space-lg);
text-align: center;
}
.s-social-testimonials-three-card .st-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-sm);
}
.s-social-testimonials-three-card .st-title {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-3xl);
font-weight: var(--weight-bold);
line-height: var(--leading-tight);
letter-spacing: -0.02em;
margin: 0 0 var(--space-xl);
}
.s-social-testimonials-three-card .st-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
text-align: left;
}
.s-social-testimonials-three-card .st-card {
margin: 0;
padding: var(--space-lg);
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
box-shadow: var(--shadow);
transition: transform 0.2s ease, border-color 0.2s ease;
}
.s-social-testimonials-three-card .st-card:hover {
transform: translateY(-3px);
border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
}
.s-social-testimonials-three-card .st-stars {
color: var(--color-accent);
letter-spacing: 0.14em;
font-size: var(--text-sm);
margin-bottom: var(--space-sm);
}
.s-social-testimonials-three-card blockquote {
margin: 0 0 var(--space-lg);
font-size: var(--text-lg);
line-height: var(--leading-normal);
text-wrap: pretty;
}
.s-social-testimonials-three-card figcaption {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.s-social-testimonials-three-card .st-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 999px;
background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, var(--color-accent)));
color: var(--color-bg);
font-size: var(--text-sm);
font-weight: var(--weight-bold);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.s-social-testimonials-three-card figcaption strong {
display: block;
font-size: var(--text-base);
font-weight: var(--weight-bold);
}
.s-social-testimonials-three-card figcaption small {
font-size: var(--text-sm);
color: var(--color-text-muted);
}
@media (max-width: 900px) {
.s-social-testimonials-three-card .st-grid {
grid-template-columns: 1fr;
max-width: 520px;
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-social-testimonials-single-quote">
<div class="st-inner">
<div class="st-mark">“</div>
<figure class="st-quote">
<blockquote>We replaced a bloated page builder with this and cut our stylesheet in half. The team actually reads the exported CSS now.</blockquote>
<figcaption><span class="st-avatar">DL</span><span><strong>Dana Lin</strong><small>Engineering manager, Initech</small></span></figcaption>
</figure>
</div>
</section>CSS block only, works with any theme's tokens
.s-social-testimonials-single-quote {
background:
radial-gradient(40rem 20rem at 50% -12%, color-mix(in srgb, var(--color-primary) 7%, transparent), transparent 60%),
var(--color-bg);
color: var(--color-text);
font-family: var(--font-body);
padding-block: var(--space-3xl);
}
.s-social-testimonials-single-quote .st-inner {
max-width: 820px;
margin-inline: auto;
padding-inline: var(--space-lg);
text-align: center;
}
.s-social-testimonials-single-quote .st-mark {
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-4xl);
line-height: 0.5;
color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
margin-bottom: var(--space-md);
}
.s-social-testimonials-single-quote .st-quote {
margin: 0;
}
.s-social-testimonials-single-quote blockquote {
margin: 0 0 var(--space-lg);
font-family: var(--font-heading);
text-wrap: balance;
font-size: var(--text-3xl);
font-weight: var(--weight-medium);
line-height: var(--leading-tight);
letter-spacing: -0.015em;
}
.s-social-testimonials-single-quote figcaption {
display: inline-flex;
align-items: center;
gap: var(--space-sm);
text-align: left;
}
.s-social-testimonials-single-quote .st-avatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.75rem;
height: 2.75rem;
border-radius: 999px;
background: linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 55%, var(--color-accent)));
color: var(--color-bg);
font-size: var(--text-base);
font-weight: var(--weight-bold);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 14%, transparent);
}
.s-social-testimonials-single-quote figcaption strong {
display: block;
font-size: var(--text-base);
font-weight: var(--weight-bold);
}
.s-social-testimonials-single-quote figcaption small {
font-size: var(--text-sm);
color: var(--color-text-muted);
}
@media (max-width: 640px) {
.s-social-testimonials-single-quote blockquote {
font-size: var(--text-2xl);
}
}
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
Plus universally supported features: logical properties, custom properties. Baseline status is pulled from each feature's reference snippet.
More social proof blocks