Skip to content

feat: implement dark mode for scrollbars#516

Open
effessdev wants to merge 1 commit into
labex-labs:masterfrom
effessdev:master
Open

feat: implement dark mode for scrollbars#516
effessdev wants to merge 1 commit into
labex-labs:masterfrom
effessdev:master

Conversation

@effessdev

@effessdev effessdev commented Jul 6, 2026

Copy link
Copy Markdown

Before

image




The scrollbars didn't change color when we toggled dark mode.

After

image




Now the scrollbar correctly changes to dark mode when dark mode is toggled on.

Implementation

Added custom scrollbar styles to src/styles/index.css file.

Another small adjustment

Previously, there was an absolutely positioned separator in the sidebar that was only visible in dark mode:

image




However, when we scroll down, it cuts off midway:

image




Since it was completely invisible in light mode (see the screenshot below), I thought it would be better if I removed it instead of fixing it for consistency. It was only three lines of code, so not a big problem.

Light mode:

image




Removed lines:

image

Verifications

  • Verified that the mobile sidebar works correctly.
  • Verified that other components in the website like code blocks work correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant