Rost

← All components

component

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.

In code Contract: review Guidance: proposed Contract on GitHub Figma 743:45 As markdown
Invoice
2026-014
Client
Client One
Due
30 November 2026
Default

Install

npx github:Runceanu/rost add description-list

It lands in src/rost/description-list/, with what it needs and its contract. Install has the rest.

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

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.

Props

PropTypeValuesDefault
items slot

Values

Straight from the contract. Each value sits next to its token, because six tokens here all come out as #3a3a3a and the colour alone can't tell you which one is right.

Never changes

root

  • font-family 'General Sans Variable' font-family/base
  • font-weight 400 typography/paragraph/font-weight/regular
  • font-size 14px typography/paragraph/font-size
  • line-height 20px typography/paragraph/line-height
  • letter-spacing 0px typography/paragraph/letter-spacing

displayblock

row

  • grid-template-columns 160px minmax(0, 1fr) no token yet
  • column-gap 24px spacing/gap/large
  • padding-top 12px spacing/gap/small-medium
  • padding-bottom 12px spacing/gap/small-medium
  • border-bottom-width 1px spacing/outline/small
  • border-bottom-color #3a3a3a description-list/divider

displaygrid · border-bottom-stylesolid

term

  • color #d3d9d5 description-list/term

detail

  • color #ededed description-list/detail