Skip to content
PluginStats

@digitaliseringsbyran/tailwindcss-screens-in-dom weekly downloads statistics

By digitaliseringsbyran · npm · Tailwind plugins

Expose the active tailwind screen to the DOM.

View on npm Stale · Oct 18, 2026

@digitaliseringsbyran/tailwindcss-screens-in-dom has 15 recorded weekly downloads on npm, an increase of 50.0% over the past 30 days.

Weekly downloads
15
Official API · Oct 18, 2026
7-day growth
+114%
+8 weekly downloads
30-day growth
+50.0%
+5 weekly downloads
90-day growth
+275%
+11 weekly downloads
Rank
—
Among tracked npm listings

About @digitaliseringsbyran/tailwindcss-screens-in-dom

tailwindcss-screens-in-dom

Expose the active tailwind screen (like sm, md) in body:before, allowing you to use the value in Javascript. Read more

Installation

$ npm install @digitaliseringsbyran/tailwindcss-screens-in-dom --save-dev

Usage

Add the plugin to the plugins array in your tailwind config.

plugins: [
  // ...
  require('@digitaliseringsbyran/tailwindcss-screens-in-dom')()
]
Options

You can pass an object to override the default settings.

// Default options

plugins: [
  require('@digitaliseringsbyran/tailwindcss-screens-in-dom')({
    noScreen: 'xs' // Viewports below the smallest defined screen.
  })
]

Access the active screen in Javascript

Accessing the value in plain Javascript is explained here.

React

A example hook that returns the active screen as a string:

useTailwindScreen.js
import { useState, useEffect } from 'react'

export default () => {
  const isClient = typeof window === 'object'

  function getScreen() {
    return window
      .getComputedStyle(document.querySelector('body'), ':before')
      .getPropertyValue('content')
      .replace(/"|'/g, '')
  }

  const initialState = isClient ? getScreen() : ''
  const [screen, setScreen] = useState(initialState)

  useEffect(() => {
    if (!isClient) {
      return false
    }

    function handleResize() {
      setScreen(getScreen())
    }

    window.addEventListener('resize', handleResize)
    return () => window.removeEventListener('resize', handleResize)
  }, [])

  return screen
}
Component
import React from 'react'
import useTailwindBreakpoint from './useTailwindBreakpoint'

const ActiveScreen => {
  const screen = useTailwindBreakpoint()
  
  return (
      <span>{screen}</span>
  )
}

export default ActiveScreen

Description from the npm listing.

  • tailwind
  • tailwindcss
  • tailwind css
  • tailwindcss-plugin
  • plugin
  • screens
  • screen
  • active
  • breakpoint

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@digitaliseringsbyran/tailwindcss-screens-in-dom weekly downloads on npm, last 90 days: 15 weekly downloads as of Oct 18, 2026, +275% over 90 days.@digitaliseringsbyran/tailwindcss-scre…Weekly downloads on npm · Last 90 days15downloads / week+275% over 90 days0510152025Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 25, 2026 – Oct 18, 2026 · 86 observations · Updated Oc…pluginstats.com
@digitaliseringsbyran/tailwindcss-screens-in-dom weekly downloads on npm, last 90 days: 15 weekly downloads as of Oct 18, 2026, +275% over 90 days.

7/30/90-day growth

@digitaliseringsbyran/tailwindcss-screens-in-dom weekly downloads growth on npm: +114% over 7 days, +50.0% over 30 days, +275% over 90 days.@digitaliseringsbyran/tailwindcss-scre…Weekly downloads growth on npm15downloads / week now7-day growth+8 weekly downloads+114%30-day growth+5 weekly downloads+50.0%90-day growth+11 weekly downloads+275%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@digitaliseringsbyran/tailwindcss-screens-in-dom weekly downloads growth on npm: +114% over 7 days, +50.0% over 30 days, +275% over 90 days.

Ranking history

@digitaliseringsbyran/tailwindcss-screens-in-dom npm ranking history: currently #2007 (by weekly downloads).@digitaliseringsbyran/tailwindcss-scre…npm ranking · by weekly downloads · Last 90 days#2007current rank#1960#1970#1980#1990#2000#2010Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@digitaliseringsbyran/tailwindcss-screens-in-dom npm ranking history: currently #2007 (by weekly downloads).

Listing placement

All npm2,429 listings · 122 pages · 1,215 shown · page 104, #19 (overall #2,079)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins260 listings · 13 pages · page 7, #2 (overall #122)
Tailwind plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for @digitaliseringsbyran/tailwindcss-screens-in-dom
Date (UTC)Weekly downloadsChange vs. previous
15+7
80
8+2
6-1
7-1
80
8+1
70
70
7+1
6+1
50
5-2
7—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@digitaliseringsbyran/tailwindcss-screens-in-dom. First seen Oct 16, 2026; last successful collection Oct 23, 2026. See the methodology.