Curently UIKit provides custom scrollbars by default that can be disabled using nativeScrollbar option on the ThemeProvider.
However, on Chrome-based browsers on Windows, native scrollbars appear white even when dark mode on the body is enabled (and setting color-scheme: dark on the body tag does not help).
Example
To get proper dark scrollbars we need to set color-scheme: dark on the :root element (html tag). GitHub itself, for example, is doing exactly that.
This PR adds color-scheme styling to :root (but this new styles only apply when uikit theme is not scoped).
Curently UIKit provides custom scrollbars by default that can be disabled using nativeScrollbar option on the ThemeProvider.
However, on Chrome-based browsers on Windows, native scrollbars appear white even when dark mode on the body is enabled (and setting
color-scheme: dark
on the body tag does not help).Example
To get proper dark scrollbars we need to set
color-scheme: dark
on the:root
element (html tag). GitHub itself, for example, is doing exactly that.This PR adds color-scheme styling to
:root
(but this new styles only apply when uikit theme is not scoped).Examples with color-scheme on :root