122 lines
5.2 KiB
Plaintext
122 lines
5.2 KiB
Plaintext
= Design: the park brochure and the cockpit
|
|
|
|
MapTool has two jobs with two moods, and a style for each:
|
|
|
|
* *Planning, dreaming, remembering* — the map, the library, the trip, the
|
|
search: the *NPS* look. Warm Park Tiles cartography (`map_themes.js`),
|
|
the brochures and their symbols (`docs/nps-resources.adoc`), the olive
|
|
accent.
|
|
* *Driving* — whatever the driver glances at: the dashboard, the next
|
|
maneuver, the speed limit, the switch panel, warnings: the *cockpit*
|
|
look. Avionics (PFD/MFD) and chartplotters: displays over a bus, dark
|
|
bezel, big numbers, no decoration, colors that always mean the same.
|
|
|
|
They aren't two designs bolted together: the NPS brochures are Massimo
|
|
Vignelli's *Unigrid* (1977) — a strict grid, a black band with a white
|
|
sans-serif title, lots of white space, few colors. That's the same
|
|
modernist restraint as a glass cockpit. The black band is the shared
|
|
element: the topbar (`#1a1a1a`) is the brochure's band, the instruments'
|
|
bezel is the same black.
|
|
|
|
== Colors
|
|
|
|
Defined once as custom properties on `:root` (`public/css/style.css`);
|
|
nothing outside them for these meanings.
|
|
|
|
=== Planning (NPS)
|
|
|
|
[cols="1,1,3"]
|
|
|===
|
|
|Token |Value |Use
|
|
|
|
|`--accent` |`#546619` |active items, selected options, primary buttons (NPS boundary olive)
|
|
|`--accent-bg` |`#e1e5cf` |their light background (sage)
|
|
|`--band` |`#1a1a1a` |the Unigrid black band: the topbar, panel headers, and the instruments' bezel
|
|
|===
|
|
|
|
The map's own colors are Park Tiles' (`map_themes.js`), not tokens.
|
|
|
|
=== Instruments (cockpit)
|
|
|
|
Each color has one meaning, as in avionics — so a glance is enough and
|
|
a color never decorates.
|
|
|
|
[cols="1,1,3"]
|
|
|===
|
|
|Token |Value |Means
|
|
|
|
|`--inst-bezel` |`--band` at the card's opacity |the instrument's background
|
|
|`--inst-text` |`#f2f2f2` |values
|
|
|`--inst-muted` |`#9aa0a6` |labels, scales, what's inactive
|
|
|`--inst-ok` |`#3ccf4e` |normal, engaged (a switch on, a node alive)
|
|
|`--inst-caution` |`#ffb300` |attention: past a soft limit (roll > 20°), off the route, a stale signal
|
|
|`--inst-warning` |`#ff3b30` |act now: over the speed limit, past a hard limit, a fault
|
|
|`--inst-active` |`#e040fb` |*magenta*: the active route and the next waypoint / maneuver / lane to take — the avionics convention for what navigation is following
|
|
|`--inst-selected` |`#00d5ff` |*cyan*: a value you set yourself (a speed bug, the camper's own limit, a chosen target)
|
|
|===
|
|
|
|
Road signs stay road signs: the speed limit is the white disc with the
|
|
red ring — read as a sign, not as a color (`--sign-*`, only dimmed by
|
|
night).
|
|
|
|
=== Day, dusk, night (after IHO S-52)
|
|
|
|
Marine electronic charts (ECDIS) have the most worked-out rules for one
|
|
display across bright sun and a dark bridge — the IHO's S-52 (Edition
|
|
6.1.1, 2015): *three colour tables, Day, Dusk and Night*, every color a
|
|
named token with a value per table (the Presentation Library's Appendix
|
|
A). We do the same: the tokens above, three sets of values, `<html
|
|
data-palette="dusk|night">` (Day the default), meanings unchanged between
|
|
them. From S-52:
|
|
|
|
* *Day*: a light background with dark foreground details, strong contrast —
|
|
bright sun washes a display out. (Our instruments keep their dark bezel,
|
|
a full-opacity one for sun on the screen.)
|
|
* *Dusk*: a black-background table, "for optional use by day as well as at
|
|
twilight".
|
|
* *Night*: dark background, light foreground, dim enough not to impair night
|
|
vision; at low light colors are hard to tell apart, so important things
|
|
get a second cue (shape, line style), not color alone. Adjust by
|
|
contrast, not brightness (dark colors drop to black).
|
|
* Anything added on the chart's screen (panels, text) "should never generate
|
|
more light than the chart display itself" at night, and text panels
|
|
mustn't outshine the chart.
|
|
|
|
Our night values are roughly a third of Day's luminance, warm greys, blue
|
|
kept low; no white areas (the speed limit sign dims too). The map has its
|
|
own night palette (`NightMap`, `map_themes.js`); a Dusk map is still to do.
|
|
|
|
Today the page's night mode inverts the whole UI (`html.night`, the
|
|
instruments inverted back). The palettes replace that: set the
|
|
`data-palette`, by the sun (already worked out for the night mode) or by
|
|
hand.
|
|
|
|
== Typography
|
|
|
|
* Planning UI: the system sans; *National Park* (the router-carved
|
|
signage face) only for the wordmark and, later, headings in the black
|
|
band — the brochure's title.
|
|
* Instruments: the system sans with tabular figures
|
|
(`font-variant-numeric: tabular-nums`), bold values, small uppercase
|
|
labels with letter-spacing — numbers that don't jitter as they change.
|
|
|
|
== Which surface is which
|
|
|
|
[cols="1,1"]
|
|
|===
|
|
|NPS (planning) |Cockpit (driving)
|
|
|
|
|the map and its layers, the library, the trip / itinerary, search, the
|
|
route panel, NPS maps, the offline data panel
|
|
|the dashboard (inclinometer, speed, limit, ahead), the navigation strip
|
|
(next maneuver, lanes), the switch panel (PDM), warnings, `/can.html`
|
|
|===
|
|
|
|
The route line is the bridge: blue (`--route-planned`) while planning,
|
|
magenta (`--route-active`) once it's being navigated.
|
|
|
|
Sources: IHO S-52 Edition 6.1.1 (2015), sections 2.2.6, 4.2; the avionics
|
|
color meanings are the common glass-cockpit convention (FAA AC 25-11B has
|
|
the color coding guidance, §5.3 — not checked here, its PDF refused the
|
|
fetch).
|