Foundations
Every value below is a design token, generated from the same Sass maps that build the CSS. Use them as custom properties (var(--ap-accent)) or through the Sass API (ap.token(accent)).
Palette 01
The sixteen colors of the ASTROPRISMA Design Guide, read from its vector artwork.
#130d1c · --ap-palette-black#f0eee8 · --ap-palette-white#e9dcd3 · --ap-palette-off-white#ef476e · --ap-palette-pink#d50059 · --ap-palette-pink-dark#ab0048 · --ap-palette-pink-shadow#ffbd5c · --ap-palette-yellow#ff603e · --ap-palette-orange#d50059 · --ap-palette-magenta#54009d · --ap-palette-indigo#ca2632 · --ap-palette-red#5fc3b0 · --ap-palette-teal#6abd45 · --ap-palette-green#4bba7a · --ap-palette-sea#faa21e · --ap-palette-amber#d51b5b · --ap-palette-roseThemes 02
Semantic colors per theme. Any element with data-ap-theme switches its whole subtree.
light
--ap-bg--ap-surface-1--ap-surface-2--ap-surface-3--ap-inset--ap-text--ap-text-muted--ap-text-subtle--ap-text-disabled--ap-border-subtle--ap-border--ap-border-strong--ap-accent--ap-accent-strong--ap-accent-deep--ap-on-accent--ap-success--ap-warning--ap-danger--ap-on-danger--ap-danger-text--ap-info--ap-focus--ap-link--ap-link-hoverdark
--ap-bg--ap-surface-1--ap-surface-2--ap-surface-3--ap-inset--ap-text--ap-text-muted--ap-text-subtle--ap-text-disabled--ap-border-subtle--ap-border--ap-border-strong--ap-accent--ap-accent-strong--ap-accent-deep--ap-on-accent--ap-success--ap-warning--ap-danger--ap-on-danger--ap-danger-text--ap-info--ap-focus--ap-link--ap-link-hoverFonts 03
The Design Guide fonts, one font-family token each. Every token ends in system fonts, so a font that is not loaded falls back quietly: on this site, Powerr, Rimma Sans, SCHABO and Free Fat Font show their fallback.
Load the bundled fonts once, then use the tokens. The type roles below already pick the right family and weight; the accent fonts are yours to place.
// Plain CSS or a bundler: Feature Mono, Instrument Serif, Genesys, ST-Cyberillic
import 'astrostyle/fonts.css'
// Sass: where your build serves fonts/, plus your own Powerr, Rimma Sans and SCHABO files
@use 'pkg:astrostyle/scss/fonts' with ($path: '/assets/fonts', $licensed-path: '/assets/own-fonts');
// An accent font on your own element
.weapon-name { font-family: var(--ap-font-accent-genesys); }
Feature Mono
Sensor lock 0427
Hairline 100
Sensor lock 0427
Light 300
Sensor lock 0427
Medium 500
--ap-font-body
Main text: Light for body copy, Medium for bold and data, Hairline for labels and captions. Roles body, data, label, caption and action, plus code.
Bundled: astrostyle/fonts.css declares it.
Newake, or Powerr
Sensor lock 0427
Regular 400
Sensor lock 0427
Medium 500
Sensor lock 0427
Bold 700
--ap-font-display
Titles and the logo. Roles display, screen-title and panel-title (h1 to h3). Newake is paid; Powerr is its free alternative.
Not bundled: add your copy and set $licensed-path.
Instrument Serif
Sensor lock 0427
Regular
Sensor lock 0427
Italic
--ap-font-serif
Italics: em, i, cite and blockquote; names on maps.
Bundled: astrostyle/fonts.css declares it.
Rimma Sans
Sensor lock 0427
Bold 700
--ap-font-accent-rimma
Special titles and graphic details. No component uses it: set font-family: var(--ap-font-accent-rimma) where you need it.
Not bundled: add your copy and set $licensed-path.
Free Fat Font
Sensor lock 0427
Regular 400
--ap-font-accent-fat
Special titles and graphic details. No component uses it: set font-family: var(--ap-font-accent-fat) where you need it.
Not bundled: add your copy with your own @font-face.
Genesys
Sensor lock 0427
Regular 400
--ap-font-accent-genesys
Special titles and graphic details. No component uses it: set font-family: var(--ap-font-accent-genesys) where you need it.
Bundled: astrostyle/fonts.css declares it.
ST-Cyberillic
Sensor lock 0427
Regular 400
--ap-font-accent-cyberillic
Special titles and graphic details. No component uses it: set font-family: var(--ap-font-accent-cyberillic) where you need it.
Bundled: astrostyle/fonts.css declares it.
SCHABO Condensed
Sensor lock 0427
Regular 400
--ap-font-accent-schabo
Special titles and graphic details. No component uses it: set font-family: var(--ap-font-accent-schabo) where you need it.
Not bundled: add your copy and set $licensed-path.
Type roles 04
Apply a whole role with @include ap.text(role) or the ap-u-text-role utility. Sizes follow --ap-font-scale.
Sensor lock acquired
display · 30px · bold · line height 1.05
Sensor lock acquired
screen-title · 24px · bold · line height 1.1
Sensor lock acquired
panel-title · 18px · medium · line height 1.2
Sensor lock acquired
body · 15px · light · line height 1.45
Sensor lock acquired
data · 14px · medium · line height 1.35
Sensor lock acquired
label · 12px · hairline · line height 1.25
Sensor lock acquired
caption · 12px · hairline · line height 1.35
Sensor lock acquired
action · 14px · medium · line height 1.2
Spacing 05
--ap-space-xxs · 2px--ap-space-xs · 4px--ap-space-sm · 8px--ap-space-md · 12px--ap-space-lg · 16px--ap-space-xl · 24px--ap-space-xxl · 32pxShapes and elevation 06
--ap-radius-none--ap-radius-control--ap-radius-card--ap-radius-pill--ap-elevation-raised--ap-elevation-overlay