Skip to content
PluginStats

tw-tailwind weekly downloads statistics

By PawelPyc154 · npm · Tailwind plugins

A lighter version of twin.macro that allows you to create tailwind react components like styled-components

View on npm Fresh · Dec 6, 2026

tw-tailwind has 64 recorded weekly downloads on npm, an increase of 137% over the past 30 days, ranking #2718 of 3,247 tracked listings.

Weekly downloads
64
Official API · Dec 5, 2026
7-day growth
+146%
+38 weekly downloads
30-day growth
+137%
+37 weekly downloads
90-day growth
+18.5%
+10 weekly downloads
Rank
#2718
▲ 27 in 7 days

About tw-tailwind

Tw-Tailwind

A lighter version of twin.macro that allows you to create tailwind react components like styled-components

NPM version

Install

Using npm

npm i tw-tailwind

Using yarn

yarn add tw-tailwind

⚠️ Tw-Tailwind requires TailwindCSS to be installed and configured on your project too. Install TailwindCSS

Usage

Import
import tw from 'tw-tailwind'
Features
const sharedClasses = tw`border-red-500`
const Component = tw.div`flex items-center justify-center`

const Component = tw(Button)`flex items-center justify-center`
interface Props {
  $hasBorder: boolean
}
const Component = tw.div<Props>`
  bg-red-500 
  ${({ $hasBorder }) => $hasBorder && 'border-2 border-blue-500'}`

const Component = tw(Button)<Props>`
  bg-red-500 
  ${({ $hasBorder }) => $hasBorder && 'border-2 border-blue-500'}`
const Component = tw.div(() => ['bg-red-500'])

const Component = tw(Button)(() => ['bg-red-500'])
interface Props {
  $hasBorder: boolean
}
const Component = tw.div<Props>(({ $hasBorder }) => [
  'bg-red-500',
  $hasBorder && 'border-2 border-blue-500',
])

const Component = tw(Button)<Props>`
  bg-red-500 
  ${({ $hasBorder }) => $hasBorder && 'border-2 border-blue-500'}`

Example

Button
import tw from 'tw-tailwind'

const colors = {
  white: tw`bg-white hover:bg-gray-100 text-black`,
  gray: tw`bg-gray-100 hover:bg-gray-200 text-black`,
  emerald: tw`bg-emerald-600 hover:bg-emerald-700 text-white`,
}
const loadingColors: typeof colors = {
  white: tw`text-white`,
  gray: tw`text-gray-100`,
  emerald: tw`text-emerald-600`,
}

type ButtonProps = Omit<JSX.IntrinsicElements['button'], 'ref'> & {
  color?: keyof typeof colors
  isLoading?: boolean
}

export const Button = ({ children, className, type = 'button', color = 'emerald', isLoading, ...props }: ButtonProps) => (
  <ButtonStyled type={type} {...props} $color={color} $isLoading={isLoading} className={className}>
    {children}
  </ButtonStyled>
)

const ButtonStyled = tw.button<{ $color: keyof typeof colors; $isLoading?: boolean }>(({ $isLoading, $color }) => [
  `disabled:opacity-30 disabled:pointer-events-none text-white font-medium rounded-md px-4 h-10 flex items-center relative select-none`,
  colors[$color],
  $isLoading && ['pointer-events-none', loadingColors[$color]],
])
Input
import { forwardRef, ReactNode } from 'react'
import tw from 'tw-tailwind'
import { Label } from './label'
import clsx from 'clsx'

const colors = { white: tw`bg-white `, gray: tw`bg-gray-200` }

type InputProps = Omit<JSX.IntrinsicElements['input'], 'ref'> & {
  label?: string
  icon?: ReactNode
  className?: string
  color?: keyof typeof colors
}
export const Input = forwardRef<HTMLInputElement, InputProps>(
  ({ label, className, icon, color = 'white', ...props }, ref) => (
    <Container className={className}>
      {label && <Label>{label}</Label>}
      <Wrapper>
        <InputStyled className={clsx([colors[color], !!icon && `pl-10 `])} {...props} ref={ref} />
        <IconWrapper>{icon}</IconWrapper>
      </Wrapper>
    </Container>
  ),
)

Input.displayName = 'Input'

const InputStyled = tw.input`bg-white rounded-md px-3 shadow-sm h-10 flex border border-gray-300 items-center w-full pb-px`
const Container = tw.div`text-sm w-full`
const Wrapper = tw.div`relative`
const IconWrapper = tw.div`absolute text-xl h-10 px-3 flex justify-center items-center top-0 left-0`

VS Code IntelliSense

Install "Tailwind CSS IntelliSense" VSCode - extension for autocomplete

https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss

  // vs code setting.json

  "scss.validate": false,
  "editor.quickSuggestions": {
    "strings": true
  },
  "editor.autoClosingQuotes": "always",
  "tailwindCSS.experimental.classRegex": [
    "tw`([^`]*)", // tw`...`
    "tw\\.[^`]+`([^`]*)", // tw.xxx`...`
    "tw\\(.*?\\).*?`([^`]*)", // tw(Component)`...`
    ["tw\\.[^\\)]+\\(.*=>([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], // tw.xxx(()=> ['...'])
    ["tw\\(.*?\\)\\(.*=>([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], // tw(Component)(()=> ['...'])
    ["tw\\(.*?\\).*?\\(.*=>([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"], // tw(Component)<...>(()=> ['...'])
    ["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] // clsx( ['...'])
  ],

  "tailwindCSS.includeLanguages": {
    "typescript": "javascript",
    "typescriptreact": "javascript"
  },

Description from the npm listing.

  • twin.macro
  • emotion
  • styled-components
  • tailwind
  • tailwindcss
  • css-in-js
  • react
  • css
  • tailwindcss-plugin
  • tailwind-css
  • tailwindcss-ui
  • Tailwind CSS

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

tw-tailwind weekly downloads on npm, last 90 days: 64 weekly downloads as of Dec 5, 2026, +18.5% over 90 days.tw-tailwindWeekly downloads on npm · Last 90 days64downloads / week+18.5% over 90 days010203040506070Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tw-tailwind weekly downloads on npm, last 90 days: 64 weekly downloads as of Dec 5, 2026, +18.5% over 90 days.

7/30/90-day growth

tw-tailwind weekly downloads growth on npm: +146% over 7 days, +137% over 30 days, +18.5% over 90 days.tw-tailwindWeekly downloads growth on npm64downloads / week now7-day growth+38 weekly downloads+146%30-day growth+37 weekly downloads+137%90-day growth+10 weekly downloads+18.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tw-tailwind weekly downloads growth on npm: +146% over 7 days, +137% over 30 days, +18.5% over 90 days.

Ranking history

tw-tailwind npm ranking history: currently #2718 (by weekly downloads).tw-tailwindnpm ranking · by weekly downloads · Last 90 days#2718current rank#500#1000#1500#2000#2500#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
tw-tailwind npm ranking history: currently #2718 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 136, #18 (overall #2,718)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 7, #7 (overall #127)
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 (592)
Recent weekly downloads observations for tw-tailwind
Date (UTC)Weekly downloadsChange vs. previous
64+1
63-5
68+46
22+3
19-1
20-1
21-5
26-2
28-16
44+1
43+1
42+1
41+2
39—

Similar npm Tailwind plugins plugins

All 20 tw-tailwind alternatives

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/tw-tailwind. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.