Skip to main content
Login

Sign in to access your account

Quote - National Design System

A quote shows one quoted statement in a card, with an optional title and the name of the person who said it

Overview

A quote is a figure that holds a blockquote and a figcaption. The blockquote holds an optional title and the quoted text, between two large quote marks. The figcaption names the author with a small Persona.

Pick another component when:

  • a short quote with no author, inside running text: a plain blockquote in Prose
  • the text is a message from the system to the user: Alert

Markup

Preview
The Power of Design

A well-crafted design system transforms how teams build products, creating consistency that users feel without necessarily seeing.

Fatima Al-Harbi Head of Design
<figure class="nds-quote"> <blockquote class="nds-quote-body"> <span class="nds-quote-title">The Power of Design</span> <p class="nds-quote-text">A well-crafted design system transforms how teams build products, creating consistency that users feel without necessarily seeing.</p> </blockquote> <figcaption class="nds-quote-author"> <div class="nds-persona nds-sm"> <div class="nds-avatar"> <img src="../docs-assets/img/avatar5.webp" alt=""> </div> <div class="nds-persona-info"> <cite class="nds-persona-name">Fatima Al-Harbi</cite> <span class="nds-persona-description">Head of Design</span> </div> </div> </figcaption> </figure>

Built-in Features

  • Semantic Markup

    <figure>, <blockquote>, <figcaption> and <cite> mark up the quote the way the HTML standard describes a quote with its source.

  • Quote Marks

    CSS draws the opening and closing marks, so screen readers skip them and they never block text selection. In English, the marks move to the other corners and mirror.

  • Persona Author

    The author is a small Persona, so it shows the same avatar, name and role as everywhere else on the site.

  • Phone Layout

    On phones, the marks move above and below the text, so the text takes the full width. A quote with no size class also steps down one size, to MD. A size you wrote stays as written.

  • CSS Knobs

    Twelve custom properties set the background, the border, the radius, the padding, the marks, and the title and text type.

Best Practices

  • Use a quote for one statement that supports the page: a testimonial, a research finding or a policy citation.
  • Put the quote next to the text it supports. A quote with no context is hard to judge.
  • Pick the size by the place: LG makes the quote a highlight of the page, MD fits a narrow column, and SM sits inside an article at the size of its text, or in a card or a side column.
  • Add cite="URL" on the blockquote when the source has a web address. It does not show, but it names the source for search engines and assistive tools.
  • Keep the title to one to six words. Leave it out rather than write a long one.
  • Do not use a quote for help text or for the words of the interface. Write them as plain text.
  • Keep the Persona at nds-sm. A larger Persona takes attention from the quote.
  • Do not stack quotes one under another. For several testimonials, use a Swiper or a grid of Cards.

API

CSS Custom Properties

Set these on .nds-quote, or on a parent. A value you set wins over the size classes and the phone step.

Property Default Controls
--quote-background-default var(--background-card) Card background
--quote-border var(--border-neutral-primary) Card border color
--quote-radius var(--radius-lg) Card corner radius
--quote-padding var(--spacing-2xl) (xl on MD, lg on SM) Side padding. The top and bottom padding is this plus --spacing-sm. It also sets how far the marks reach into the padding
--quote-mark-color var(--text-primary-strong) Quote mark color
--quote-mark-size 48px (40px on MD, 32px on SM) Width and height of each quote mark
--quote-title-FS var(--typo-display-xs-FS) (text-xl on MD, text-lg on SM) Title font size
--quote-title-LH var(--typo-display-xs-LH) (text-xl on MD, text-lg on SM) Title line height
--quote-title-color var(--text-display) Title color
--quote-text-FS var(--typo-text-xl-FS) (lg on MD, md on SM) Quoted text font size
--quote-text-LH var(--typo-text-xl-LH) (lg on MD, md on SM) Quoted text line height
--quote-text-color var(--text-primary-paragraph) Quoted text color

Tokens

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

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

TokenPreviewValue
--background-card
Read by --quote-background-default

var(--colors-base-white)
Dark mode var(--background-default)
--text-display
Read by --quote-title-color

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

var(--colors-neutral-700)
Dark mode var(--colors-neutral-300)
--text-primary-strong
Read by --quote-mark-color

var(--colors-primary-700)
Dark mode var(--colors-primary-400)
--border-neutral-primary
Read by --quote-border

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