Section

Page-section spacing and surfaces, section headers, and accent bars for headings.

Default

Section content

The section sets vertical rhythm; the container sets width.

<section class="sui-section">
  <div class="sui-container">
    <h2>Section content</h2>
    <p>The section sets vertical rhythm; the container sets width.</p>
  </div>
</section>

Sizes

Small

Default

Large

<section class="sui-section-sm">
  <div class="sui-container">
    <h3>Small</h3>
  </div>
</section>
<section class="sui-section">
  <div class="sui-container">
    <h3>Default</h3>
  </div>
</section>
<section class="sui-section-lg">
  <div class="sui-container">
    <h3>Large</h3>
  </div>
</section>

Raised

Raised section

A panel that lifts off the page.

<section class="sui-section-sm sui-section-raised">
  <h2>Raised section</h2>
  <p>A panel that lifts off the page.</p>
  <button class="sui-btn sui-btn-primary">Get started</button>
</section>

Inset

Inset section

A panel pressed into the page.

<section class="sui-section-sm sui-section-inset">
  <h2>Inset section</h2>
  <p>A panel pressed into the page.</p>
  <button class="sui-btn">Learn more</button>
</section>

Alternate

Alternate band

Alternate with plain sections to separate long pages.

<section class="sui-section-sm sui-section-alt">
  <div class="sui-container">
    <h2>Alternate band</h2>
    <p>Alternate with plain sections to separate long pages.</p>
  </div>
</section>

Bordered

Bordered section

Hairlines above and below.

<section class="sui-section-sm sui-section-bordered">
  <div class="sui-container">
    <h2>Bordered section</h2>
    <p>Hairlines above and below.</p>
  </div>
</section>

Section Header

Latest articles

Guides, release notes and design deep-dives from the team.

View all
<div class="sui-section-header">
  <div>
    <h2 class="sui-section-title">Latest articles</h2>
    <p class="sui-section-subtitle">Guides, release notes and design deep-dives from the team.</p>
  </div>
  <a class="sui-btn sui-btn-sm sui-section-action" href="#">View all</a>
</div>

Centered Header

Pricing

Simple plans that grow with your team.

<div class="sui-section-header sui-section-header-center">
  <div>
    <h2 class="sui-section-title sui-heading-accent sui-heading-accent-bottom">Pricing</h2>
    <p class="sui-section-subtitle">Simple plans that grow with your team.</p>
  </div>
</div>

Bordered Header

Projects

Everything your team is working on.

New project
<div class="sui-section-header sui-section-header-bordered">
  <div>
    <h2 class="sui-section-title">Projects</h2>
    <p class="sui-section-subtitle">Everything your team is working on.</p>
  </div>
  <a class="sui-btn sui-btn-sm sui-btn-primary sui-section-action" href="#">New project</a>
</div>

Heading Accent

Our selected work

A longer heading that wraps onto a second line keeps the bar beside both lines

Right-to-left heading

<h2 class="sui-heading-accent">Our <em>selected</em> work</h2>
<h3 class="sui-heading-accent" style="max-width:420px;margin-top:24px;">A longer heading that wraps onto a second line keeps the bar beside both lines</h3>
<h3 class="sui-heading-accent" dir="rtl" style="margin-top:24px;">Right-to-left heading</h3>

Accent Colors

Primary

Success

Danger

Warning

Info

<h3 class="sui-heading-accent">Primary</h3>
<h3 class="sui-heading-accent sui-heading-accent-success" style="margin-top:16px;">Success</h3>
<h3 class="sui-heading-accent sui-heading-accent-danger" style="margin-top:16px;">Danger</h3>
<h3 class="sui-heading-accent sui-heading-accent-warning" style="margin-top:16px;">Warning</h3>
<h3 class="sui-heading-accent sui-heading-accent-info" style="margin-top:16px;">Info</h3>

Accent Styles

Large accent

Bottom accent

Large bottom accent

<h2 class="sui-heading-accent sui-heading-accent-lg">Large accent</h2>
<h2 class="sui-heading-accent sui-heading-accent-bottom" style="margin-top:32px;">Bottom accent</h2>
<h2 class="sui-heading-accent sui-heading-accent-bottom sui-heading-accent-lg" style="margin-top:32px;">Large bottom accent</h2>

Reference

Class / Token / AttributeDescription
sui-sectionBlock padding --sui-section-space (96px); below 768px it uses --sui-section-space-sm (64px) instead
sui-section-sm--sui-section-space-sm: 64px; --sui-section-space-xs (40px) below 768px
--sui-section-space-xs40px; the mobile padding of .sui-section-sm
sui-section-lg--sui-section-space-lg: 128px; 62.5% of it (80px) below 768px
sui-section-raised sui-section-insetPanel with large radius and 40px inline padding (20px on mobile)
sui-section-alt--sui-bg-light background band
sui-section-borderedHairlines at the block start and end
sui-section-headerTitle block and action; the action wraps below on narrow screens
sui-section-header-centerCentred title and subtitle; also centres a bottom accent
sui-section-header-borderedHairline under the header
sui-section-title sui-section-subtitle sui-section-actionHeader title (1.75rem), muted subtitle (max 60ch) and action at the inline end
sui-heading-accent4px primary bar at the inline start of a heading
sui-heading-accent-lgThicker 6px bar
sui-heading-accent-bottomBar under the heading instead (48px wide, 64px with .sui-heading-accent-lg)
sui-heading-accent-{color}success, danger, warning, info (default is primary)
--sui-heading-accentCustom bar colour, set on the heading or any ancestor
--sui-section-header-gapSpace below the header: 40px; 70% of it (28px) below 768px
dir="rtl"No extra class: the accent bar sits at the inline start, the action at the inline end

Delete this item?

This action cannot be undone. This will permanently delete the item and remove all associated data.