Tidy the structure the audit found
- The colour defaults have one source, server/src/themeDefaults.js, read by the server and the admin; the build stops if src/index.css disagrees with it - server/src/admin-schema.js split into admin-schema/, one file per entity plus columns.js (the registry checked identical) - loadOwned() in shape.js replaces the same three loads on four detail routes (every public route checked identical); one NO_STORE - One OrgLogo component for the org lists and the chapter map; an organization's own page now shows the same initials as the lists - One localISO() for the viewer's calendar day, in place of three - Boot refuses a descriptor dropdown value the table's CHECK doesn't allow, instead of it failing on save - Deleted the unused Other.tsx and white-background logo; chapters.ts is useCommunity.ts; isSuper() in the Panel; stale comments and docs corrected Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
048c7599ce
commit
f934b1dd93
44 changed files with 1187 additions and 1170 deletions
|
|
@ -4,9 +4,9 @@
|
|||
The admin's palette (Panel → Site settings → Colours, table
|
||||
site_setting_colors) over the site's own colour tokens.
|
||||
|
||||
THEME_DEFAULTS must match @theme and the dark block in
|
||||
src/index.css: the same tokens, the same light and dark values.
|
||||
A blank override keeps the default.
|
||||
The defaults are THEME_DEFAULTS (themeDefaults.js), which the
|
||||
build checks against src/index.css. A blank override keeps the
|
||||
default.
|
||||
|
||||
themeCss() is written into every page's <head> (pageMeta.js).
|
||||
It goes into the same cascade layers as index.css (theme for
|
||||
|
|
@ -20,22 +20,9 @@
|
|||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
import { HttpError } from "./admin-crud.js";
|
||||
import { THEME_DEFAULTS } from "./themeDefaults.js";
|
||||
|
||||
// light dark
|
||||
export const THEME_DEFAULTS = {
|
||||
ink: ["#073d4a", "#eaf6f8"],
|
||||
body: ["#26454c", "#cde0e4"],
|
||||
muted: ["#4a6b72", "#9fb9bf"],
|
||||
link: ["#0f7183", "#5ccbdc"],
|
||||
brand: ["#138ba0", "#2aa7bc"],
|
||||
action: ["#0f7183", "#0f7183"],
|
||||
"action-hover": ["#0b5c6a", "#0b5c6a"],
|
||||
surface: ["#ffffff", "#0c1d21"],
|
||||
tint: ["#eef9fb", "#11292e"],
|
||||
"tint-soft": ["#f6fbfc", "#0f2428"],
|
||||
danger: ["#b3261e", "#ff8a80"],
|
||||
"danger-tint": ["#fdf3f2", "#3b1714"],
|
||||
};
|
||||
export { THEME_DEFAULTS };
|
||||
|
||||
export const THEME_TOKENS = Object.keys(THEME_DEFAULTS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue