Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Forced Theme #222

Closed
anges244 opened this issue Oct 7, 2023 · 3 comments
Closed

Dynamic Forced Theme #222

anges244 opened this issue Oct 7, 2023 · 3 comments

Comments

@anges244
Copy link

anges244 commented Oct 7, 2023

Is there a way to have a dynamic forced theme for a page, using the pages routing?

Edit: Managed to achieve it with a hacky class trick but is there a way to do it with the api?

@JamesBream
Copy link

I think this is what you're looking for?

https://github.com/pacocoursey/next-themes#force-page-to-a-theme

@lukemartin
Copy link

Is there an equivalent way of forcing the theme with the app router?

Thanks ✌️

@trm217
Copy link
Collaborator

trm217 commented Apr 22, 2024

There is an example on how to achieve this behaviour here

@trm217 trm217 closed this as completed Apr 22, 2024
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

No branches or pull requests

4 participants