Skip to content

Align the wizard with the docs theme; stepper sidebar - #144

Merged
jodeleeuw merged 1 commit into
mainfrom
wizard-theme-consistency
Jul 24, 2026
Merged

Align the wizard with the docs theme; stepper sidebar#144
jodeleeuw merged 1 commit into
mainfrom
wizard-theme-consistency

Conversation

@jodeleeuw

Copy link
Copy Markdown
Member

The embedded wizard read like a separate app bolted into the docs site — different font, different accent colors, its own welcome hero, a nav that looked like a bullet list. This makes the shared jsPsych Docusaurus theme the single source of truth and redesigns the wizard to fit the context it appears in.

Typography

  • Unify on Lexend Variable (the theme's brand font) across docs chrome, docs prose, and the wizard. The wizard loads the same @fontsource-variable/lexend package instead of Google-Fonts IBM Plex Sans.
  • Drop the custom.css override that forced the docs back to a system font stack.

Color

  • Retokenize every wizard --c-* value to the theme's exact tokens and adopt its roles: green is the primary CTA, orange is a ≤10% accent.
  • Fix docs-side stray hexes (#e8973a) to theme tokens.
  • Two-tier danger: base for fills/borders, contrast-foreground for error text so it clears WCAG AA.

Embedded entry

  • Lean start screen when framed: drop the redundant logo/title/description and Psych-DS explainer (the site already provides them); keep the new/open choice. Full hero retained for standalone access.

Sidebar

  • Blend the nav into the content surface (no separate zone; hairline dividers).
  • Render steps as a vertical flow: a connector line threading circular nodes (hollow → accent ring → green check), filled green through completed steps, with larger (1rem) labels.

Content

  • Remove the redundant fixed step-title bar — the sidebar's active step now carries that context. Inline the Variables "Expand all" toggle; keep a visually-hidden per-step heading for accessibility.

Polish

  • Branded :focus-visible keyboard ring and prefers-reduced-motion support.

DESIGN.md updated throughout to match.

Verification

Root typecheck, frontend lint (0 errors), 269 frontend tests, website typecheck, and the wizard build all pass.

Note

These changes are verified by build/lint/tests but have not yet had a visual pass in a browser — worth an eyeball of /wizard in light/dark before merge.

🤖 Generated with Claude Code

…ebar

The embedded wizard read like a separate app bolted into the docs site.
Make the shared jsPsych Docusaurus theme the single source of truth and
redesign the wizard to fit the context it appears in.

Typography
- Unify on Lexend Variable (the theme's brand font) across the docs
  chrome, docs prose, and the wizard; the wizard loads the same
  @fontsource-variable/lexend package instead of Google-Fonts IBM Plex.
- Drop the custom.css override that forced the docs back to a system stack.

Color
- Retokenize every wizard --c-* value to the theme's exact tokens and
  adopt its roles: green is the primary CTA, orange is a <=10% accent.
- Fix docs-side stray hexes (#e8973a) to theme tokens.
- Two-tier danger: base for fills/borders, contrast-foreground for error
  text so it clears WCAG AA.

Embedded entry
- Lean start screen when framed: drop the redundant logo/title/description
  and Psych-DS explainer (the site already provides them); keep the
  new/open choice. Full hero retained standalone.

Sidebar
- Blend the nav into the content surface (no separate zone; hairline
  dividers) and render the steps as a vertical flow: a connector line
  threading circular nodes (hollow -> accent ring -> green check),
  filled green through completed steps, with 1rem labels.

Content
- Remove the redundant fixed step-title bar (the sidebar's active step
  carries that context); inline the Variables "Expand all" toggle; keep a
  visually-hidden per-step heading for accessibility.

Polish
- Add a branded :focus-visible keyboard ring and prefers-reduced-motion
  support.

DESIGN.md updated throughout to match. Verified: typecheck, lint, 269
frontend tests, and the wizard build all pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 39e26ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jodeleeuw
jodeleeuw merged commit 8a34101 into main Jul 24, 2026
3 checks 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