npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tailwind-breakpoint-debugger

v1.0.12

Published

A lightweight React component to help developers visualize and debug Tailwind CSS breakpoints during development.

Readme

Tailwind Breakpoint Debugger

A lightweight React component to help developers visualize and debug Tailwind CSS breakpoints during development.

Tested with Vite and Next.js.
Before installing, check which Tailwind version you're using — setup differs between Tailwind v3 and v4.


✨ Features

  • 📏 Shows current active breakpoint
    • Supports custom Tailwind breakpoints
    • Default: xs, sm, md, lg, xl, 2xl
    • Optional: 3xl, 4xl (see setup instructions below)
  • 💻 Renders in development mode only
  • 🎨 Minimal, non-intrusive design

📦 Installation

Using npm:

npm install tailwind-breakpoint-debugger

Or with yarn:

yarn add tailwind-breakpoint-debugger

🧠 Usage

Import and include the component in your app:

import BreakpointDebugger from 'tailwind-breakpoint-debugger';

function MyApp() {
  return (
    <>
      {/* Your app components */}
      <BreakpointDebugger />
    </>
  );
}

🔧 Customizing Breakpoints

You can optionally show only specific breakpoints:

<BreakpointDebugger breakpoints={['xs', 'md', 'lg']} />

✅ Requirements

  • React 18+
  • Tailwind CSS v3.0+ (works with v4 too)

⚙️ Tailwind Setup

📘 Tailwind v3 / Next.js

This package works out of the box with Next.js + Tailwind v3, as long as you add the package to your Tailwind content array:

// tailwind.config.js
module.exports = {
  content: [
    './src/**/*.{js,ts,jsx,tsx}',
    'node_modules/tailwind-breakpoint-debugger/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {
      screens: {
        // Use rem for consistency
        '3xl': '122.5rem', // 1960px
        '4xl': '160rem',   // 2560px
      },
    },
  },
  plugins: [],
}

And don’t forget to include Tailwind layers in your global CSS:

/* styles/globals.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

📘 Tailwind v4 / Next.js

As Tailwind v4 uses a CSS-first configuration model, there is different setup you need to put in your global.css file. Also, you will need to create and use tailwind.config.js, regardless of version with Next.js:

@import "tailwindcss";
@config "../tailwind.config.js";

Everything else remains the same as with v3 setup.


⚡ Tailwind v4 / Vite

This method only works with Vite, as @source is currently not supported by Next.js.

Tailwind v4 supports a CSS-first configuration model. You no longer need tailwind.config.js unless you're using advanced features.

Instead, define breakpoints directly in your global CSS:

/* global.css or whatever CSS file you're using */
@import "tailwindcss";

@source "../node_modules/tailwind-breakpoint-debugger"; /* Required to scan the package */

@theme {
  /* Use rem to avoid overlapping breakpoint ranges */
  --breakpoint-3xl: 122.5rem; /* 1960px */
  --breakpoint-4xl: 160rem;   /* 2560px */
}

📝 Notes

  • Only renders in development mode
  • Non-intrusive, positioned in the bottom-left of the screen
  • No effect on production builds

📄 License

MIT License


📧 Questions / Contacts / Bugs

Hey there! This is my first package on npm, and while it’s built to help fellow developers get started more easily, I understand that things don’t always work perfectly.

If you run into any bugs, have questions, or just want to share feedback or suggestions — I’d genuinely appreciate it. Don’t hesitate to reach out! Also if you have any cool open-source project ideas, feel free to share them with me :)

Contact me on:

In case of problems with code:

  • Make a pull request on GitHub
  • Shoot me an e-mail with the subject "Tailwind Breakpoint Debugger is Bugggered!" xD

Thanks for using Tailwind Breakpoint Debugger! 🚀


Keywords: tailwind, next.js, react, breakpoint, debugger, tailwindcss, vite, tailwind v4, tailwind v3