Skip to main content
Login

Sign in to access your account

Prose Layout - National Design System

Prose styles classless text, such as the output of a rich text editor or a CMS, inside one wrapper

Overview

Prose is one class, nds-prose, on the element that holds the text, such as an article. The elements inside it need no classes. Headings, links, lists and tables have their look on every page. Prose adds the space between them, and styles quotes and image captions. Prose needs no JavaScript.

Pick another component when:

  • the parts are components, not text, and each needs space below it: Block
  • the quote is a featured quote with a title and an author: Quote
  • the table needs sorting, pages or sub-rows: Tables

Markup

Preview

Passport Renewal

Renew your passport online through Absher. The fee is 300 riyals for 5 years.

The new passport is ready for pickup within 3 working days.

Eligibility

  • Saudi citizens aged 21 or older
  • A passport that expires within 6 months
    • Or a passport that has already expired

Steps

  1. Sign in to Absher
  2. Open Passports
    1. Choose Renew Passport
    2. Pick the length
      1. 5 years
      2. 10 years
  3. Pay the fee
Bring the old passport when you pick up the new one.
Flag of Saudi Arabia
The flag on the passport cover
StageDuration
Review2 days
Printing1 day

For help, call 992 from Sunday to Thursday.

<!-- A classless article: no element inside has a class, except the alert component --> <article class="nds-prose"> <h2>Passport Renewal</h2> <p>Renew your passport online through <a href="#">Absher</a>. The fee is <strong>300 riyals</strong> for 5 years.</p> <p>The new passport is ready for pickup within <em>3 working days</em>.</p> <h3>Eligibility</h3> <ul> <li>Saudi citizens aged 21 or older</li> <li>A passport that expires within 6 months <ul> <li>Or a passport that has already expired</li> </ul> </li> </ul> <h3>Steps</h3> <ol> <li>Sign in to Absher</li> <li>Open Passports <ol> <li>Choose Renew Passport</li> <li>Pick the length <ol> <li>5 years</li> <li>10 years</li> </ol> </li> </ol> </li> <li>Pay the fee</li> </ol> <div class="nds-alert nds-card" data-status="info" role="alert"> <span class="nds-feedback nds-alert-icon nds-outline"> <span class="nds-feedback-icon"> <i class="nds-icon" aria-hidden="true"></i> </span> </span> <div class="nds-alert-content"> <div class="nds-alert-text"> <span class="nds-alert-title">National address</span> <p class="nds-alert-description">An old address delays the delivery of the new passport.</p> </div> </div> </div> <blockquote>Bring the old passport when you pick up the new one.</blockquote> <figure> <img src="../assets/icon/SAflag.min.svg" alt="Flag of Saudi Arabia" width="120" height="84"> <figcaption>The flag on the passport cover</figcaption> </figure> <table> <thead> <tr><th>Stage</th><th>Duration</th></tr> </thead> <tbody> <tr><td>Review</td><td>2 days</td></tr> <tr><td>Printing</td><td>1 day</td></tr> </tbody> </table> <hr> <p>For help, call 992 from Sunday to Thursday.</p> </article>

Built-in Features

  • Classless Markup

    The elements inside the wrapper need no classes. Editor and CMS output renders as it is.

  • Components Keep Their Look

    Prose rules weigh no more than one class, and they load before the components. A component inside the wrapper, such as an nds-table, keeps its own styles.

  • Vertical Rhythm

    Paragraphs, lists, quotes, figures, tables, code blocks and alerts get the same gap below them. h2 and h3 get a larger gap above them, which grows with the screen width up to 1200px. h4 to h6 get 24px.

  • Flush Edges

    The first child has no gap above it and the last child has no gap below it, so the wrapper sits flush in a card or a section body. The last child of a quote, a list item or a table cell has no gap below it either.

  • Long Words Break

    A long URL or word breaks to fit the width, so it never pushes the page sideways on a phone. A table cell that holds one can shrink too.

  • List Spacing

    List items get space between them. Right-to-left pages get more, because Arabic letters fill more of the line. Nested ordered lists use 1., then a., then i.

  • Editor Preview

    The typing area of the Editor uses the same spacing, so a draft looks like the published text.

Best Practices

  • Use prose for text you do not write element by element: CMS body fields, editor output, articles, help and policy text.
  • Put nds-prose once, on the element the CMS renders into. Do not put it on each paragraph.
  • Split the page with sections. Put prose on the text inside a section body.
  • Start the headings inside prose at h2. The page title is the hero’s h1.
  • Do not add nds-section-title or nds-block-title to a heading inside prose. Bare headings are already styled. Those classes give the heading a page-level size.
  • Use the Quote component for a featured quote with an author. A bare blockquote is a quote inside the text.
  • Use the Tables component for a table that needs sorting, pages or a phone layout. A bare table is a static table.
  • Give every image an alt text.

API

Classes

Class Element Effect
nds-prose The element that holds the text Styles the classless elements inside it

Element Styles

Some elements are styled on every page, with or without nds-prose. Others are styled only inside the wrapper.

Element Effect
h1 to h6 Everywhere: size, weight and color. Inside prose: a larger gap above h2 to h6
ul, ol Everywhere: indent. Inside prose: a gap below, space between items, and 1., a., i. markers on nested ol
img Everywhere: full width at most. Inside prose: rounded corners (--radius-md), and a gap above and below a direct child img or picture. A component’s own image, such as an avatar, keeps its shape
a Everywhere: the Link style
hr Everywhere: the Divider. Inside prose: a wider gap above and below
table Everywhere: the Tables style. Inside prose: a gap below
p, figure, pre Inside prose: a gap below. A long line in a pre scrolls sideways
video, iframe Inside prose: full width at most. A video keeps its shape. An iframe keeps its height: set aspect-ratio on it for a player
blockquote Inside prose: a gap below, a 3px side border and secondary text color. A Quote’s blockquote keeps its own look
figcaption Small, secondary text below the image, inside prose or not. A Quote’s author line keeps its own look
Last Modified Date: 16/11/2026 - 09:13 PM
Was this page useful?
60% of users said Yes from 2843 Feedbacks