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 🙏

© 2025 – Pkg Stats / Ryan Hefner

astro-show-tailwindcss-breakpoint

v1.1.2

Published

Show the current Tailwind CSS breakpoint in the Astro dev toolbar!

Downloads

723

Readme

astro-show-tailwindcss-breakpoint

Show the current Tailwind CSS breakpoint in the Astro dev toolbar!

  • Helpful - Quick reference for the current breakpoint!
  • Simple - Just an extra icon on the existing dev toolbar!
  • Small - No dependencies!
  • Fast - No client-side JavaScript, only an SVG icon!

Version badge NPM downloads badge JSR score badge Minified size (gzip) badge

Screenshot of an Astro dev toolbar using this integration

import { defineConfig } from "astro/config";
import showTailwindCSSBreakpoint from "astro-show-tailwindcss-breakpoint";

export default defineConfig({
  integrations: [
    showTailwindCSSBreakpoint({
      /* Optionally define custom breakpoints: */
      // breakpoints: {
      //   "sm": "40rem",
      //   "md": "48rem",
      //   "lg": "64rem",
      //   "xl": "80rem",
      //   "2xl": "96rem",
      // },
    }),
  ],
});

Installation

Add the integration to your Astro project using the astro add command.
This will install the package and make the appropriate changes to your astro.config.mjs/astro.config.ts file in one step:

npx astro add astro-show-tailwindcss-breakpoint

If you prefer to install the integration manually instead, complete the following two steps:

  1. Install the integration to your project’s dependencies using your preferred package manager.
    If you’re using npm or aren’t sure, run this in the terminal:
    npm install --save-dev astro-show-tailwindcss-breakpoint
    Or, if you're using Deno, run this in the terminal:
    deno add jsr:@jonasgeiler/astro-show-tailwindcss-breakpoint
  2. Add the integration to your astro.config.mjs/astro.config.ts file:
    import { defineConfig } from "astro/config";
       
    // ADD THE FOLLOWING LINE:
    import showTailwindCSSBreakpoint from "astro-show-tailwindcss-breakpoint";
    
    export default defineConfig({
      // ...
      integrations: [
         // ...
       
         // ADD THE FOLLOWING LINE:
         showTailwindCSSBreakpoint(),
      ],
      // ...
    });

Usage

Once installed, the integration will automatically add a new icon to the Astro dev toolbar. The icon will show the current Tailwind CSS breakpoint based on the current viewport width.

Tip
You can click on the breakpoint icon to keep the dev toolbar open! This is useful if you want to see the breakpoint name while resizing the viewport.

Custom Breakpoints

You can optionally define custom breakpoints to use in the dev toolbar.
By default, the breakpoints are:

  • sm: "40rem" (640px with a root font size of 16px)
  • md: "48rem" (768px with a root font size of 16px)
  • lg: "64rem" (1024px with a root font size of 16px)
  • xl: "80rem" (1280px with a root font size of 16px)
  • 2xl: "96rem" (1536px with a root font size of 16px)

These breakpoints are based on the default Tailwind CSS breakpoints.

You can override the default breakpoints by passing a breakpoints option with an object containing the breakpoints you want to use. The keys of the object should be the breakpoint names, and the values should be the sizes of the breakpoints in any preferred CSS unit (px, rem, em, %, etc.). If a number is provided, it will be treated as px by default.

Important
Make sure to use the same units for all breakpoints, otherwise the sorting will not work as expected.

import { defineConfig } from "astro/config";
import showTailwindCSSBreakpoint from "astro-show-tailwindcss-breakpoint";

export default defineConfig({
  integrations: [
    showTailwindCSSBreakpoint({
      breakpoints: {
        "sm": "640px",
        "md": "768px",
        "lg": "1024px",
        "xl": "1280px",
        "2xl": "1536px",
      },
    }),
  ],
});

Credits

This integration was partly inspired by astro-devtool-breakpoints by Bryan Schuetz (@BryanSchuetz).