INFO GRID: 2-column label–value grid for structured data display
COMPOSES: Typography utilities | Color utilities
VARIANTS: Default (2-col) | Compact (.info-grid-sm) | Inline (.info-grid-inline) | Bordered (.info-grid-bordered) | Single column (.info-grid-1) | Three column (.info-grid-3)

Used in drawer summaries, record sidebars, and tw-expanded tw-card details to display key–value information in a scannable grid layout.

Default (2-Column)

Base: 2-column grid with semibold labels and normal-weight values. Each item is a label–value pair occupying one grid cell. Uses semantic <dl>/<dt>/<dd> markup.

Current School
Oakwood Primary
Source
Open Day
Enquiry Date
26 Nov 2025
Stage
Engaged
Year Group
Year 7
Assigned To
Sarah Thompson
<dl class="tw-info-grid"><div><dt class="tw-info-grid-label">Label</dt><dd class="tw-info-grid-value">Value</dd></div>...</dl>

Rich Values (Badges, Links)

Values: The .info-grid-value cell can contain any content — text, badges, links, or other components.

Status
Active
Priority
High
Email
jack.davies@email.com
Phone
+44 7700 900123
<dd class="tw-info-grid-value"><span class="tw-badge tw-badge-success-subtle tw-badge-sm">Active</span></dd>

Compact Variant (.info-grid-sm)

Compact: Tighter gaps and smaller value text for tw-expanded cards and narrow panels. Add .info-grid-sm alongside .info-grid.

Year Group
Year 7
DOB
15/03/2013
Current School
Oakwood Primary
Source
Open Day
<dl class="tw-info-grid tw-info-grid-sm">...</dl>

Inline Variant (.info-grid-inline)

Inline: Label and value on the same line, each pair stacking vertically. Labels get a consistent minimum width; values fill remaining space. Add .info-grid-inline alongside .info-grid.

Current School
Oakwood Primary
Source
Open Day
Enquiry Date
26 Nov 2025
Stage
Engaged
<dl class="tw-info-grid tw-info-grid-inline">...</dl>

Bordered Variant (.info-grid-bordered)

Bordered: Subtle bottom border between each pair for visual separation. Works well with .info-grid-inline and .info-grid-1 for list-style layouts.

Inline + Bordered

Current School
Oakwood Primary
Source
Open Day
Enquiry Date
26 Nov 2025
Stage
Engaged

Single Column + Bordered

Full Name
Oscar Clarke
Email
jack.davies@email.com
Phone
+44 7700 900123
<dl class="tw-info-grid tw-info-grid-inline tw-info-grid-bordered">...</dl>

Column Variants

Layout: Override the default 2-column layout with .info-grid-1 (single column) or .info-grid-3 (three columns) for different contexts.

Single Column (.info-grid-1)

Full Name
Oscar Clarke
Email
jack.davies@email.com
Phone
+44 7700 900123

Three Column (.info-grid-3)

Year
Year 7
Entry
2026
Source
Open Day
Stage
Engaged
Assigned
Sarah T
Priority
Normal
<dl class="tw-info-grid tw-info-grid-1">...</dl>  |  <dl class="tw-info-grid tw-info-grid-3">...</dl>

Label Width (.tw-info-grid-labels-lg / -labels-wide)

Set once on the grid, never per-<dt>: the inline variant's label column is min-w-28 (7rem), which is right for one-word labels and cramped for anything longer — so pages were stacking tw:min-w-* utilities on individual <dt> elements, where they lose to the pattern's own rule and silently do nothing. Put .tw-info-grid-labels-lg (9rem, two-word labels) or .tw-info-grid-labels-wide (13rem, sentence-style labels — the student-profile card) on the <dl> and every row lines up.

Default (7rem)

Intake
Year 7, Sept 2027
Status
Offer accepted

Large labels (9rem)

Current school
Oakwood Primary
Enquiry source
Open day, 14 June 2026
Assigned to
Rachel Whitfield

Wide labels (13rem)

Sibling at this school
Yes — Isla Hughes, Year 9
Distance from school
1.4 miles
Education, health & care plan
None recorded
<dl class="tw-info-grid tw-info-grid-inline tw-info-grid-labels-lg">...</dl>  |  <dl class="tw-info-grid tw-info-grid-inline tw-info-grid-labels-wide">...</dl>