Package Exports
- @bebeal/tailwind-grid
- @bebeal/tailwind-grid/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bebeal/tailwind-grid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Tailwind Grid
A simple Tailwind CSS plugin that adds grid & dot background patterns

Installation
npm install @bebeal/tailwind-grid --save-dev
Usage
Tailwind v3
Add the plugin to your Tailwind configuration:
// tailwind.config.ts
import type { Config } from 'tailwindcss'
import GridPlugin from '@bebeal/tailwind-grid'
export default {
theme: {
// ...
},
plugins: [
GridPlugin,
],
} satisfies Config
Tailwind v4
Use the @plugin
directive in your css file:
@plugin '@bebeal/tailwind-grid';
Available Classes
bg-grid-{color}
bg-grid-md-{color}
bg-grid-sm-{color}
bg-dot-{color}
bg-dot-md-{color}
bg-dot-sm-{color}
You can style them like any other background (e.g. with color, opacity, etc.)
Example
<div className="h-[450px] bg-black bg-grid-white/[0.3] relative">
<div className="absolute pointer-events-none inset-0 bg-black [mask-image:radial-gradient(ellipse_at_center,transparent_20%,black)]" />
</div>
License
MIT