-
Notifications
You must be signed in to change notification settings - Fork 700
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
Support Dark theme based on the web browser's theme #16
Comments
@krishnaacharyaa |
Are you planning to use switch ? to toggle between dark and light ? If yes don't , we'll have it as another issue. And if you are using context api, kindly research on the best practice as to where the file should be placed in the existing file structure. |
Sir in src I will make a folder context. |
Sir we need to update header which contain that component. |
Please carefully read the instruction(issue description) and the following reply, this story is not for having switch using toggle, this story is to support default dark theme based on the browser theme |
sir we can use window.matchMedia it will detect browser theme it light or dark |
sir I checked using mediaQuery we can change to dark mode. Based on system them because system and browser have same them. |
Thank you for your inputs and research @SankalpHaritash21, But can we try to do this in tailwind level ? |
Sir I go through this approach but this approach is used to manual switching. |
Oh is it ? Let me do a research and get back to you, if we cannot do it in the tailwind-css level, |
@SankalpHaritash21, we just have to add |
ok sir I will do. Plz update figma dark mode design. |
It might take me some time to update the figma file, I feel you can manage even without figma design, it should not take much efforts, some background changes at the top level should do is what i feel, and some button design, other than that it should be mostly simple, you can try and come up with a solution, if it requires major changes, i'll create figma design. |
ok sir . I will try my best. Till then I will also try figma |
sir I am facing merge conflict error. and sir I by mistake removed 2 branch while correcting it. plz help |
I didn't get it, by mistake removed 2 branch meaning ? |
Try to resolve the merge conflict, you will face because of the latest changes, when rebasing |
@krishnaacharyaa sir I am facing a issue that when we use declaring color as a variable in this if we don't use dark keword before them then the by default first color applyed is implemented and not able to add opacity also. |
Now the project doesn't switch to dark theme when the browser's theme is set to dark, we have to make it compatible for dark theme.
To better test this, use edge browser and switch the theme between light and dark.
The text was updated successfully, but these errors were encountered: