UNPKG

@mui/material

Version:

Quickly build beautiful React apps. MUI is a simple and customizable component library to build faster, beautiful, and more accessible React applications. Follow your own design system, or start with Material Design.

39 lines (37 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = darkScrollbar; // track, thumb and active are derieved from macOS 10.15.7 const scrollBar = { track: '#2b2b2b', thumb: '#6b6b6b', active: '#959595' }; function darkScrollbar(options = scrollBar) { return { scrollbarColor: `${options.thumb} ${options.track}`, '&::-webkit-scrollbar, & *::-webkit-scrollbar': { backgroundColor: options.track }, '&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb': { borderRadius: 8, backgroundColor: options.thumb, minHeight: 24, border: `3px solid ${options.track}` }, '&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus': { backgroundColor: options.active }, '&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active': { backgroundColor: options.active }, '&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover': { backgroundColor: options.active }, '&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner': { backgroundColor: options.track } }; }