Decisions — visual direction and interface
Rendered from corpus/wiki/decisions-ui.md · updated 2026-10-04
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
Split out of decisions.md on 2026-10-04, when that page passed ~200 lines. Unchanged in the move. The full design spec is ui/DESIGN.md.
Visual direction (locked 2026-09-04 — REPLACES the earlier CivicMap design system)
The 2026-06-29 "Warmer Editorial-Civic" system (steel-blue Material tokens, Fraunces + Inter, amber accent) is retired. It was never built, and the UI it was written for is gone.
- The direction is the category convention, executed at full fidelity. Four visual directions were designed and shown as running coded mockups (a land-registry sheet, a transit diagram, an orienteering overprint, and the standard). The user chose the standard, deliberately, as the permanent standing exit — floating search, pill filter chips, teardrop pins, a docked side panel on desktop, a draggable bottom sheet on mobile. This is a commitment, not a fallback: future work does not "rescue" it with a novel visual world.
- The craft bar is Citymapper and Linear. Precise and dense over soft and generous: tight type, crisp 1px borders in preference to diffuse shadows, restrained colour with one accent, tabular numerals wherever digits align, motion at 150–220ms ease-out with no bounce or spring. "Looks like every other map app" is an accepted trade. "Looks less finished than Citymapper" is not.
- Typeface: Archivo (variable, Google Fonts), one family for everything. Chosen over Geist/Inter — both are on the overused-face list, and Archivo is a signage grotesque with a large x-height that holds at 12px and real Romanian diacritics rather than fallback glyphs. No webfont monospace: monospace is reserved for genuine identifiers (an OSM way id, a stack trace), and the small tracked-uppercase utility labels use the UI face.
- Colour: restrained. Cool-biased neutrals plus one blue accent (
#2a5beflight /#6d9bffdark). ElevenPlaceCategoryhues are information, andEventCategoryreuses the same eleven rather than adding eight more — two taxonomies, one palette, and the two enums never appear on the same mark. - Elevation by role: a 1px border is the default separator;
--sh-1for resting chrome,--sh-2for floating overlays,--sh-3for the panel and sheet, and a separate tight--sh-pin. A chip, a panel and a pin must not share a shadow. - Radii cap at 12px; pills are reserved for filter chips and badges, so the pill shape keeps meaning "this narrows what you see".
- Both themes ship. The use scene forces it: bright daylight outdoors on a phone, and a laptop indoors.
- The authoritative token reference is
ui/DESIGN.md, derived from the built system. design.md is now a pointer, not a spec.
Interface language (locked 2026-09-04)
- Romanian by default, English behind a switch. RO leads because the audience is residents and the UI should agree with the place names; EN exists so the POC can be demoed to a non-Romanian stakeholder. Browser language is deliberately ignored — a Romanian with an English-locale phone still lands in Romanian.
- No translation framework.
Intl.PluralRuleshandles Romanian's three plural forms including the "de" form above nineteen (1 loc · 3 locuri · 23 de locuri), andIntl.DateTimeFormathandles dates in Europe/Bucharest. Adding i18next to reach platform APIs would be a dependency for a lookup table. Lives inui/app/lib/i18n.tsx.
Basemap constraint (discovered 2026-09-04)
- CARTO's keyless raster endpoints no longer serve maps.
basemaps.cartocdn.com/light_all/...answers HTTP 200 with a ~2.5KB "API KEY REQUIRED" watermark tile. Leaflet + CARTO stays the locked stack, but the style is now behindVITE_CARTO_API_KEY. - Fallback while no key is set: standard OpenStreetMap raster tiles, filtered in CSS toward the same quiet low-saturation register (
.map-fallbackinapp.css, including a dark-mode inversion). Attribution changes with the provider, because naming CARTO for tiles CARTO did not serve would be false. Getting a CARTO key is a small open task before any public deploy. - Basemap style: Positron / Dark Matter, not Voyager — the map carries eleven category hues plus an accent, and the quieter the basemap the more the pins mean. (Supersedes the Voyager choice in the retired design system.)
Design direction (locked 2026-06-29 — full spec in design.md)
Deliberately steered away from the "generic AI" aesthetic (research-driven). The visual direction is Warmer Editorial-Civic (was "Minimalist-Professional"):
- Typography (the biggest personality lever): two families — Fraunces (variable serif, Google Fonts) for display/headings/brand/place-titles; Inter for body/UI. New font dependency: Fraunces.
- Color: dominant civic blue + a deliberate warm amber accent (the tertiary token, used as sparing punctuation); slightly warm neutrals (not pure slate); category meaning never carried by color alone.
- Geometry: tightened rounding (cards ≤8px, drawers 12px, pills reserved for chips/badges only); crisp 1px borders preferred over diffuse shadows.
- Elevation: role-differentiated — a card, button, badge, and map pin must NOT share one shadow value.
- Map pins: icon-led + event-aware + zoom-aware (per-category SVG icon primary, color secondary; event-presence accent ring; dot↔teardrop by zoom; unmistakable selected state). Clusters styled to the system, not default Leaflet.
- Basemap: CARTO Voyager (light) / DarkMatter (dark) — warmer than Positron, still clean. Self-hosted brand-tinted style = future, not POC.