Description list
Labels and their values: order details, a customer profile, a settings summary. Side by side on bigger screens, stacked on phones.
Basic
Add .dl to a normal <dl>. The labels form one column and the values the other.
Order #10421
Paid- Customer
- Ana Kim
- ana.kim@example.com
- Placed
- November 28, 2026 at 9:41
- Ship to
- Rua das Flores 12, 1200-195 Lisbon, Portugal
- Delivery
- Standard, 3 to 5 working days
<div class="card w-full" style="max-width: 34rem">
<div class="card-header"><h3 class="card-title">Order #10421</h3><span class="badge badge-green-soft">Paid</span></div>
<div class="card-body">
<dl class="dl" id="dl-basic">
<dt>Customer</dt><dd>Ana Kim</dd>
<dt>Email</dt><dd>ana.kim@example.com</dd>
<dt>Placed</dt><dd>November 28, 2026 at 9:41</dd>
<dt>Ship to</dt><dd>Rua das Flores 12, 1200-195 Lisbon, Portugal</dd>
<dt>Delivery</dt><dd>Standard, 3 to 5 working days</dd>
</dl>
</div>
</div><dl class="dl">
<dt>Customer</dt><dd>Ana Kim</dd>
<dt>Email</dt><dd>ana.kim@example.com</dd>
</dl>With lines and actions
.dl-divided puts a dashed rule between rows. Add .dl-action to a value to push its last item (Edit, Change, Copy) to the end: the usual profile page.
- Name
- Ana Kim
- ana.kim@example.com
- Password
- Changed 3 months ago
- Two-step sign-in
- On
<div class="card w-full" style="max-width: 34rem">
<div class="card-body">
<dl class="dl dl-divided" id="dl-profile">
<dt>Name</dt><dd class="dl-action">Ana Kim <button class="btn btn-sm btn-ghost" type="button">Edit</button></dd>
<dt>Email</dt><dd class="dl-action">ana.kim@example.com <button class="btn btn-sm btn-ghost" type="button">Edit</button></dd>
<dt>Password</dt><dd class="dl-action">Changed 3 months ago <button class="btn btn-sm btn-ghost" type="button">Change</button></dd>
<dt>Two-step sign-in</dt><dd class="dl-action"><span class="badge badge-green-soft">On</span> <button class="btn btn-sm btn-ghost" type="button">Manage</button></dd>
</dl>
</div>
</div><dl class="dl dl-divided">
<dt>Name</dt>
<dd class="dl-action">Ana Kim <button class="btn btn-sm btn-ghost">Edit</button></dd>
…
</dl>A summary with a total
.dl-between puts the value at the end of the row, like a receipt, and keeps it that way on phones. Put .dl-total on the last label for a solid line and bold text.
- Subtotal (3 items)
- $118.00
- Shipping
- $6.50
- Discount (SPRING10)
- -$11.80
- Tax
- $16.30
- Total
- $129.00
<div class="card w-80 max-w-full">
<div class="card-body">
<dl class="dl dl-between" id="dl-sum">
<dt>Subtotal (3 items)</dt><dd>$118.00</dd>
<dt>Shipping</dt><dd>$6.50</dd>
<dt>Discount (SPRING10)</dt><dd>-$11.80</dd>
<dt>Tax</dt><dd>$16.30</dd>
<dt class="dl-total">Total</dt><dd>$129.00</dd>
</dl>
</div>
</div><dl class="dl dl-between">
<dt>Subtotal (3 items)</dt><dd>$118.00</dd>
<dt>Shipping</dt><dd>$6.50</dd>
<dt class="dl-total">Total</dt><dd>$129.00</dd>
</dl>Key facts
.dl-grid is a grid of facts with small labels and big values. Wrap each pair in a <div>. It fits as many columns as there is room for.
- Revenue
- $48,210
- Orders
- 1,284
- Customers
- 932
- Refund rate
- 0.9%
<div class="card">
<div class="card-body">
<dl class="dl dl-grid" id="dl-facts">
<div><dt>Revenue</dt><dd>$48,210</dd></div>
<div><dt>Orders</dt><dd>1,284</dd></div>
<div><dt>Customers</dt><dd>932</dd></div>
<div><dt>Refund rate</dt><dd>0.9%</dd></div>
</dl>
</div>
</div><dl class="dl dl-grid">
<div><dt>Revenue</dt><dd>$48,210</dd></div>
<div><dt>Orders</dt><dd>1,284</dd></div>
</dl>Stacked and small
.dl-stacked always puts the label above the value: good for long text and narrow side panels. .dl-sm is denser.
- Notes
- Customer asked for gift wrapping and a handwritten card.
- Tags
- VIPRepeat
- Tracking number
PT 4821 0093 7716
<div class="card w-80 max-w-full">
<div class="card-body">
<dl class="dl dl-stacked dl-sm" id="dl-stack">
<dt>Notes</dt><dd>Customer asked for gift wrapping and a handwritten card.</dd>
<dt>Tags</dt><dd class="cluster"><span class="badge badge-violet-soft">VIP</span><span class="badge badge-cyan-soft">Repeat</span></dd>
<dt>Tracking number</dt><dd><code>PT 4821 0093 7716</code></dd>
</dl>
</div>
</div>Good to know
- It is a real
<dl>, so screen readers read each label with its value. --dl-labelsets the width of the label column (11rem) and--dl-gapthe space between rows.- On phones the label moves above its value, except in
.dl-betweenand.dl-grid. - For big numbers with trends, use a Stat card.
Reference
| Class | What it does |
|---|---|
.dl | A label column and a value column (stacked on phones) |
.dl-divided | A dashed rule between rows |
.dl-action on a <dd> | Pushes its last item (Edit, Change) to the end |
.dl-between, .dl-total on a <dt> | Values at the end of the row like a receipt, the total row |
.dl-grid | A grid of key facts with big values (each pair in a div) |
.dl-stacked, .dl-sm | Label above value always, denser |
--dl-label, --dl-gap, --dl-min | The label column's width, the space between rows, the smallest fact in a grid |