FOUNDATION Design principles Reusable, consistent, and easy to extend

This stylesheet is organized around design tokens first, then shared layout primitives, then components. That makes it easier to keep visual language consistent while adding new pages.

Use tokens for values, components for repeated patterns, and utilities for one-off layout adjustments.
TOKENS Foundations Color, spacing, type, and shape
Token GroupExamplesPurpose
Color--color-bg, --color-surface, --color-infoBuilds a consistent visual palette
Typography--font-sans, --font-mono, --text-smControls readability and hierarchy
Spacing--space-4, --space-10, --space-14Standardizes rhythm and layout density
Shape / Depth--radius-md, --radius-xl, --shadow-smDefines component feel and elevation
BLOCKS Composable UI blocks Built from tokens, not hard-coded values
A block is a repeated page pattern such as a card, header, nav, table panel, or alert. Build the structure first, then apply the block class names.

How to create a block

  1. Wrap the content in a semantic container such as <section> or <div>.
  2. Add the block class, for example .doc-card or .surface.
  3. Add a header row when the block needs a title, method badge, or path label.
  4. Place the body content inside a content wrapper such as .doc-card-body.
  5. Use utility classes like .stack or .two-column for spacing and layout inside the block.

Common block classes

ClassUse
.doc-cardMain container with border, radius, and shadow
.doc-card-headerTop row for title, label, and badge
.doc-card-bodyPadded body area with vertical spacing
.surfaceGeneric white panel with border and shadow
.stackVertical spacing utility between children
.two-columnTwo-column layout for side-by-side content
BlockClass / PatternUse
Site header.site-headerTop page branding and summary
Navigation.site-navPage links and section anchors
Content card.doc-cardPrimary panel container
Card header.doc-card-headerTitle, path, and badge row
Code block.code-blockFormatted examples and responses
Callout.calloutNotes and usage guidance
ALERTS Feedback blocks Use variants to match the message type
Alerts are small status blocks used for guidance, warnings, and success messages. Use a base .alert class plus a variant class.

Base markup

<div class="alert alert--info">
  <strong class="alert__title">Info</strong>
  <p>Explain the rule or give a helpful hint.</p>
</div>

Variants

ClassWhen to use
.alert--infoNeutral guidance or extra context
.alert--successCompleted actions or positive confirmation
.alert--warningImportant cautions or conditional behavior
.alert--dangerErrors, failures, or destructive actions
Info

Use this variant when the message helps the user understand the page or next step.

Warning

Use this variant for cautions, dependencies, or anything that needs attention.

CLASSES What classes are used where Quick reference for the shared stylesheet
ClassUsed onPurpose
.app-shellbodySets the base background and font family
.site-headerheaderPage branding strip
.base-urlHeader badgeSmall label for shared or environment text
.site-navnavTop navigation bar
.content-shellmainCentered content column with page padding
.stackContainersVertical spacing between child elements
.doc-cardsectionMain panel wrapper
.doc-card-headerCard headerBadge, path, and title row
.doc-card-bodyCard bodyPadded content area inside cards
.methodBadge spanShared badge styling
.GET, .POST, .PUT, .PATCH, .DELETEBadge spanColor variants for labels
.endpoint-pathTitle textMonospace path or short identifier
.endpoint-titleTitle textMuted supporting description
.data-tabletableStandard documentation table styling
.code-blockpreDark code sample container
.two-columnLayout wrapperSide-by-side content layout
.calloutInformational blockHighlighted guidance note
.alertFeedback blockBase alert container for variants
.alert__titleAlert titleUppercase alert heading
.alert--info, .alert--success, .alert--warning, .alert--dangerAlert variantsStatus-specific color treatment
EXAMPLES Markup patterns How to compose the system

Card structure

<section class="doc-card">
  <div class="doc-card-header">
    <span class="http-method GET">GET</span>
    <span class="doc-code-path">/resource</span>
    <span class="doc-card-title">List resources</span>
  </div>
  <div class="doc-card-body stack">
    <p class="doc-card-description">Description...</p>
  </div>
</section>

Token usage

color: var(--color-surface);
padding: var(--space-10);
border-radius: var(--radius-xl);
font-size: var(--text-md);
box-shadow: var(--shadow-sm);
Prefer a token when the value appears in more than one place. Prefer a component when the same structure repeats.

Stylesheet link

<link rel="stylesheet" href="https://cdn.magicrunez.com/styles.css" />