Icons
One icon set, Phosphor, drawn mostly in Fill. Icons support words; they never replace them, except for search, menu, close and phone.
Updated
Icon set
Twenty-six icons from Phosphor Icons 2.1.1, plus five brand marks for social links. Each one is a component in 02 Library – Icons.
Navigation and actions
- icon/search
- icon/menu
- icon/close
- icon/caret
- icon/arrow
- icon/external-link
- icon/plus
- icon/minus
- icon/check
Status
- icon/info
- icon/success
- icon/warning
- icon/error
- icon/spinner
Content and contact
- icon/phone
- icon/mail
- icon/map-pin
- icon/clock
- icon/calendar
- icon/file
- icon/download
- icon/copy
- icon/globe
- icon/shield
Theme
- icon/sun
- icon/moon
Social (brand marks)
- icon/facebook
- icon/instagram
- icon/linkedin
- icon/x
- icon/youtube
Weights
Fill is the default, because solid shapes stay clear on small, low-resolution screens and in bright light. Two exceptions keep icons that would change shape in Fill.
-
Fill
Default for every icon.
-
Bold
Line-only icons whose Fill version changes shape: caret, close, menu, plus, minus, check and search.
-
Regular
Only the arrow and the spinner, which looked too heavy in Fill.
No Thin, Light or Duotone. Selected or active states use colour or a background, never a different weight.
Sizes
Components are drawn at 24px. Resize the icon to match the text next to it. Tap targets come from the padding around the icon, not the icon itself.
24px
size/icon/lg (not in the library yet)
Standalone icons, such as menu, close and search in the header.
20px
size/icon/md
Next to 16px text. The most common size.
16px
size/icon/sm
Next to 14px text: tags, badges and table cells.
Status icons
Each status has its own shape, so it still works without colour, in forced-colours mode and in print. Always start the message with words that say which it is.
-
Information
Circle with i
-
Success
Circle with a tick
-
Warning
Triangle, like road signs
-
Error
Circle with !
Using icons
Icons help people scan. Words carry the meaning.
- Put words next to icons
Every icon sits next to text that says the same thing.
- Only four stand alone
Search, menu, close and phone may appear without visible text. Each needs a hidden label for screen readers.
- Use text colour or brand green
Icons take the colour of the text beside them, or brand green. Status icons use their status colour.
- One meaning per icon
Use each icon only for the job in its description. Don’t use the shield for privacy or the warning triangle for errors.
- Nigerian context only
No foreign currency symbols or culture-specific images. Use ₦ for money.
- Don’t mix sets
Only icons from 02 Library – Icons. Don’t draw or import others.
Brand marks
Facebook, Instagram, LinkedIn, X and YouTube are the only icons not from Phosphor. They’re the official marks, one colour, used only to link to an organisation’s own accounts.
- Use as supplied
Don’t redraw, crop, recolour or restyle a brand mark.
- Black or white
Black on light backgrounds, white on dark. Full brand colour only in share buttons.
- Name the link
Use the brand name as the link’s accessible name, for example “NITDA on LinkedIn”.
Asking for a new icon
The set grows only when a component or service needs it. Ask the NDS team before adding one.
- The Fill test
Use the Fill version unless Fill changes the icon’s shape or meaning; then use Bold.
- Planned next
Naira for the naira input, and upload for file upload.
- Custom icons
NIN, BVN, voter’s card, NYSC and marriage aren’t in Phosphor. They’ll be drawn as solid shapes on Phosphor’s 256-unit grid to match Fill.
Accessibility
Icons must never be the only way someone understands what something is or does.
- Icons next to text are hidden from screen readers with aria-hidden="true", so nothing is read twice.
- Icon-only buttons have an accessible name, such as “Close” or “Open menu” (WCAG 1.1.1, 4.1.2).
- Tap targets are at least 24 × 24px, and 44 × 44px for menu and close on mobile. The padding makes up the size (WCAG 2.5.8).
- Icons that carry meaning reach 3:1 against their background (WCAG 1.4.11).
- The spinner stops rotating when people ask for reduced motion, and “Loading…” is announced in text.
Using the icons
The same names work in Figma, code and WordPress.
- In Figma
Insert from 02 Library – Icons. Resize the instance to 24, 20 or 16px; the aspect ratio is locked. Don’t detach.
- In code
Use the icon’s code name from its description, for example
nds-icon-calendar, as inline SVG. No icon fonts. Exact names to be confirmed with the developers.- In WordPress
Blocks include the icons they need. Don’t upload icon images.
- New icons
Ask the NDS team. See “Asking for a new icon”.
References
- Phosphor Icons phosphoricons.com
- WCAG 2.2: Non-text content, 1.1.1 w3.org
- WCAG 2.2: Non-text contrast, 1.4.11 w3.org
Feedback
Is this page useful?