Skip to content

Adopt the blue aurora visual system and contextual dashboard language - #9

Merged
prathamkashyap merged 2 commits into
mainfrom
chore/blue-aurora-polish
Oct 4, 2026
Merged

prathamkashyap merged 2 commits into
mainfrom
chore/blue-aurora-polish

Conversation

@prathamkashyap

Copy link
Copy Markdown
Owner

A blue-aurora polish pass. Two commits, because the previously requested branding work is already
merged and this is genuinely new.

Already done — not repeated here

#7 removed the Llama 3 70B copy. #8 removed emoji from the favicon, feature cards and warning
glyph, moved subject/card icons to Lucide, widened the collapsed rail to 4rem with a 44px centred
mark, and pointed the favicon at the blue Athenaeum mark.

1. Adopt the blue aurora visual system

The gold theme is gone

A third "Academia" theme (brown/gold) shipped alongside Blue Aurora and Light, which is why the app
could present as brown while its own accents stayed blue. .theme-academia is deleted and the toggle
is two modes.

Because the choice persists in localStorage, the read path normalises a stored "academia"
to a real theme and rewrites it. Without that, returning visitors would have loaded unthemed with a
label for a mode that no longer exists. apply() still clears a stale theme-academia class
defensively, in case a cached page still carries it.

Instrument Serif is now actually used

This was the typography bug, and it was in two places:

/* index.css */      h1, h2, h3, h4, .font-serif { font-family: 'Inter', … }
/* tailwind.config */ serif: ['Inter', 'system-ui', 'sans-serif']

The face was imported and then mapped to Inter everywhere, so every font-serif in the JSX —
including the sidebar wordmark, the auth title and the dashboard hero — silently rendered as body
text. .font-serif now resolves to Instrument Serif in both places.

Headings deliberately stay on Inter. A serif on every h1–h4 made dense pages (analytics,
review) read like prose, so the display face is opt-in via the utility and applied by hand to hero
lines and section titles. The dashboard greeting now uses the mixed treatment: Good morning, in
Inter, the given name in Instrument Serif italic.

Also added text-wrap: balance on headings and tabular-nums on .font-mono, so numeric metadata
stops jittering.

The actual gold is fixed

Worth stating plainly: bg-gradient-gold was never gold. It aliased --gradient-accent, which
is electric blue — the name is a legacy leftover. So it needed no colour change, only an honest one:
the components now use bg-gradient-brand, and --gradient-gold remains as an alias.

The genuine blue-plus-gold clash was three hardcoded arbitrary values, now corrected:

File Was Now
Index.tsx hsl(38_55%_58%/0.1) hover glow hsl(199_90%_60%/0.14)
CreateAssessment.tsx hsl(38_60%_50%/0.15) hsl(199_90%_60%/0.16)
ResultAssessment.tsx hsl(38_55%_58%/0.08) hsl(199_90%_60%/0.12)

AuroraBackground: left alone, deliberately

It already meets the brief — three large blurred blobs on 26–38s drift, subtle pointer parallax,
grain, and prefers-reduced-motion support, with no particles. It also runs on auth, which is the
strongest place for it. Churning it would have been change for its own sake.

2. Improve dashboard typography and messaging

Subject emoji came from the API, not the source

The reason a source scan found no subject emoji: SubjectInfo.icon is an emoji string seeded by
the backend
and rendered as text. The UI now derives its icon from the subject, so emoji cannot
reach the product even though the field is still on the wire.

Operating Systems → Monitor · DSA → GitBranch · Networks → Network · DBMS → Database ·
Data Mining → Pickaxe · Deep Learning → Brain · NLP → MessageSquareText · CV → ScanEye, each
in a tinted tile using the existing per-subject colours, so the visual distinction is preserved. An
unrecognised subject gets Shapes rather than raw text.

No backend change: the emoji are still seeded, just never displayed.

Contextual copy, deterministic rotation

"Your adaptive workspace is ready." is gone. Four states — new, attempting, due, weak — each with
their own pool, and the most specific true signal wins: due reviews outrank weak topics, which
outrank plain attempt history.

Variation is keyed on the day index, so copy rotates as the day turns over and is stable within
a day. Randomising per render would churn the DOM and anything reading it aloud. Hero and support
lines rotate on offset keys so they never echo each other.

Signals come from data already on the page — analytics.totals.quizzesTaken, reviewDueToday,
weakTopics, plus recommendations as a fallback. No new endpoint.

Section labels

Subjects → Your Subjects · Recent Quizzes → Recent Assessments · Quick Start → Your Next Move ·
Recommended next action → Best next step, chosen from your attempts · Recommended Quiz → Suggested for you.

Tests — 46 new

File Tests Covers
themeTypography.test.ts 12 Academia gone, no gold tokens, two modes, stale-storage recovery, serif resolves to Instrument Serif in both files, headings stay Inter, no hardcoded gold
dashboardCopy.test.ts 21 State precedence, same-day stability, day-over rotation, full pool coverage, negative-index wrap, no state reuses the old line
subjectIcons.test.ts 13 Each subject's glyph, all distinct, loose-name tolerance, fallback, missing input

Three bugs were caught by these tests rather than by eye: a leftover BookOpen reference to the
deleted theme, a fuzzy-match ordering bug where "Deep Neural Networks" resolved to Network instead
of Brain, and my own comment in subjectIcons.ts reproducing the emoji it documents — which the
repo-wide emoji guard correctly rejected, since it reads shipped source.

Verification

Check Before After
Frontend 231 / 20 files 277 / 23 files
Playwright E2E 26 passed, 2 skipped unchanged
npm run typecheck exit 0 exit 0
npm run build exit 0 exit 0
npm run lint exit 0, 0 errors exit 0, 0 errors
Emoji in shipped src/ + index.html 0 0

Worth a human eye before merging: the two themes side by side, and the dashboard hero in each
learner state. The tests pin the tokens and the selection logic, not the rendering.

@prathamkashyap
prathamkashyap merged commit c7ae02a into main Oct 4, 2026
3 checks passed
@prathamkashyap
prathamkashyap deleted the chore/blue-aurora-polish branch October 4, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant