-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Mui, PigmentCss, Vite, react-swc with Typescript setting up for Theme change manually #44653
Comments
@babe5858 Could you provide a minimal repro in a sandbox or a repo? |
Really appreciate your quick response. If i can attach my pages, would that be okay? |
This comment was marked as outdated.
This comment was marked as outdated.
@babe5858 We can't really look into issues without some runnable code that shows the issue, maybe you can fork this template as a start: https://codesandbox.io/p/devbox/strange-kirch-5fqkjl Alternatively, clone this example repo PS here are some tips for making a minimal example: https://stackoverflow.com/help/mcve |
Really appreciate your guidelines. I created a repo. Please check this: https://codesandbox.io/p/devbox/strange-kirch-5fqkjl I gave you edit access as well. |
@babe5858 Hey I think this is the exact same link that I shared 😓 |
@mj12albert I'm sorry, here is the correct link |
@babe5858 Did you start with a fork of the template I shared or the example repo? There are a lot of errors in your sandbox and a lot going on Can you start with the template or the example repo and just add your styles in small steps to see where is it starting to go wrong ? |
@mj12albert : i forked this, https://codesandbox.io/p/devbox/strange-kirch-5fqkjl, and added my changes in app. Yes, its giving a lot of errors. is it related to bad viteConfig setup? |
If we forget about my repo/files above, at least if you can share a working example of a app, where Mui, PigmentCss, Vite, react-swc with Typescript is present in example page, and a simple button to change the theme with pigmentcss, i can study that and i can try it locally. Any thoughts |
is it Themeprovider needed for theming with pigmentCSS and how to setup it up and how to change theme in app with a button click. those are the main issues i have |
Here is a sandbox: https://codesandbox.io/p/devbox/holy-http-ygcwz2 This is the same example repo I previously shared. The only change is |
👋 Thanks for using this project! We use GitHub issues exclusively as a bug and feature requests tracker, however, this issue appears to be a support request. For support with Material UI please check out https://mui.com/material-ui/getting-started/support/. Thanks! If you have a question on Stack Overflow, you are welcome to link to it here, it might help others. |
@mj12albert Thanks, with the app in place now, any thoughts how can i change theme in my defined light and dark customer colors schemes possible in above sandbox? i tried using documentations, but couldn't achieve it. https://mui.com/material-ui/customization/dark-mode/#toggling-color-mode these didn't work for me. if you can help on this, that would be awesome! Anyway, really appreciate the help. |
https://codesandbox.io/p/devbox/buddika-test-forked-t69yqq
Hi, Would someone please be kind enough to help me to find out how to setup Mui, PigmentCss, Vite, react-swc with Typescript environment. I need to click a button and change the theme. I tried to use NextJs example, but getting a lot of errors. Please help. Thanks!
Search keywords:
The text was updated successfully, but these errors were encountered: