
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
tailwindcss-gradients
Advanced tools
Tailwind CSS plugin to generate gradient background utilities
npm install tailwindcss-gradients
// In your Tailwind CSS config
{
theme: {
gradients: {
directions: {
't': 'to top',
'tr': 'to top right',
'r': 'to right',
'br': 'to bottom right',
'b': 'to bottom',
'bl': 'to bottom left',
'l': 'to left',
'tl': 'to top left',
},
colors: {
'red': '#f00',
'red-blue': ['#f00', '#00f'],
'red-green-blue': ['#f00', '#0f0', '#00f'],
},
},
},
variants: {
gradients: ['responsive'],
},
plugins: [
require('tailwindcss-gradients')(),
],
}
This plugin generates the following utilities:
/* configurable with the "gradients" theme key */
.bg-gradient-[direction-key]-[color-key] {
background-image: linear-gradient([direction-value], [color-value-1], [color-value-2], [...]);
}
Note: The directions
key in theme.gradients
is optional and defaults to the above values. Also, the gradients
variants key defaults to ['responsive']
.
Added since 2.0.0-beta.2
README
for more info)FAQs
Tailwind CSS plugin to generate gradient background utilities
The npm package tailwindcss-gradients receives a total of 4,146 weekly downloads. As such, tailwindcss-gradients popularity was classified as popular.
We found that tailwindcss-gradients 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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.