Skip to content

Testimonial

A .testimonial is a quote card: oversized opening quote glyph β†’ blockquote body β†’ figcaption (cite + title). Composes with .x-card for the surface β€” required.

Install

import "elements-kit/ui/styles/theme.css";
import "elements-kit/ui/styles/scaling.css";
import "elements-kit/ui/styles/radius.css";
import "elements-kit/ui/styles/space.css";
import "elements-kit/ui/styles/typography.css";
import "elements-kit/ui/styles/palette/gray.css";
import "elements-kit/ui/styles/neutral/gray.css";
import "elements-kit/ui/styles/palette/mint.css";
import "elements-kit/ui/styles/accent/mint.css";
import "elements-kit/ui/styles/shadow.css";
import "elements-kit/ui/styles/material.css";
import "elements-kit/ui/card/card.css";
import "elements-kit/ui/marketing/marketing.css";

API

<figure class="x-card testimonial">
<blockquote>
The kit <em>cut our design-to-ship loop in half</em>.
</blockquote>
<figcaption>
<cite>Jane Doe</cite>
<span data-title>Staff Engineer, Acme Co</span>
</figcaption>
</figure>
ElementNotes
> blockquotePulls quote glyphs via ::before / ::after. <em> inside renders in --neutral-12.
> figcaption > citeName. Always non-italic.
> figcaption > [data-title]Role / company line.

Variants

Inherits all .x-card variants β€” add data-variant="elevated" for shadow, data-variant="borderless" to drop the border. Wrap any ancestor with data-material-background="translucent" for a frosted backdrop.

Theming

The quote glyph color follows --accent-9 β€” set data-accent="X" on an ancestor to re-theme.

Tips