xPulse
πŸ‡¬πŸ‡§ EN

4. Layout & Grid

The layout system of @xpulse/theme is based on CSS Custom Properties and simple utility classes.

Key Layout Tokens

Token Description Default
--xpulse-content-width Maximum width of the main content 1100px
--xpulse-sidebar-width Width of sidebars and navigation 260px
--xpulse-gap-layout Standard spacing between elements 24px

Base Structure

Most xPulse pages use a centred layout:

.xpulse-shell {
width: min(var(--xpulse-content-width), calc(100% - 32px));
margin: 32px auto;
}

Responsive Behaviour

At screen widths below 720px, many layouts automatically switch to a single-column view (e.g. TOC + content).

Grid & Flex Utilities

Example:

<div class="xpulse-grid" style="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));">
<!-- Cards -->
</div>
en/styleguide/05-layout.md 2026-04-17