New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tailwind-prefixer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwind-prefixer

Vite plugin to add prefixes to your Tailwind classes in your JSX/TSX

latest
Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
207
135.23%
Maintainers
1
Weekly downloads
 
Created
Source

tailwind-prefixer

Vite plugin to add prefixes to your Tailwind classes in your JSX/TSX.

Available here on NPM.

Quickstart

Install

npm install -D tailwind-prefixer

Use

// vite.config.ts
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { tailwindPrefixer } from "tailwind-prefixer";
import { defineConfig } from "vite";

export default defineConfig(({ mode }) => ({
  // ...rest of your config
  plugins: [
    tailwindPrefixer({
      prefix: "foo:",
      include: ["**/*.tsx"],
      exclude: ["node_modules/**"],
    }),
    tailwindcss(),
    react(),
  ],
}));

FAQs

Package last updated on 23 Sep 2025

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