
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
tailwindcss-bg-patterns
Advanced tools
TailwindCSS Background Patterns Inspired by CSS Background Patterns by MagicPattern and used by <a href
Inspired by CSS Background Patterns by MagicPattern and used by RelayForms
See a live demo of all background patterns here: Live demo
Add the tailwindcss-bg-patterns
plugin to your project:
# Install using npm
npm install --save-dev tailwindcss-bg-patterns
# Install using yarn
yarn add -D tailwindcss-bg-patterns
# Install using pnpm
pnpm add -D tailwindcss-bg-patterns
// tailwind.config.js
{
theme: { // defaults to these values
patterns: {
opacities: {
100: "1",
80: ".80",
60: ".60",
40: ".40",
20: ".20",
10: ".10",
5: ".05",
},
sizes: {
1: "0.25rem",
2: "0.5rem",
4: "1rem",
6: "1.5rem",
8: "2rem",
16: "4rem",
20: "5rem",
24: "6rem",
32: "8rem",
}
}
},
plugins: [
require('tailwindcss-bg-patterns'),
],
}
Included are the following patterns:
pattern-lines
)pattern-vertical-lines
)pattern-diagonal-lines
)pattern-rectangles
)pattern-rhombus
)pattern-dots
)pattern-boxes
)pattern-cross
)pattern-zigzag
)pattern-zigzag-3d
)pattern-isometric
)pattern-wavy
)pattern-triangles
)pattern-moon
)pattern-paper
)The plugin provides utility classes to control the foreground and background colors (based on your theme colors) as well as opacity and sizing (can be controlled in your theme, too):
Opacity: pattern-opacity-80
applies opacity of 0.8
By default the plugin comes with the following options for opacity: pattern-size-100
, pattern-size-80
, pattern-size-60
, pattern-size-40
, pattern-size-20
, pattern-size-10
, pattern-size-5
x
Size: pattern-size-8
applies a size of 2rem
By default the plugin comes with the following options for size: pattern-size-1
, pattern-size-2
, pattern-size-4
, pattern-size-6
, pattern-size-8
, pattern-size-16
, pattern-size-20
, pattern-size-24
, pattern-size-32
Color: pattern-indigo-600
(foreground) and pattern-bg-white
(background)
Colors will be extracted from your theme.
Applying the isometric background pattern to a div:
<div
class="w-56 h-56 pattern-isometric pattern-indigo-600 pattern-bg-transparent pattern-opacity-60 pattern-size-8"
></div>
Which results in:
FAQs
TailwindCSS Background Patterns Inspired by CSS Background Patterns by MagicPattern and used by <a href
The npm package tailwindcss-bg-patterns receives a total of 11,051 weekly downloads. As such, tailwindcss-bg-patterns popularity was classified as popular.
We found that tailwindcss-bg-patterns 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.