Skip to content

Conversation

@talbs
Copy link
Contributor

@talbs talbs commented Sep 24, 2025

This PR refactors the theme system logic to handle different page types dynamically and adds Turbo navigation support. The changes centralize theme initialization logic and ensure proper theme handling during page transitions.

  • Refactored theme logic to conditionally handle site pages vs. regular pages with different stylesheets
  • Added Turbo navigation event listener to reinitialize themes on page transitions
  • Removed duplicate theme initialization script from base template

@vercel
Copy link

vercel bot commented Sep 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
webawesome Ready Ready Preview Sep 24, 2025 9:04pm

@talbs talbs requested a review from Copilot September 24, 2025 18:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the theme system logic to handle different page types dynamically and adds Turbo navigation support. The changes centralize theme initialization logic and ensure proper theme handling during page transitions.

  • Refactored theme logic to conditionally handle site pages vs. regular pages with different stylesheets
  • Added Turbo navigation event listener to reinitialize themes on page transitions
  • Removed duplicate theme initialization script from base template

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/webawesome/docs/assets/scripts/theme.js Added conditional logic for site pages, Turbo support, and centralized theme initialization
packages/webawesome/docs/_includes/base.njk Removed inline theme initialization script

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Collaborator

@KonnorRogers KonnorRogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

* theming logic is handled by theme.js and theme-selector.njk, mmkay?
@talbs talbs force-pushed the talbs/update-theme-logic branch from 232b32a to 45db8d8 Compare September 24, 2025 21:03
@talbs talbs merged commit 53f1b36 into next Sep 24, 2025
2 checks passed
@talbs talbs deleted the talbs/update-theme-logic branch September 24, 2025 21:10
@talbs talbs mentioned this pull request Sep 25, 2025
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.

3 participants