Skip to content

Consolidate design tokens and centralize component CSS#42

Merged
sr320 merged 1 commit into
mainfrom
design-tokens-consolidation
Jun 20, 2026
Merged

Consolidate design tokens and centralize component CSS#42
sr320 merged 1 commit into
mainfrom
design-tokens-consolidation

Conversation

@sr320

@sr320 sr320 commented Jun 20, 2026

Copy link
Copy Markdown
Member

Phase 1: Add a :root design-token block in styles.css anchored to the flatly theme (navy primary + teal accent), with a single .quarto-dark override that re-maps the same tokens. Removes ~23 one-off hex values and the grafted-in Tailwind blues that clashed with the navbar.

Phase 2: Remove the four inline <style> blocks from people, courses, tools-and-apps, and notebooks and rebuild them as shared, variable-driven component classes in styles.css. Deduplicates repeated card/grid/chip patterns and removes the dead css: people-styles.css reference.

Side effect: fixes broken dark mode on three pages that used @media (prefers-color-scheme: dark) — which followed the OS setting and ignored the navbar toggle. Dark styling now flows through .quarto-dark token overrides consistently across the site.

Phase 1: Add a :root design-token block in styles.css anchored to the
flatly theme (navy primary + teal accent), with a single .quarto-dark
override that re-maps the same tokens. Removes ~23 one-off hex values
and the grafted-in Tailwind blues that clashed with the navbar.

Phase 2: Remove the four inline <style> blocks from people, courses,
tools-and-apps, and notebooks and rebuild them as shared, variable-driven
component classes in styles.css. Deduplicates repeated card/grid/chip
patterns and removes the dead `css: people-styles.css` reference.

Side effect: fixes broken dark mode on three pages that used
@media (prefers-color-scheme: dark) — which followed the OS setting and
ignored the navbar toggle. Dark styling now flows through .quarto-dark
token overrides consistently across the site.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@sr320 sr320 merged commit ac5d6dc into main Jun 20, 2026
1 check passed
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