NGU-Web/server/src/themeDefaults.js
Zaldimmar 79f1d09eef Try the revised palette (teal, green, amber, ink)
The suggested grid as the theme defaults, light and dark, with
PALETTE, the accents (olive becomes amber), the backdrop shades
and every literal from the old grid mapped over. Every text pair
passes the admin's 4.5:1 check; the hero's filled button is amber.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 16:51:14 -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", "#f5f9f8"],
body: ["#003a45", "#d6f5fa"],
muted: ["#3b5456", "#a3b8b9"],
link: ["#00748a", "#5cd3e6"],
brand: ["#00748a", "#00748a"],
action: ["#00748a", "#00748a"],
"action-hover": ["#003a45", "#003a45"],
surface: ["#f5f9f8", "#001011"],
tint: ["#d6f5fa", "#003a45"],
"tint-soft": ["#e8f5f6", "#00222a"],
danger: ["#b3261e", "#ff8a80"],
"danger-tint": ["#fdf3f2", "#3b1714"],
};