-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: customize native scrollbar and simplebar styles #123
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Hello @sealye09!
Adjust here:
body.dark {
--c-bg: transparent;
--c-scrollbar: #555;
--c-scrollbar-hover: #888;
}
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.
Hello again @sealye09!
Add it to 'src\theme\antd\index.tsx':
useEffect(() => {
if (themeMode === ThemeMode.Dark) {
document.body.classList.add('dark');
} else {
document.body.classList.remove('dark');
}
}, [themeMode]);
already have that logic in ThemeProvider |
Hello again @sealye09! The Try changing the colors of If you have any questions, please feel free to reach out. |
before
after