Community project. This is not an official government website.

Run by volunteers. Lampung Design System is built by an open source community. No government agency runs or endorses it.

Official services use go.id. Government websites in Indonesia end in .go.id. Never enter your national ID number on a site you are unsure of.

Card

Card

A surface that holds one subject: an event, a payment, a course. White with a hairline ring on the canvas, or the quiet fill on white. Never a shadow.

Usage

Use it when

  • A self-contained subject with several parts (title, meta, a figure, an action) that sits beside other subjects in a grid.
  • A panel that groups one topic on a dashboard ("Tuition", "Next exam").
  • A whole surface that opens one thing (.card--link).

Use something else when

  • A list of similar items: use List. Stacked cards for a list is the most common sign of a hand-made page.
  • A grid of destinations on an overview page: use Link card.
  • A few key figures for a page: use Stat row.
  • A big number with its label, and maybe a trend: use KPI card.
  • The one next step on a page: use Spotlight.
  • Label and value details: use Key-value. Put the dl inside the card when the card needs a title.

Where it goes. In an auto grid (.auto-grid) on overview pages, two or three across on wide screens and one per row on phones; or as a single panel in a column. Cards on the canvas are white; cards inside a white panel use .card--fill.

Examples

A panel with a figure and an actionTitle, meta, the figure that matters, and one action.
Tuition
Odd semester 2026/2027
Due in 5 days
Rp 7.500.000
Pay by bank transfer or virtual account.
<div class="card" style="max-width: 340px; width: 100%;">
  <div style="display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;"><div><div class="card__title">Tuition</div><div class="card__sub">Odd semester 2026/2027</div></div><span class="badge badge--warning">Due in 5 days</span></div>
  <div style="font: 600 28px/34px var(--font); letter-spacing: -0.022em; color: var(--text-strong); margin: 18px 0 2px; font-variant-numeric: tabular-nums;">Rp 7.500.000</div>
  <div class="card__sub">Pay by bank transfer or virtual account.</div>
  <button class="btn btn--primary btn--md btn--block" style="margin-top: 16px;">Pay tuition</button>
</div>
Linked cards in a gridThe whole card is one link; it sinks on press.
<div class="auto-grid" style="--min: 220px;">
  <a class="card card--link" href="#seminar"><div class="card__media"><span class="ic" style="font-size: 28px;" aria-hidden="true">image</span></div><span class="badge badge--accent">Seminar</span><div class="card__title" style="margin-top: 10px;">Designing for slow networks</div><div class="card__sub">Thursday, 13:00 · Hall B</div></a>
  <a class="card card--link" href="#workshop"><div class="card__media"><span class="ic" style="font-size: 28px;" aria-hidden="true">image</span></div><span class="badge badge--outline">Workshop</span><div class="card__title" style="margin-top: 10px;">Writing a strong cover letter</div><div class="card__sub">Friday, 10:00 · Room B2</div></a>
</div>
Fill on whiteInside a white panel, use the fill so you never get a ring inside a ring.
This week
Statistics quiz
Opens Wednesday at 09:00 · 30 minutes
<div class="card" style="max-width: 420px;">
  <div class="card__title">This week</div>
  <div class="card card--fill" style="margin-top: 12px;"><div class="card__title">Statistics quiz</div><div class="card__sub">Opens Wednesday at 09:00 · 30 minutes</div></div>
</div>

Anatomy

PartWhat it is
.cardRequired. White, large radius, hairline ring, 16 px padding.
.card--fillQuiet fill, no ring.
.card--linkOn an <a>: the whole card opens one thing and sinks to 98.5 % on press.
.card__mediaOptional 132 px media area flush with the top edge.
.card__titleThe subject, 16 px semibold.
.card__subMeta under the title, 13 px subtle.

Variants and sizes

Class or attributeWhen
cardWhite with a ring, on the canvas.
card--fillQuiet fill, on white surfaces.
card--linkThe whole card is one link.

States

StateHow
hover (card--link)The ring turns --line-strong.
:active (card--link)Sinks to scale(0.985) in 90 ms, back on --spring-snappy.
loadingSkeleton shapes inside the same card.
emptyAn empty state inside the card.

Motion and microinteractions

  • Linked cards: press sinks to 0.985 in 90 ms and springs back on --spring-snappy; the ring color changes over --d-fast.
  • No hover lift, no shadow growth.
  • Cards that arrive together may stagger once (list stagger).

Accessibility

  • A linked card is one <a>: its text is the link name, so keep it short (title, meta). Do not put buttons or other links inside it.
  • A panel card with its own heading uses a real heading element when it starts a section of the page.
  • Media placeholders and decorative icons are aria-hidden; real images need alt.

Do and don't

Do

  • Give each card one subject and at most one primary action.
  • Use .card--fill inside white surfaces.
  • Lay cards out with .auto-grid, not custom grids.

Don't

  • Add box-shadow, borders or a custom radius.
  • Use cards for a list of rows.
  • Nest a white card inside a white card.