Skip to content
astrostyle v0.6.2

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.

ASTROPRISMA Black#130d1c · --ap-palette-black
ASTROPRISMA White#f0eee8 · --ap-palette-white
ASTROPRISMA Off-White#e9dcd3 · --ap-palette-off-white
ASTROPRISMA Pink#ef476e · --ap-palette-pink
Dark Pink#d50059 · --ap-palette-pink-dark
Shadow Pink#ab0048 · --ap-palette-pink-shadow
Gradient Yellow#ffbd5c · --ap-palette-yellow
Gradient Orange#ff603e · --ap-palette-orange
Gradient Magenta#d50059 · --ap-palette-magenta
Gradient Indigo#54009d · --ap-palette-indigo
WARG Red#ca2632 · --ap-palette-red
Intersolar Blue#5fc3b0 · --ap-palette-teal
Medusa Green#6abd45 · --ap-palette-green
Wire Teal#4bba7a · --ap-palette-sea
Corsair Yellow#faa21e · --ap-palette-amber
Synth Magenta#d51b5b · --ap-palette-rose

Themes 02

Semantic colors per theme. Any element with data-ap-theme switches its whole subtree.

light

bg--ap-bg
surface-1--ap-surface-1
surface-2--ap-surface-2
surface-3--ap-surface-3
inset--ap-inset
text--ap-text
text-muted--ap-text-muted
text-subtle--ap-text-subtle
text-disabled--ap-text-disabled
border-subtle--ap-border-subtle
border--ap-border
border-strong--ap-border-strong
accent--ap-accent
accent-strong--ap-accent-strong
accent-deep--ap-accent-deep
on-accent--ap-on-accent
success--ap-success
warning--ap-warning
danger--ap-danger
on-danger--ap-on-danger
danger-text--ap-danger-text
info--ap-info
focus--ap-focus
link--ap-link
link-hover--ap-link-hover

dark

bg--ap-bg
surface-1--ap-surface-1
surface-2--ap-surface-2
surface-3--ap-surface-3
inset--ap-inset
text--ap-text
text-muted--ap-text-muted
text-subtle--ap-text-subtle
text-disabled--ap-text-disabled
border-subtle--ap-border-subtle
border--ap-border
border-strong--ap-border-strong
accent--ap-accent
accent-strong--ap-accent-strong
accent-deep--ap-accent-deep
on-accent--ap-on-accent
success--ap-success
warning--ap-warning
danger--ap-danger
on-danger--ap-on-danger
danger-text--ap-danger-text
info--ap-info
focus--ap-focus
link--ap-link
link-hover--ap-link-hover

Fonts 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 · 32px

Shapes and elevation 06

--ap-radius-none
--ap-radius-control
--ap-radius-card
--ap-radius-pill
--ap-elevation-raised
--ap-elevation-overlay