Skip to content

Align site hierarchy, typography, clarity, and color scheme to FRC 2713 branding - #31

Merged
tytremblay merged 1 commit into
mainfrom
feat/brand-typography-ui-polish
Nov 25, 2026
Merged

tytremblay merged 1 commit into
mainfrom
feat/brand-typography-ui-polish

Conversation

@tytremblay

Copy link
Copy Markdown
Contributor

Summary

Brings software_training/site into alignment with the Red Hawk Robotics 2713 branding guide across hierarchy, typography, clarity, and color scheme (iterated via 4-round visual hill climb to 9/10 across all four categories).

Changes

  • Palette & dark mode (site/src/styles/brand.css, site/src/index.css):
    • Added canonical 2713 brand tokens (#BA0C2F True Red, #333333 Charcoal, #000000 Black, #A3A19E Cool Grey 7, #F2F2F2 Light Grey, #FFFFFF White, #5FC7BA Light Teal) and dark-mode surface ramp (#141414 page, #1E1E1E cards/sidebar, #2A2A2A muted/chrome, #333333 borders).
    • Kept True Red (#BA0C2F) with white text as primary fill in both themes; added --link (#BA0C2F light / #5FC7BA dark) and --emphasis (#BA0C2F light / #F25C74 dark).
    • Replaced hardcoded hex/rgba colors in BlockPlayground.css, StatePlayground.css, FlowchartPlayground.css, and MazePlayground.tsx with accessible semantic tokens.
  • Self-hosted typography (site/package.json, site/src/styles/brand.css, site/src/index.css):
    • Added self-hosted Fontsource packages (@fontsource/barlow, @fontsource/barlow-condensed, @fontsource/open-sans, @fontsource/roboto-mono) so fonts render offline on a shop LAN.
    • Set body to 16px/1.6 Open Sans, display titles to Barlow Condensed bold italic, major headings to Barlow bold italic uppercase, subsections/cards/callouts to Barlow semibold, and lesson numbers/progress/page counters to Roboto Mono (.brand-figures).
  • Marks, favicon, & layout hierarchy (site/index.html, site/public/brand/, site/src/App.tsx, site/src/components/AppSidebar.tsx, site/src/routes/LessonIndex.tsx, site/src/routes/LessonView.tsx):
    • Added unmodified 2713-red.svg and 2713-white.svg marks via <picture> with prefers-color-scheme: dark, 24px cap height, 12px clear space, and aligned h-14 header hairline.
    • Replaced the coffee-cup emoji favicon with a plain True Red color-field SVG.
    • Replaced the repeated header title with contextual breadcrumbs (All lessons > N Title [Page X / Y]), constrained prose-only lessons to max-w-3xl, and styled the Goal callout with a 4px Light Teal rail and 12/14px padding.
  • Action clarity & playgrounds (site/src/components/JavaRunner.tsx, site/src/components/CodeBlock.tsx, site/src/components/PageNav.tsx, site/src/components/FlowchartPlayground.tsx, site/src/lib/editorTheme.ts):
    • Unified JavaRunner with solid True Red Run CTA, Lucide icons, #2A2A2A/#1E1E1E dark chrome separation, and transparent CodeMirror canvas to eliminate oneDark's #282c34 clash.
    • Distinguished read-only CodeBlock examples with a Python example / Output caption bar.
    • Moved Peek at Python into FlowchartPlayground's header so playback controls stay on one row with START to END above the fold.
    • Upgraded PageNav with Page X of Y, 28px dot hit targets (aria-current="page"), primary Next, and :focus-visible rings.

Verification

  • npm run lint in site/: 0 errors (3 pre-existing fast-refresh warnings).
  • npm run build in site/: clean tsc -b && vite build with all Fontsource .woff2 assets bundled locally.
  • Visually inspected light/dark desktop (1280×800) and mobile (390×844) Playwright screenshots across index, prose-only lesson, Python playground, and Flowchart playground views.

@tytremblay
tytremblay merged commit ca80ed5 into main Nov 25, 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