Surfaces and display
Card
A surface that holds one thing: a case, an article, a plan, a number. .kui-card is a bordered box with a title, a body and a foot. A card that is one link (--interactive) is pressed anywhere.
Examples
Plain cards in a grid
Put cards in a .kui-grid: it gives each card at least the width it needs and wraps on smaller screens. The foot stays at the bottom, so cards in a row line up.
Petrović protiv Jovanovića
OpenNaknada štete zbog kašnjenja isporuke. Next hearing on 12 December at 10:30.
Ugovor o zakupu poslovnog prostora
The rent rises with inflation every January. The notice period is three months.
A flat card
--flat drops the line and fills the card with the second surface, for cards inside a panel.
<div class="kui-grid">
<article class="kui-card">
<div class="kui-card__head">
<h4 class="kui-card__title">Petrović protiv Jovanovića</h4>
<span class="kui-badge kui-badge--ok">Open</span>
</div>
<p class="kui-card__meta">Osnovni sud u Novom Sadu · P-1423/2026</p>
<p class="kui-card__body">Naknada štete zbog kašnjenja isporuke. Next hearing on 12 December at 10:30.</p>
<div class="kui-card__foot">
<button class="kui-button kui-button--sm" type="button">Open the file</button>
</div>
</article>
<article class="kui-card">
<h4 class="kui-card__title">Ugovor o zakupu poslovnog prostora</h4>
<p class="kui-card__meta">Čačak · signed 3 March 2026</p>
<p class="kui-card__body">The rent rises with inflation every January. The notice period is three months.</p>
<div class="kui-card__foot"><span class="kui-badge">Contract</span><span class="kui-badge kui-badge--warn">Renews in 30 days</span></div>
</article>
<article class="kui-card kui-card--flat">
<h4 class="kui-card__title">A flat card</h4>
<p class="kui-card__body"><code class="kui-code">--flat</code> drops the line and fills the card with the second surface, for cards inside a panel.</p>
</article>
</div>
Interactive cards
The card's title is a link with .kui-card__link; its area stretches over the whole card, so the card is one target and the link's words are its name. A button in the foot stays its own target.
Kalkulator neto plate
From the gross amount to what reaches the account, with every contribution shown.
Porez na prihod od zakupa
The tax on rent from a flat or an office, with the standard costs taken off.
<div class="kui-grid">
<article class="kui-card kui-card--interactive">
<h4 class="kui-card__title"><a class="kui-card__link" href="#card-calc-salary">Kalkulator neto plate</a></h4>
<p class="kui-card__body">From the gross amount to what reaches the account, with every contribution shown.</p>
<p class="kui-card__meta">Updated for 2026</p>
</article>
<article class="kui-card kui-card--interactive">
<h4 class="kui-card__title"><a class="kui-card__link" href="#card-calc-rent">Porez na prihod od zakupa</a></h4>
<p class="kui-card__body">The tax on rent from a flat or an office, with the standard costs taken off.</p>
<div class="kui-card__foot"><button class="kui-button kui-button--sm kui-button--ghost" type="button"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#bookmark"></use></svg><span>Save</span></button></div>
</article>
</div>
A card with a picture
--media puts .kui-card__media edge to edge at the top, in 16 by 9. An image inside it is cropped to fill.
Kupovina placa na Fruškoj gori
What to check in the land registry before you sign, in seven steps.
Grundstückskaufvertragsunterlagen
A long German word in the title wraps inside the card.
<div class="kui-grid">
<article class="kui-card kui-card--media kui-card--interactive">
<div class="kui-card__media"><svg viewBox="0 0 320 180" role="img" aria-label="Hills at sunset, a drawing" preserveAspectRatio="xMidYMid slice" style="width: 100%; height: 100%; color: var(--kui-color-accent-text)">
<rect width="320" height="180" fill="currentColor" opacity="0.12"></rect>
<circle cx="250" cy="52" r="22" fill="currentColor" opacity="0.5"></circle>
<path d="M0 150 L90 80 L150 130 L210 90 L320 160 L320 180 L0 180 Z" fill="currentColor" opacity="0.45"></path>
</svg></div>
<h4 class="kui-card__title"><a class="kui-card__link" href="#card-guide-land">Kupovina placa na Fruškoj gori</a></h4>
<p class="kui-card__body">What to check in the land registry before you sign, in seven steps.</p>
<p class="kui-card__meta">Guide · 8 minutes</p>
</article>
<article class="kui-card kui-card--media">
<div class="kui-card__media"><svg viewBox="0 0 320 180" role="img" aria-label="A drawing of a landscape" preserveAspectRatio="xMidYMid slice" style="width: 100%; height: 100%; color: var(--kui-color-accent-text)">
<rect width="320" height="180" fill="currentColor" opacity="0.12"></rect>
<circle cx="250" cy="52" r="22" fill="currentColor" opacity="0.5"></circle>
<path d="M0 150 L90 80 L150 130 L210 90 L320 160 L320 180 L0 180 Z" fill="currentColor" opacity="0.45"></path>
</svg></div>
<h4 class="kui-card__title">Grundstückskaufvertragsunterlagen</h4>
<p class="kui-card__body">A long German word in the title wraps inside the card.</p>
</article>
</div>
Waiting for a person, and a number inside
--waiting marks a card that needs someone's answer, with the accent's surface and line. A stat tile can sit inside a card.
Approve the invoice to Đorđević d.o.o.
Needs you184 500,00 RSD for October. The agent prepared it from 14 time entries.
This month
<div class="kui-grid">
<article class="kui-card kui-card--waiting">
<div class="kui-card__head">
<h4 class="kui-card__title">Approve the invoice to Đorđević d.o.o.</h4>
<span class="kui-badge kui-badge--accent"><svg class="kui-icon" aria-hidden="true"><use href="kit/icons.svg#hand"></use></svg>Needs you</span>
</div>
<p class="kui-card__body">184 500,00 RSD for October. The agent prepared it from 14 time entries.</p>
<div class="kui-card__foot">
<button class="kui-button kui-button--sm" type="button">Show entries</button>
<button class="kui-button kui-button--sm kui-button--primary" type="button">Approve and send</button>
</div>
</article>
<article class="kui-card">
<h4 class="kui-card__title">This month</h4>
<div class="kui-stats">
<div class="kui-stat"><span class="kui-stat__label">Billed</span><span class="kui-stat__value">1,2 mil. <small>RSD</small></span></div>
<div class="kui-stat"><span class="kui-stat__label">Open cases</span><span class="kui-stat__value">24</span></div>
</div>
</article>
</div>
States
Every state
Interactive: hover darkens the line and lifts the card with a shadow; focus on its link rings the whole card; pressing moves it down by a pixel. Raised (--raised) has a shadow at rest. Compact (--compact) has less padding. A card with no body is still a card; a crowded card wraps its foot.
Default
A line around the first surface.
Raised
A shadow at rest.
Compact
Less padding, for dense lists.
Interactive
Hover or focus it.
Crowded
<div class="kui-grid kui-grid--sm">
<div class="kui-card"><h4 class="kui-card__title">Default</h4><p class="kui-card__body">A line around the first surface.</p></div>
<div class="kui-card kui-card--raised"><h4 class="kui-card__title">Raised</h4><p class="kui-card__body">A shadow at rest.</p></div>
<div class="kui-card kui-card--compact"><h4 class="kui-card__title">Compact</h4><p class="kui-card__body">Less padding, for dense lists.</p></div>
<div class="kui-card kui-card--interactive"><h4 class="kui-card__title"><a class="kui-card__link" href="#card-s-int">Interactive</a></h4><p class="kui-card__body">Hover or focus it.</p></div>
<div class="kui-card"><h4 class="kui-card__title">Crowded</h4><div class="kui-card__foot"><span class="kui-badge">Ugovor</span><span class="kui-badge kui-badge--info">Novi Sad</span><span class="kui-badge kui-badge--warn">Rok</span><span class="kui-badge kui-badge--ok">Plaćeno</span><span class="kui-badge">Arbeitsvertrag</span></div></div>
</div>
Classes and attributes
.kui-card- The card: a column with a line, padding and the first surface.
--flat, --raised, --compact- No line on the second surface; a shadow; less padding.
--interactive- The whole card is one link: put .kui-card__link on the link in the title.
--media- A picture edge to edge at the top, in .kui-card__media.
--waiting- Needs a person’s answer: the accent surface and line.
.kui-card__head- A row with the title and a badge or a menu at the end.
.kui-card__title, __meta, __body- The title (a heading), a small line of facts, the text.
.kui-card__foot- Buttons or badges at the bottom; it stays at the bottom of a card in a row.
.kui-card__link- The link whose area covers the whole card.
Keyboard
- Tab
- Moves to the card’s link, then to each button in its foot.
- Enter
- Follows the card’s link.
Accessibility
- The card’s title is a heading at the right level for the page, so cards show in a screen reader’s list of headings.
- An interactive card has one link, in its title. Its name is the title alone, not the whole card read out.
- Buttons in an interactive card’s foot are raised above the link’s area, so they stay their own targets.
- A picture that only decorates is aria-hidden; one that says something has a text alternative.
- Use an
<article>for a card that stands on its own, a<div>otherwise.
Do and do not
Do
- Keep a card to one subject and one main action.
- Put cards of one kind in a grid with the same parts in the same order.
- Write the most important fact in the title.
Do not
- Do not wrap a card in a link: the screen reader reads all of it as the link’s name.
- Do not put two links that go to different places in an interactive card’s body.
- Do not nest cards inside cards.