-
Notifications
You must be signed in to change notification settings - Fork 3
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
removed useDarkMode #794
removed useDarkMode #794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've pointed out some issues not directly related to this PR, but I wasn't aware of them (remember I've been out for a month..).
Overall you should stop using the useColorModeValue
hook, and use the _dark
prop instead. The hook should only be used for some specific cases where you need a value change, but for theming purposes simply use the _dark
prop instead.
Also, avoid styling buttons. Buttons should only have a variant
for now, any other props should be done in that variant, or maybe they should not be in that button at all.
… in input custom and checkbox custom
Removed useDarkMode hook and use useColorModeValue in each Component