Skip to main content
Login

Sign in to access your account

Persona - National Design System

Persona shows a person's avatar, name and role, with an optional row of actions or details

Overview

A Persona holds an Avatar and up to three lines of text: the name, the role and a short description, such as an email address. After a divider, it can hold a row of actions or a Definition List of details.

Pick another component when:

  • the person is one of many items in a grid or a list: Cards, with an avatar header.
  • you show only a photo or initials: Avatar.
  • the person is the author of a quotation: Quote, which holds its own small Persona.

Markup

Options
Size
Layout
Extra
More
Preview
Noura Al-Qahtani System Administrator noura@example.gov.sa
<div class="nds-persona"> <div class="nds-avatar"> <img src="../docs-assets/img/avatar2.webp" alt=""> </div> <div class="nds-persona-info"> <span class="nds-persona-name">Noura Al-Qahtani</span> <span class="nds-persona-role nds-truncate">System Administrator</span> <span class="nds-persona-description">noura@example.gov.sa</span> </div> </div>

Built-in Features

  • One Size Class for Every Part

    A size class sets the size of the avatar and of all three lines together. You change one class, not four sizes.

  • Avatar Size From the Persona

    The avatar inside takes its size from the Persona, so it needs no size class. A size class on the avatar still wins.

  • Full Row After the Divider

    Every element after the nds-divider takes its own full row, below the avatar and the text: an action row, a definition list, or your own content.

  • Knobs for Each Line

    The name, the role and the description each have a font size, a line height and a color knob, such as --persona-name-color. Restyle one line and keep the others.

Best Practices

  • Give the avatar photo alt="". The name is next to it, so a screen reader would read the name twice.
  • Keep the name, the role and the description to one line each. The description is one short identifier, such as an email address or a job code, not a sentence.
  • Leave out any text line the person does not have. Do not write an empty <span>.
  • Add actions only when they act on this person or this account. A directory entry that only shows a person needs no actions.
  • Put the divider before the actions or the details. Without it, nothing separates them from the name above.
  • For a byline with only a name, write the name as text. The full Persona adds weight that a byline does not need.

API

CSS Custom Properties

Set these knobs in the style attribute of .nds-persona. The MD and SM classes set the size knobs on the same element, so a rule in your stylesheet can lose to them.

Property Default Controls
--persona-name-FS var(--typo-text-xl-FS) Name font size
--persona-name-LH var(--typo-text-xl-LH) Name line height
--persona-name-color var(--text-display) Name color
--persona-role-FS var(--typo-text-lg-FS) Role font size
--persona-role-LH var(--typo-text-lg-LH) Role line height
--persona-role-color var(--text-primary-paragraph) Role color
--persona-description-FS var(--typo-text-md-FS) Description font size
--persona-description-LH var(--typo-text-md-LH) Description line height
--persona-description-color var(--text-secondary-paragraph) Description color
--avatar-size 80px (MD 64px, SM 48px) The avatar size. See Avatar

MD takes every text one step down the type scale, and SM two steps.

Tokens

It reads these shared tokens. A change to one also changes other components: see Tokens.

Source: the var() reads in _sass/components/_persona.scss.

TokenPreviewValue
--text-display
Read by --persona-name-color

var(--colors-neutral-800)
Dark mode var(--colors-neutral-100)
--text-primary-paragraph
Read by --persona-role-color

var(--colors-neutral-700)
Dark mode var(--colors-neutral-300)
--text-secondary-paragraph
Read by --persona-description-color

var(--colors-neutral-500)
Dark mode var(--colors-neutral-400)
Last Modified Date: 05/11/2026 - 12:02 PM
Was this page useful?
60% of users said Yes from 2843 Feedbacks