
Security News
Next.js Patches Critical Middleware Vulnerability (CVE-2025-29927)
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
tailwindcss-dotted-background
Advanced tools
A simple Tailwind CSS plugin that adds dotted backgrounds with all for all configured colors and spacing.
A simple Tailwind CSS plugin that adds dotted backgrounds with all for all configured colors and spacing.
First install the package:
npm install -D tailwindcss-dotted-background
or
yarn add tailwindcss-dotted-background -D
Then require the installed plugin directly in your tailwind.config.js
:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-dotted-background'),
// ...
],
}
Combine the bg-dotted-spacing-{spacing}
and bg-dotted-{colors}
classes to specify the spacing and the color of the dots.
<div class="bg-dotted-spacing-4 bg-dotted-gray-200" />
<div class="bg-dotted-spacing-[9px] bg-dotted-red-300 hover:bg-dotted-spacing-2" />
The default radius of the dots is 1px
. Use bg-dotted-radius-{spacing}
to change the size.
<div class="bg-dotted-spacing-6 bg-dotted-red-700 bg-dotted-radius-1" />
bg-dotted-spacing-{spacing}
changes both the width and height at once. Use bg-dotted-spacing-x-{spacing}
and bg-dotted-spacing-y-{spacing}
to specify different height and width.
<div class="bg-dotted-spacing-x-6 bg-dotted-spacing-y-3 bg-dotted-cyan-900" />
Dots are created using background-image
and background-size
so these utilities are incompatible with any classes using these properties.
Arbitrary values are supported for both bg-dotted-spacing-{spacing}
and bg-dotted-{colors}
classes.
FAQs
A simple Tailwind CSS plugin that adds dotted backgrounds with all for all configured colors and spacing.
We found that tailwindcss-dotted-background 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
Next.js has patched a critical vulnerability (CVE-2025-29927) that allowed attackers to bypass middleware-based authorization checks in self-hosted apps.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.