Vectored's design system: brand tokens, components, the page shell, maps and email. Plain HTML and CSS, no framework. Everything on this page is made with the package itself.
npm install @vectored-network/atmosphere
Colours
Every colour is a token in tokens.css, with a dark value for each light one. Switch your system theme to see dark mode.
--atm-night--atm-amber--atm-radar--atm-bg--atm-surface--atm-surface-2--atm-border--atm-text--atm-text-muted--atm-link--atm-on-accent--atm-ok--atm-warn--atm-danger--atm-infoStats
Buttons and badges
Alerts
Saved.
Check this.
Something failed.
For your information.
Table
| Callsign | Type | Route | Alt |
|---|---|---|---|
| VEC123 | A320 | EGLL → LFPG | 35000 |
| VEC77 | B738 | EGKK → LEMD | 37000 |
Forms
Inline form and field sizes
Widths: atm-w-xs 90px, atm-w-sm 130px, atm-w-md 220px, atm-w-lg 320px.
Label / value list
- ICAO
- EGLL
- Name
- London Heathrow
- Transition altitude
- 6000 ft
Map
From map(): an airspace area (polygon) and a flight track (line).
Every Vectored email is made with email(). See an example email.
Use it
import { h, page } from '@vectored-network/atmosphere';
const html = page({
title: 'Home', app: 'Training',
body: h`<h1>Hello ${name}</h1>`, // every value is escaped
}).value;
Only want the look? import '@vectored-network/atmosphere/atmosphere.css' or link dist/atmosphere.css, and use the atm- classes.