Skip to content

Krigsvold layout gallery

The shape of the page.

Structure, reading measure, and responsive composition are part of the design system.

Complete pages

Neutral examples using the same layouts and tokens that ship in the packages.

Article

A reading column, page metadata, and supporting material that follows the article.

Open article example

Landing page

A title region, modular sections, bounded card grids, and contrasting appearance.

Open landing example

Structural primitives

These arrangements respond to their containing region, including nested and narrow layouts.

  • Stack
  • Cluster
  • Grid
  • Sidebar
  • Split

A useful reading measure

The main region keeps a usable minimum. When a supporting region no longer fits beside it, both flow vertically in their source order.

Long references such as --krigsvold-layout-sidebar-width remain readable without forcing the page wider than the viewport.

Paired regions

Text and supporting material can share a feature region. This family defaults to equal, with equal, wide-start, and wide-end options.

Independent defaults

Gutters, gaps, reading widths, and section rhythm come from the core package.

Built from real pages

Source sites informed these patterns; the independent references exercise the current releases.

Explore the Astro, React and Jekyll references for canonical pages, dashboards and a scientific workspace. The examples above focus on page composition.

Use the composition

---
import { DocumentationLayout, SiteHeader } from '@krigsvold/astro';
---
<DocumentationLayout title="Your guide">
  <SiteHeader slot="header" name="Your project" />
  <nav slot="navigation" aria-label="Contents">
    <a href="#begin">Begin here</a>
  </nav>
  <h2 id="begin">Begin here</h2>
  <p>Your own content.</p>
</DocumentationLayout>

Read the design system specification. The downloaded JSON reference includes layout defaults and live-site links.

The same structure after dark.

Light and Dark

Layout consumes semantic color roles rather than embedding another palette.

Framework-independent foundations

Use the optional layout CSS directly, or use the Astro wrappers for named slots and complete documents.

When you make a choice, this site remembers it in a first-party preference cookie for up to a year. About cookies and storage.