tailwindcss-breakpoint-badge
v0.1.2
Published
A simple Tailwind CSS plugin that displays the active breakpoint in a floating badge.
Maintainers
Readme

Tailwindcss Breakpoint Badge
A simple Tailwind CSS plugin that displays the active breakpoint in a floating badge.
It uses the values defined in theme.screens to generate the labels, quietly does nothing if no screens are configured, and is automatically disabled when NODE_ENV === "production".
Install
npm install tailwindcss-breakpoint-badgePackage: tailwindcss-breakpoint-badge
Usage
Add the plugin to your Tailwind config:
const breakpointBadge = require("tailwindcss-breakpoint-badge");
module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [breakpointBadge],
};For TypeScript or ESM configs:
import breakpointBadge from "tailwindcss-breakpoint-badge";
export default {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [breakpointBadge],
};License
MIT
