From 67a7ae2e71a04e8a1ecd8eb6d72af8e7a286ecbc Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 10 Nov 2026 09:19:34 +0000 Subject: [PATCH] Add feature: UC Davis theme (colours, buttons, type) - The academic scale is re-coloured with the brand tokens ucdavis.edu declares (--ucd-blue #022851, --brand-primary-*), so every screen follows; aggie-500 (#13639e) for page titles and the header band, and Aggie Gold (#ffbf00) as the accent. - Header: the site's #13639e band with a gold wordmark (Target, pts and the Finalize help circle drawn in white on it); footer #14447a. Page titles are heavy blue with the site's row of gold dots. - Buttons as on the site: 5px corners, bold; navy for ordinary actions, a new gold `accent` variant for the one that finishes the job (Export on the dashboard, Save in the editor). Cards are 12px. - Type: Figtree replaces Inter and Merriweather. It is the free (OFL) face closest to UC Davis's licensed Proxima Nova, self-hosted with its notice; proxima-nova is named first for computers that have it. Headings are the same face at a heavy weight, as on the site. - bundle-tests and the README follow the new palette ends and the one face. The exports are unchanged: the export hash tests are byte-identical. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01JxJ2SDjshGhT77PBwFrVVJ --- README.md | 5 ++-- components/ChoicePanel.tsx | 2 +- components/Common.tsx | 37 +++++++++++++++++---------- components/HelpGuide.tsx | 4 +-- components/Preview.tsx | 2 +- components/RescaleChoice.tsx | 4 +-- index.tsx | 22 ++++++++--------- package-lock.json | 19 +++----------- package.json | 3 +-- pages/Dashboard.tsx | 1 + pages/Editor.tsx | 15 ++++++----- tailwind.config.js | 48 +++++++++++++++++++++++++----------- tests/bundle-tests.mjs | 11 +++++---- vite.config.ts | 5 ++-- 14 files changed, 99 insertions(+), 79 deletions(-) diff --git a/README.md b/README.md index ad6f29d..6d15ff3 100644 --- a/README.md +++ b/README.md @@ -444,8 +444,9 @@ staying local is a property of its design rather than a promise about a server. A test asserts it, on the built output rather than on the source: any host in a fetch position — in the HTML, in the stylesheet, or in any emitted script — fails -the suite. Inter and Merriweather are served from this site under their SIL Open -Font Licences, which the build emits alongside them. +the suite. Figtree (the free face closest to UC Davis's licensed Proxima Nova) +is served from this site under its SIL Open Font Licence, which the build emits +alongside it. - **Export your JSON regularly** — data is lost if browser cache is cleared - **The export ZIP is instructor-only and MUST NOT be given to students.** Four files in its `instructor/` folder contain answers: `{stem}_grader_document.html`, `{stem}_grading_rubric.json`, `{stem}_authoring_backup.json` and `{stem}.md`. Students receive only `{stem}_FOR_STUDENTS.zip`, the one entry at the archive root that is not in a folder. The ZIP carries a generated `00_INSTRUCTOR_ONLY_DO_NOT_DISTRIBUTE.txt` at its root naming every file. diff --git a/components/ChoicePanel.tsx b/components/ChoicePanel.tsx index 9a7b391..830fd7b 100644 --- a/components/ChoicePanel.tsx +++ b/components/ChoicePanel.tsx @@ -40,7 +40,7 @@ export const ChoicePanel: React.FC<{ >
-

+

{question.title}

- {title &&

{title}

} + {title && ( +
+

{title}

+ +
+ )} {children}
-