Section
Content sections with consistent vertical spacing, titles, subtitles, and color variants aligned to the vertical rhythm.
Default Section
Default section
Section Title
A brief description of this section and its purpose.
Section body content goes here. The section provides consistent vertical padding and spacing for page layout.
<section class="ug-section">
<h2 class="ug-section__title">Section Title</h2>
<p class="ug-section__subtitle">A brief description of this section and its purpose.</p>
<p>Section body content goes here. The section provides consistent vertical padding and spacing for page layout.</p>
</section> Compact Section
Compact variant
Compact Section
Reduced padding for tighter layouts.
This section uses less vertical space while maintaining rhythm alignment.
<section class="ug-section ug-section--compact">
<h2 class="ug-section__title">Compact Section</h2>
<p class="ug-section__subtitle">Reduced padding for tighter layouts.</p>
<p>This section uses less vertical space while maintaining rhythm alignment.</p>
</section> Large Section
Large variant
Large Section
Extra vertical padding for prominent sections.
Use the large variant for hero-like content areas or to create visual breathing room.
<section class="ug-section ug-section--large">
<h2 class="ug-section__title">Large Section</h2>
<p class="ug-section__subtitle">Extra vertical padding for prominent sections.</p>
<p>Use the large variant for hero-like content areas or to create visual breathing room.</p>
</section> Color Variants
Brown section
Brown Section
NPS brown background for branded sections.
<section class="ug-section ug-section--brown">
<h2 class="ug-section__title" style="color:#fff">Brown Section</h2>
<p style="color:#fff">NPS brown background for branded sections.</p>
</section> Green section
Green Section
NPS green background for nature-themed content.
<section class="ug-section ug-section--green">
<h2 class="ug-section__title" style="color:#fff">Green Section</h2>
<p style="color:#fff">NPS green background for nature-themed content.</p>
</section> Blue section
Blue Section
NPS blue background for informational sections.
<section class="ug-section ug-section--blue">
<h2 class="ug-section__title" style="color:#fff">Blue Section</h2>
<p style="color:#fff">NPS blue background for informational sections.</p>
</section> Red section
Red Section
NPS red background for alert or highlight sections.
<section class="ug-section ug-section--red">
<h2 class="ug-section__title" style="color:#fff">Red Section</h2>
<p style="color:#fff">NPS red background for alert or highlight sections.</p>
</section> Light section
Light Section
Light background for subtle contrast against a white page.
<section class="ug-section ug-section--light">
<h2 class="ug-section__title">Light Section</h2>
<p>Light background for subtle contrast against a white page.</p>
</section> Class Reference
| Class | Description |
|---|---|
.ug-section | Section container with vertical padding |
.ug-section__title | Section heading |
.ug-section__subtitle | Section subtitle/description |
.ug-section--compact | Reduced vertical padding |
.ug-section--large | Increased vertical padding |
.ug-section--brown | NPS brown background |
.ug-section--red | NPS red background |
.ug-section--green | NPS green background |
.ug-section--blue | NPS blue background |
.ug-section--light | Light gray background |