NGU-Web/server/src/themeDefaults.js
Zaldimmar d81f7bd856 Adopt the new palette; square corners, superellipse buttons
The theme defaults (light and dark) come from the 16-color grid,
kept as PALETTE in src/lib/color.ts; every text pair passes the
admin's 4.5:1 check. Nothing is rounded any more except buttons,
which share one btn utility (Poppins Bold, a superellipse corner
where the browser has corner-shape) and true dots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 14:40:39 -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": ["#dfebd6", "#27371b"],
danger: ["#b3261e", "#ff8a80"],
"danger-tint": ["#fdf3f2", "#3b1714"],
};