NGU-Web/server/src/themeDefaults.js
Zaldimmar a397f3eac0 Overhaul fixes: raised cards, balanced people rows, solid map, small button radius
- Cards sit on a raised surface (white, or a touch of tint in dark
  mode) with a shadow: featured cards, the connect block, people
  tiles. tint-soft is a faint teal again, not green.
- Buttons: a small plain radius everywhere; no superellipse.
- Video stills use YouTube's 16:9 frame (the 4:3 one cropped as a
  fallback), have small rounded corners, and show a round, centered
  play button on hover or focus (always on touch screens).
- People tiles: rows balanced between 2 and 10 across, never ending
  on a lone tile where it can be helped.
- Map tiles and region tags are solid, dimmed by color, not opacity.
- Admin: white (surface) background, header and footer as wide as
  the content.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:24:36 -05:00

29 lines
1.4 KiB
JavaScript

/* ═══════════════════════════════════════════════════════════════
THEME DEFAULTS
The site's own color tokens, light and dark: the one list both
the server (theme.js: contrast check, overrides) and the admin
(Site settings → Colors: defaults shown) read. No imports, so the
browser bundle can take it too.
src/index.css holds the same values as CSS (@theme and its dark
block), since CSS can't import this. The build checks the two
agree and stops if they don't (themeDefaultsCheck in
vite.config.ts). Change a color here and there together.
═══════════════════════════════════════════════════════════════ */
// light dark
export const THEME_DEFAULTS = {
ink: ["#001011", "#fcfffd"],
body: ["#004552", "#c2f6ff"],
muted: ["#004c52", "#aac992"],
link: ["#004552", "#5ce7ff"],
brand: ["#008fa8", "#008fa8"],
action: ["#004552", "#004c52"],
"action-hover": ["#001011", "#004552"],
surface: ["#fcfffd", "#001011"],
tint: ["#c2f6ff", "#004552"],
"tint-soft": ["#e8fcfe", "#00252b"],
danger: ["#b3261e", "#ff8a80"],
"danger-tint": ["#fdf3f2", "#3b1714"],
};