Night Heron
Light freighter, crew of four.
The Design Guide's own motifs, turned into components: mastheads, section headings and subheadings, windows, cards, side-tab boxes, segment bars, swatches and the textured surfaces. These pages use them for their own headings and cards.
Style guide 01
Graphics
<header class="ap-c-masthead">
<p class="ap-c-masthead__eyebrow">Style guide 01</p>
<h1 class="ap-c-masthead__title">Night Heron</h1>
</header>
One per page, with the page's <h1> as the title (this sample uses a paragraph, so the page keeps one <h1>). The title grows with the viewport between 1.2× and 2.4× the display size.
| Token | Default |
|---|---|
--ap-masthead-gap | var(--ap-space-xs) |
--ap-masthead-eyebrow-color | var(--ap-text-muted) |
--ap-masthead-title-color | var(--ap-text) |
--ap-masthead-title-size | clamp(var(--ap-text-display-size) * 1.2, 8vw, var(--ap-text-display-size) * 2.4) |
--ap-masthead-title-leading | 0.95 |
<h2 class="ap-c-section-heading" id="graphics">Graphics <span class="ap-c-section-heading__index">01</span></h2>
Every heading on these pages is one. The rule fills the space between title and index and is never announced; the index is optional.
| Token | Default |
|---|---|
--ap-section-heading-color | var(--ap-link) |
--ap-section-heading-gap | var(--ap-space-md) |
--ap-section-heading-rule-color | currentcolor |
--ap-section-heading-rule-width | var(--ap-border-width-hairline) |
--ap-section-heading-index-color | currentcolor |
<h3 class="ap-c-subheading">Colors</h3>
Write the title only: the slashes are generated content that screen readers skip. Change them with --ap-subheading-slash (a CSS string).
| Token | Default |
|---|---|
--ap-subheading-color | var(--ap-text) |
--ap-subheading-slash | "/" |
--ap-subheading-slash-color | var(--ap-accent) |
--ap-subheading-gap | var(--ap-space-sm) |
Pick a size and a format, then export the sector map.
A window with data-ap-theme="dark" on a light page, and no index.
<section class="ap-c-window" aria-labelledby="export">
<div class="ap-c-window__bar">
<h3 class="ap-c-window__title" id="export">Export as image</h3>
<span class="ap-c-window__index">02</span>
</div>
<div class="ap-c-window__body">…</div>
</section>
The bar uses the theme's inverse colors: dark on the light theme, light on the dark one. The body has no layout: add an object to it.
| Token | Default |
|---|---|
--ap-window-bg | var(--ap-bg) |
--ap-window-fg | var(--ap-text) |
--ap-window-border-color | var(--ap-border-strong) |
--ap-window-radius | var(--ap-radius-control) |
--ap-window-bar-bg | var(--ap-text) |
--ap-window-bar-fg | var(--ap-bg) |
--ap-window-bar-padding-block | var(--ap-space-xs) |
--ap-window-bar-padding-inline | var(--ap-space-md) |
--ap-window-index-bg | var(--ap-accent) |
--ap-window-index-fg | var(--ap-on-accent) |
--ap-window-padding | var(--ap-space-lg) |
Light freighter, crew of four.
data-ap-theme="dark".<article class="ap-c-card ap-o-stack ap-o-stack--gap-sm" aria-labelledby="heron">
<h3 class="ap-c-card__title" id="heron">Night Heron</h3>
<p>Light freighter, crew of four.</p>
</article>
<a class="ap-c-card ap-o-stack" href="/fleet/heron">…</a>
A card is a surface without layout: combine it with an object. As a link or a button it shows the accent border on hover and the focus ring.
| Token | Default |
|---|---|
--ap-card-bg | var(--ap-surface-1) |
--ap-card-fg | var(--ap-text) |
--ap-card-border-color | var(--ap-border-subtle) |
--ap-card-hover-border-color | var(--ap-accent) |
--ap-card-radius | var(--ap-radius-card) |
--ap-card-padding | var(--ap-space-lg) |
Fonts, textures and templates from the Creator Kit.
<section class="ap-c-tabbed-box" aria-labelledby="resources">
<h3 class="ap-c-tabbed-box__tab" id="resources">Free resources</h3>
<div class="ap-c-tabbed-box__body">…</div>
</section>
The tab is a label, not a control, and reads from bottom to top. Keep it to one or two words.
| Token | Default |
|---|---|
--ap-tabbed-box-border-color | var(--ap-accent) |
--ap-tabbed-box-radius | var(--ap-radius-control) |
--ap-tabbed-box-bg | transparent |
--ap-tabbed-box-fg | var(--ap-text) |
--ap-tabbed-box-tab-bg | var(--ap-accent) |
--ap-tabbed-box-tab-fg | var(--ap-on-accent) |
--ap-tabbed-box-tab-padding | var(--ap-space-sm) |
--ap-tabbed-box-padding | var(--ap-space-lg) |
<ul class="ap-c-segment-bar" aria-label="Blacks">
<li class="ap-c-segment-bar__segment">Rich black</li>
<li class="ap-c-segment-bar__segment">ASTROPRISMA Black</li>
</ul>
A legend, not a control. Segments share the width and wrap when it runs out; narrow the window to see the dividers follow.
| Token | Default |
|---|---|
--ap-segment-bar-border-color | var(--ap-border-strong) |
--ap-segment-bar-radius | var(--ap-radius-card) |
--ap-segment-bar-bg | transparent |
--ap-segment-bar-fg | var(--ap-text) |
--ap-segment-bar-padding-block | var(--ap-space-sm) |
--ap-segment-bar-padding-inline | var(--ap-space-lg) |
#ef476e#54009d<div class="ap-c-swatch" style="--ap-swatch-color: var(--ap-palette-pink)">
<span class="ap-c-swatch__chip"></span>
<strong class="ap-c-swatch__name">ASTROPRISMA Pink</strong>
<code class="ap-c-swatch__value">#ef476e</code>
</div>
The palette on the Foundations page is built with it. The value is optional.
| Token | Default |
|---|---|
--ap-swatch-color | transparent |
--ap-swatch-chip-size | var(--ap-size-control-lg) |
--ap-swatch-chip-radius | var(--ap-radius-control) |
--ap-swatch-border-color | var(--ap-border) |
--ap-swatch-gap | var(--ap-space-sm) |
--ap-swatch-value-color | var(--ap-text-muted) |
<div class="ap-c-surface ap-c-surface--halftone ap-c-surface--noise">…</div>
.hero { @include ap.surface(halftone); } // Sass: the same texture on any rule
Decoration only: textures sit behind the content and never go under forms, tables or long text. --halftone and --crt share one layer; --noise adds to either.
| Token | Default |
|---|---|
--ap-surface-pattern | none |
--ap-surface-pattern-size | auto |
--ap-surface-pattern-opacity | 1 |
--ap-surface-grain | none |
--ap-surface-grain-size | auto |
--ap-surface-grain-opacity | 1 |