Skip to content
New issue

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

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

Already on GitHub? # to your account

[examples] Add Theme Mode Switch to Next.js TS example #43576

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

TurtIeSocks
Copy link
Contributor

This adds a basic theme mode switcher component to the root layout and demos how to use the InitColorSchemeScript. I had to dig through a couple of pages of docs to find the correct way with v6 so I figured having a complete example might be useful for others as well.

@mui-bot
Copy link

mui-bot commented Sep 2, 2024

Netlify deploy preview

https://deploy-preview-43576--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against f4c6a72

@TurtIeSocks
Copy link
Contributor Author

Did I miss anything required for this to move through?

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 8, 2024
@ZeeshanTamboli
Copy link
Member

cc @siriwatknp

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

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

👍 CSS theme variables feature is now stable so this makes sense.

Signed-off-by: Siriwat K <siriwatkunaporn@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Dec 11, 2024
@ZeeshanTamboli ZeeshanTamboli merged commit 6497d21 into mui:master Dec 11, 2024
19 checks passed
@TurtIeSocks TurtIeSocks deleted the nextjs-theme-switcher branch December 14, 2024 13:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
examples Relating to /examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants