Sami Vuori Design system Back to site →

Testimonial

A quote band: the slanted ” mark beside the quote, on the column grid, with an optional button.

<Testimonial name="James Dashwood" role="Sr Product Manager, ex-Happeo">
  Sami is a fantastic designer and person. …
  <Button slot="cta" href="/about">More about me</Button>
</Testimonial>

Usage

Props

PropTypeDefaultDescription
name string — Who said it (bold).
role string — Their role, e.g. "Sr Product Designer, ex-Happeo".
slot (default) text — The quote, without quote marks.
slot "cta" <Button> — Optional button under the attribution.

Tokens

Token Base≥ 390≥ 640≥ 744≥ 1024≥ 1440 Note
--quote-py 60px80pxvar(--spacing-3xl)var(--spacing-edge)
--quote-column 1 / -12 / span 4 centred 4-col block:
--quote-mark-column 1 / -11 / span 1 stacked: mark above body
--quote-body-column 1 / -12 / span 42 / span 3 mark 1 col + text 3 cols
--quote-mark-offset 0pxvar(--quote-mark-align-offset) stacked: no alignment needed
--quote-mark-align-offset calc( var(--type-quote-body-size) * ((var(--line-height-quote-body) - var(--font-metric-content)) / 2 + var(--font-metric-ascent) - var(--font-metric-cap)) - var(--type-quote-mark-size) * ((var(--line-height-quote-mark) - var(--font-metric-content)) / 2 + var(--font-metric-ascent) - var(--font-metric-cap)) )
--type-quote-body-size 20px24px32px36px
--type-quote-mark-size 120px160px