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

tailwindcss-displaymodes

v1.0.8

Published

Provides with variants for different display modes

Readme

tailwindcss-displaymodes

tailwindcss-displaymode

The tailwindcss-displaymodes plugin is an extension for Tailwind CSS that provides additional variants to apply specific classes when a website is being viewed in different display modes. This guide will walk you through the installation and usage of the plugin.

Install the plugin from npm:

$ npm install tailwindcss-displaymodes

Then add the plugin to your tailwind.config.js file:

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

Usage

Once you have installed and enabled the tailwindcss-displaymodes plugin, you can start using the additional variants it provides.

The plugin introduces the following display mode variants:

  • standalone
  • minimal-ui
  • browser
  • fullscreen

To apply classes specific to a particular display mode, use the format displaymode:class. For example, to hide an element when the website is viewed in "standalone" mode, you can use the standalone:hidden class.

Here's an example usage:

<div class="standalone:hidden">
  This content will be hidden in standalone mode.
</div>

You can combine the display mode variants with other Tailwind CSS utility classes to achieve the desired styling and behavior.

Supported display modes

The tailwindcss-displaymodes plugin supports the following display modes:

  • Standalone : When the website is launched as a standalone web app.
  • Minimal-ui : When the browser UI is minimized, typically used on mobile devices.
  • Browser : When the website is viewed in a regular browser mode.
  • Fullscreen : When the website is displayed in fullscreen mode.

For a detailed understanding of the functionality of each display mode, you can refer to the documentation available on MDN.

Please note that the availability of display modes may vary depending on the device and browser used.

Conclusion

Congratulations! You have successfully installed and configured the tailwindcss-displaymodes plugin. You can now utilize the additional display mode variants to enhance the styling and behavior of your Tailwind CSS project.

License

tailwindcss-displaymodes is licensed under the MIT License.

Credits

Created with create-tailwind-plugin.