# DescriptionList

> Facts about one thing, as pairs: a term and its value, a row each, with a line between. For an invoice's details or a client's.

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

## Install

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

```sh
npx github:Runceanu/rost add description-list
```

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 |
|---|---|---|---|
| `items` | slot |  |  |

## Anatomy

- `root`: A `<dl>` in paragraph type.
- `row`: A `<div>` holding one term and its detail, side by side, with a 1px line under it.
- `term`: A `<dt>`, in the secondary text colour.
- `detail`: A `<dd>`, in the main text colour.

## When to use

- **One thing's details.** An invoice's number, date, client and total. A client's address and VAT number.

## When not to use

- **Several things.** The same details for many items. That's **Table**.

## Behaviour

A row per pair, the term on the left and its detail on the right, a line under each.

## Accessibility

- **Element**: `<dl>` with `<dt>` and `<dd>` in a `<div>` per pair, so screen readers say them as pairs.
- **Colour**: Terms are 11:1 and details 14:1 on the dark page.

## Content

Terms are short nouns in sentence case; details are values, formatted for the reader.

## Tokens

Every token this component uses, across all its variants.

| Token | Resolves to |
|---|---|
| `description-list/detail` | `#ededed` |
| `description-list/divider` | `#3a3a3a` |
| `description-list/term` | `#d3d9d5` |
| `font-family/base` | `'General Sans Variable'` |
| `spacing/gap/large` | `24px` |
| `spacing/gap/small-medium` | `12px` |
| `spacing/outline/small` | `1px` |
| `typography/paragraph/font-size` | `14px` |
| `typography/paragraph/font-weight/regular` | `400` |
| `typography/paragraph/letter-spacing` | `0px` |
| `typography/paragraph/line-height` | `20px` |

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