Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
tailwind-modern-scroll
Advanced tools
Readme
This plugin provides dynamic directives that allow you to format scrollbars and scroll thumbs in your projects that use the tailwind framework.
First, you have to download the plugin to your project.
npm i tailwind-modern-scroll -D
You need to add the plugin to the main tailwind configuration file.
your-project/tailwind.config.js
const modernScroll = require( "tailwind-modern-scroll" );
module.exports =
{
// other configs...
plugins:
[
modernScroll,
// ...other plugins
],
// ...other configs
}
If you prefer to use VS Code and installed tailwind intellisense extension our directives will suggest to you in it.
First of all you have to add modern-scroll
base class to your items that have scroll bars. This provides the basic features that meet the minimum requirements for the scrollbar to look modern.
<div class="h-96 w-full overflow-auto modern-scroll"></div>
You can change both the scroll bar background and the scroll thumb background colors with theme colors or direct colors.
<div class="... modern-scroll scroll-sky-100 thumb-[#fc0]"></div>
You can even use opacity modifiers too.
<div class="... scroll-[#000]/20 thumb-[#000]/20"></div>
You can only change scroll wrapper width and not thumb's.
<div class="... scroll-w-10"></div>
You can specify the minimum and maximum height of the slider.
<div class="... thumb-min-h-10 thumb-max-h-20"></div>
You can round the edges both of the scroll wrapper and the thumb.
<div class="... scroll-round-full thumb-round-full"></div>
FAQs
It's a customizable scroll bar plugin for the tailwind css framework.
The npm package tailwind-modern-scroll receives a total of 3 weekly downloads. As such, tailwind-modern-scroll popularity was classified as not popular.
We found that tailwind-modern-scroll demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.