# Quote

> Someone's words, pulled out of the text: a green rule on the left, the words in sub-title type, and who said them under it.

| | |
|---|---|
| Kind | component |
| Contract | `review` · [quote.contract.yaml](https://github.com/Runceanu/rost/blob/master/contracts/quote.contract.yaml) |
| Guidance | `proposed` |
| Source | [Figma 748:37](https://www.figma.com/design/1Zy0wiWKXQAvsfDBX3KR0d/UI-Kit-v01?node-id=748-37) · read 2026-11-17 · frozen 2026-11-17 |
| Implemented in | nowhere yet |

## Install

It lands in `src/rost/quote/`, with what it needs and its contract:

```sh
npx github:Runceanu/rost add quote
```

Then import `src/rost/fonts.css` and `src/rost/tokens.css` once, at the root of the app. More on this in [Install](https://rost.build/docs/install.md).

## Props

| Prop | Type | Values | Default |
|---|---|---|---|
| `children` | slot |  |  |
| `cite` | slot |  |  |

## Anatomy

- `root`: A `<figure>`: the rule, then the words and who said them, 16px apart.
- `rule`: A 2px green line, as tall as the words. Drawing, hidden from screen readers.
- `content`: The words and the name, 12px apart.
- `text`: The `<blockquote>`, in sub-title type and the main text colour.
- `cite` (optional): The `<figcaption>`, in paragraph type and the tertiary grey. Not italic.

## When to use

- **One line worth stopping for.** In a case study or a long page, the sentence from a client or a user that says the point.

## When not to use

- **Several voices.** A row of people and what they said, with their faces. That's **Testimonials**.
- **Emphasis.** Your own words, made bigger to stand out. Write them as a heading.

## Behaviour

It sets the words large next to a green rule and the name under them. It adds no quote marks.

## Accessibility

- **Element**: `<figure>` with a `<blockquote>` and a `<figcaption>`, the way HTML pairs a quote with who said it.
- **Colour**: The words are 17:1 on the dark page, the name 7:1.

## Content

Quote exactly, and cut rather than paraphrase. The cite is a name and a role: Client 2, finance lead.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `font-family/base` | `'General Sans Variable'` |
| `quote/cite` | `#999999` |
| `quote/rule` | `#00d669` |
| `quote/text` | `#ededed` |
| `spacing/gap/medium` | `16px` |
| `spacing/gap/none` | `0px` |
| `spacing/gap/small-medium` | `12px` |
| `spacing/outline/medium` | `2px` |
| `spacing/radius/full` | `10000px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |
| `typography/sub-title/font-size` | `20px` |
| `typography/sub-title/font-weight/medium` | `500` |
| `typography/sub-title/letter-spacing` | `0px` |
| `typography/sub-title/line-height` | `28px` |

See it live, with every value of every variant: [rost.build/components/quote/](https://rost.build/components/quote/)
