Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tailwindcss-pattern

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-pattern

A tailwindcss plugin to add beautiful background patterns

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

tailwindcss-pattern

Tailwindcss plugin to add beautiful background patterns.

Tailwindcss Patterns

Features

  • 11 background patterns.
  • Use existing tailwind colors and extend with new colors.
  • Change pattern on hover.
  • responsive variants.
  • dark mode support.

Installation

npm install -D tailwindcss-pattern

Add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('tailwindcss-pattern'),
    // ...
    ],
};

Usage

Minimal example:

<div class="pattern-grid"></div>

Example with tailwind colors:

<div class="bg-red-300 pattern-grid pattern-color-red-500"></div>

Change pattern size: Predefined sizes: are sm md lg and xl and you can use custom sizes like 2rem 12px etc.

<div class="pattern-grid-lg"></div>
<div class="pattern-checks-[2rem]"></div>
<div class="pattern-dots-[12px]"></div>

Try on Playground: Tailwindcss Patterns Playground

Pattern Classes

Class
pattern-checks
pattern-grid
pattern-dots
pattern-cross-dots
pattern-diagonal-lines
pattern-horizontal-lines
pattern-vertical-lines
pattern-diagonal-stripes
pattern-horizontal-stripes
pattern-vertical-stripes
pattern-triangles
pattern-zigzag

LICENSE

MIT

Keywords

FAQs

Package last updated on 26 Sep 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc