diff --git a/packages/core/src/_dark-theme.scss b/packages/core/src/_dark-theme.scss new file mode 100644 index 0000000000..11d15b3149 --- /dev/null +++ b/packages/core/src/_dark-theme.scss @@ -0,0 +1,8 @@ +// Copyright 2021 Palantir Technologies, Inc. All rights reserved. +// Licensed under the Apache License, Version 2.0. + +.#{$ns}-dark { + // this tells the browser to use a dark theme UI, which is most useful for enabling + // dark scrollbars (only works in Chrome and Edge, not IE or Firefox) + color-scheme: dark; +} diff --git a/packages/core/src/blueprint.scss b/packages/core/src/blueprint.scss index 0e2ab40bce..08d9bfc575 100644 --- a/packages/core/src/blueprint.scss +++ b/packages/core/src/blueprint.scss @@ -13,6 +13,7 @@ Licensed under the Apache License, Version 2.0. @import "reset"; @import "typography"; @import "accessibility/focus-states"; +@import "dark-theme"; // Button variables and overrides $button-active-minimal-intent-text-modern: (