Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@mr-scroll/css-theming
Advanced tools
The best custom scroll for the web. This is the css-theming support package.
The best custom scroll for the web.
This is the css-theming support package. Check here (root of this repo) for an overview on mr-scroll.
This package styles the scroll (thumb, etc) according to the active theme when using css-theming.
Assuming we're using angular (if not, install the respective wrapper package instead of @mr-scroll/angular):
npm i @mr-scroll/core @mr-scroll/angular @mr-scroll/css-theming
You only need to import the SCSS file that this package includes in your global SCSS file, and call the mixin it provides:
// For example, in styles.scss
// From css-theming
@import 'css-theming/src/scss/css-theming';
// From @mr-scroll/css-theming
@import '@mr-scroll/css-theming/src/scss/css-theming';
// You can optionally provide values here.
@include msct-apply();
If you're using the SCSS module system instead:
// For example, in styles.scss
// From css-theming
@use 'css-theming/src/scss/css-theming';
// From @mr-scroll/css-theming
@use '@mr-scroll/css-theming/src/scss/css-theming' as msct;
// You can optionally provide values here.
@include msct.apply();
That's it. If you have css-theming set up properly, you'll see that the scroll's thumb changes colors as the user switches between light and dark themes.
FAQs
The best custom scroll for the web. This is the css-theming support package.
We found that @mr-scroll/css-theming demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.