Skip to content

feat(site): add theme support (light/dark mode)#32

Merged
wsxiaoys merged 5 commits intomainfrom
feat/theme-support
Mar 23, 2026
Merged

feat(site): add theme support (light/dark mode)#32
wsxiaoys merged 5 commits intomainfrom
feat/theme-support

Conversation

@liangfung
Copy link
Copy Markdown
Contributor

Summary

This PR adds full theme support (light/dark mode) to the benchmark site.

  • Theme Management: Integrated next-themes for robust theme switching and persistence.
  • UI Components: Added ThemeProvider and a ThemeToggle component in the header.
  • Theme-Aware Trajectory: Updated the trajectory iframe to dynamically switch themes based on the site's current theme, ensuring a consistent visual experience.
  • Improved Styling: Refined the trajectory page UI with better layout, backdrop blurs, and consistent typography.

Test plan

  1. Open the site and verify the theme toggle in the top-right corner.
  2. Switch between Light, Dark, and System themes.
  3. Navigate to a trajectory page and verify that the iframe content correctly reflects the chosen theme.
  4. Verify that the theme persists across page reloads.

🤖 Generated with Pochi | Task

liangfung and others added 2 commits March 20, 2026 22:31
- Added `next-themes` for theme management.
- Created `ThemeProvider` and `ThemeToggle` components.
- Integrated theme support into the root layout.
- Updated the trajectory page to handle theme-aware iframe rendering.
- Improved overall UI styling for the trajectory page.

🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-e1d7b6023162482cbc9352dc92b945fd)

Co-Authored-By: Pochi <noreply@getpochi.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 20, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-23 06:30 UTC

@liangfung liangfung requested a review from wsxiaoys March 20, 2026 14:47
@wsxiaoys wsxiaoys merged commit f1f020b into main Mar 23, 2026
1 check passed
zwpaper pushed a commit that referenced this pull request Mar 31, 2026
* feat(site): add theme support (light/dark mode)

- Added `next-themes` for theme management.
- Created `ThemeProvider` and `ThemeToggle` components.
- Integrated theme support into the root layout.
- Updated the trajectory page to handle theme-aware iframe rendering.
- Improved overall UI styling for the trajectory page.

🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-e1d7b6023162482cbc9352dc92b945fd)

Co-Authored-By: Pochi <noreply@getpochi.com>

* update

* update

* update

* update

---------

Co-authored-by: Pochi <noreply@getpochi.com>
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.

2 participants