Skip to content

Official government website An official website of the Federal Government of Nigeria

How you know
Federal Ministry of Communications, Innovation & Digital Economy Nigerian Design Standards

Card

Presents one self-contained item, such as a news story, a service or a report, with a short summary.

Added · New

Live example

Card
Controls
Property Control What it does
Clickable: the whole card is one link. Static: the card holds its own actions.
Horizontal puts the image at the side, for featured items in wide columns.
Full bleed: no fill, border or side padding, so cards line up in a grid.

Overview

A card presents one self-contained item with an optional image, a caption, a title, a short summary and actions. Decide first what the card does: a clickable card is one link, a static card holds its own actions.

Use a card for

  • One item with a title and a short summary
  • A set of items people scan and choose from
  • Featured items on a homepage or listing

Don’t use a card for

  • Long lists people compare or sort (use a table)
  • Short, urgent messages (use an alert)
  • A person (use the person card)

Examples

One component with four choices: Interaction, Direction, Size and Padding. These are the three you will use most.

1 Oct 2026

Nigeria launches its national digital postcode system

Every addressable building gets an 11-character code.

Static

Holds its own actions: one link, or one or two buttons. The card itself isn’t clickable. Horizontal suits featured items in wide columns.

Specifications

The properties of the card. The same in HTML and React.

Card properties
Property Type Possible values Description
href string
  • URL
Clickable cards. The whole card goes here. Leave it out for static cards.
title string
  • text
Says what the item is. Can be left out for image-led cards.
body string
  • text
Required. One or two sentences.
caption string
  • text
Optional. One line, such as the date.
image object
  • src
  • alt
  • ratio
Optional. ratio: 1:1, 3:4, 4:3, 4:5, 5:4, 9:16 or 16:9.
direction string
  • "vertical"
  • "horizontal"
Optional. Defaults to "vertical".
size string
  • "small"
  • "large"
Optional. Defaults to "small".
padding string
  • "padded"
  • "full-bleed"
Optional. Defaults to "padded".
actions array
  • a link, or 1–2 buttons
Static cards only. Never a link and buttons together.

In code, a card is an <article>. On a clickable card, the link sits on the title and is stretched over the whole card with CSS, so the link text is the title, not the whole card. A static card holds its own link or buttons. Images need alt text, or alt="" if they are decorative. Never put buttons or links inside a clickable card.

Tokens

Card tokens and contrast
Part Token Contrast on the page
Card surface/canvas · 1px border/subtle (border/width/thin) · radius/050 —
Image nds-image, placeholder surface/container —
Caption Utility/overline (12px) · text/secondary 6.6:1
Title Title/small (18px); Title/medium on large · text/primary 17.6:1
Body Body/small (14px); Body/medium on large · text/secondary 6.6:1
Padding spacing/200 (small) · spacing/400 (large) · none on full bleed —
Hover and focus surface/muted tint · title underlined · 3px focus ring —

Use cases

Do

Make the whole card one link to one place. The title is the link text.

Don’t

1 Oct 2026

Nigeria launches its national digital postcode system

Every addressable building gets an 11-character code.

Don’t put buttons or links inside a clickable card, or mix a link with buttons. A static card holds one link, or one or two buttons.

Layout

How cards fit into a page.

Fills its column
360px and 480px are default widths only.
One link, or its own actions

A clickable card is one link. A static card holds its own actions. Never mix the two.

Horizontal for featured items

In wide columns. The image fills the height and is cropped to fit.

Actions only on wide cards

About 480px or more. Narrower cards are clickable, or stack vertically.

Full bleed in grids

No fill, border or side padding, so cards line up cleanly.

Copywriting

How to write a card.

The title says what it is

“Register a business name”, not “Learn more”.

One or two sentences

The body summarises. It doesn’t hold the whole article.

Caption is one line
A date or a type: “1 Oct 2026”.
Name the action
“Apply”, “Read the report”, not “Click here”.
Describe the image

Write alt text, or leave alt empty if it’s decorative.

Keep a set alike
The same parts in the same order across a grid.

Examples

Card copywriting examples
Write Don’t write Why
Register a business name Learn more The title is the link text.
Read the report Click here Say where the action goes.
1 Oct 2026 Posted on Wednesday the 1st of October One short line.
Every addressable building gets a code. The full article A card summarises.
Apply · Details Apply · Details · Share · Save One or two actions at most.

Accessibility

A clickable card is one link, named by its title. On a static card, people reach each action in turn with the keyboard.

Keyboard interaction for cards
Key What it does
Tab Moves to the card’s link (clickable) or to each of its actions (static).
Shift + Tab Moves back.
Enter Follows the link, or activates the button.
  • A clickable card has one link, named by its title, so screen readers don’t read the whole card as the link (WCAG 2.4.4).
  • There are no buttons or links inside a clickable card (WCAG 4.1.2).
  • Images have alt text, or alt="" when they are decorative (WCAG 1.1.1).
  • Hover isn’t the only cue: the title underlines, and focus shows a 3px ring (WCAG 1.4.1, 2.4.7).
  • Title 17.6:1; caption and body 6.6:1 on surface/canvas (WCAG 1.4.3).

For developers

Copy the code for HTML, WordPress or React from the Code tab in Live example. The options are listed under Specifications.

For designers

Use nds-card from 01 Library – Foundations. Choose Interaction first, then Direction, Size and Padding. Swap the image ratio with the Image property and use the toggles for caption, title and actions. For a person, use nds-person-card. Don’t detach it.

References

Feedback

Report a problem with this page