Issue 01 · Sections · p.67
Testimonial
One large, specific quote with the person’s name, role and a photo slot.
Why it works: One real, specific quote beats a wall of vague ones. Only use quotes from real people who agreed to it; the one here is placeholder text for a fictional app.
Try it:
Receipt: axe clean · contrast 6.7:1 · 0 tab stops · RTL ✓ · long text ✓
- PASS axe, WCAG 2.1 A and AA: no violations in light or dark (7 rules passed).
- PASS Tightest text contrast 6.7:1, where 4.5:1 is needed (light).
- PASS Still passes contrast with tokens fitted to a yellow brand colour.
- PASS Right-to-left with Arabic sample text fits a 390px phone.
- PASS Every string 40% longer still fits a 390px phone.
- PASS No motion.
Tab order: nothing here takes focus (it is content, not controls).
What assistive tech is given
- figure "Your customer’s name Their role, their company":
- blockquote:
- paragraph: “We used to settle our flat’s bills on a whiteboard. Pocketsplit sorted four months of mess in one evening.”
- text: Your customer’s name Their role, their company
Automated checks in CI (axe in Chromium, reduced motion on). They catch a lot, not everything: still try it with a screen reader.
See it in the zine npx -y tearsheet add testimonial
Needs the shared tokens.css once per project.
HTML + CSS
index.html
<!-- tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html -->
<section class="testi">
<figure>
<blockquote><p>“We used to settle our flat’s bills on a whiteboard. Pocketsplit sorted four months of mess in one evening.”</p></blockquote>
<figcaption>
<span class="testi-photo" aria-hidden="true">NA</span>
<span><b>Your customer’s name</b><br>Their role, their company</span>
</figcaption>
</figure>
</section>styles.css
/* tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html */
.testi { width: 100%; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.testi figure { max-width: 760px; margin: 0 auto; }
.testi blockquote { margin: 0; }
.testi blockquote p { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; color: var(--ui-muted); }
.testi figcaption b { color: var(--ui-text); }
.testi-photo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f97316, #db2777); border-radius: 50%; }React
Testimonial.jsx
/* tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html */
import './Testimonial.css';
export function Testimonial() {
return (
<section className="testi">
<figure>
<blockquote><p>“We used to settle our flat’s bills on a whiteboard. Pocketsplit sorted four months of mess in one evening.”</p></blockquote>
<figcaption>
<span className="testi-photo" aria-hidden="true">NA</span>
<span><b>Your customer’s name</b><br />Their role, their company</span>
</figcaption>
</figure>
</section>
);
}Testimonial.css
/* tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html */
.testi { width: 100%; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.testi figure { max-width: 760px; margin: 0 auto; }
.testi blockquote { margin: 0; }
.testi blockquote p { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; color: var(--ui-muted); }
.testi figcaption b { color: var(--ui-text); }
.testi-photo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f97316, #db2777); border-radius: 50%; }Vue
Testimonial.vue
<!-- tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html -->
<template>
<section class="testi">
<figure>
<blockquote><p>“We used to settle our flat’s bills on a whiteboard. Pocketsplit sorted four months of mess in one evening.”</p></blockquote>
<figcaption>
<span class="testi-photo" aria-hidden="true">NA</span>
<span><b>Your customer’s name</b><br>Their role, their company</span>
</figcaption>
</figure>
</section>
</template>
<style scoped>
.testi { width: 100%; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.testi figure { max-width: 760px; margin: 0 auto; }
.testi blockquote { margin: 0; }
.testi blockquote p { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; color: var(--ui-muted); }
.testi figcaption b { color: var(--ui-text); }
.testi-photo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f97316, #db2777); border-radius: 50%; }
</style>Svelte
Testimonial.svelte
<!-- tearsheet testimonial v1a205836 · https://qusaialjbali.github.io/tearsheet/zine/parts/testimonial.html -->
<section class="testi">
<figure>
<blockquote><p>“We used to settle our flat’s bills on a whiteboard. Pocketsplit sorted four months of mess in one evening.”</p></blockquote>
<figcaption>
<span class="testi-photo" aria-hidden="true">NA</span>
<span><b>Your customer’s name</b><br>Their role, their company</span>
</figcaption>
</figure>
</section>
<style>
.testi { width: 100%; padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px); background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.testi figure { max-width: 760px; margin: 0 auto; }
.testi blockquote { margin: 0; }
.testi blockquote p { margin: 0; font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 15px; color: var(--ui-muted); }
.testi figcaption b { color: var(--ui-text); }
.testi-photo { display: grid; place-items: center; width: 52px; height: 52px; flex: none; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f97316, #db2777); border-radius: 50%; }
</style>