Skip to content
PluginStats

tailwind-styled-components weekly downloads statistics

By mathias_gilson · npm · Tailwind plugins

Create tailwind css react components like styled components with classes name on multiple lines

View on npm Fresh · Dec 6, 2026

tailwind-styled-components has 20,918 recorded weekly downloads on npm, a decrease of 11.2% over the past 30 days, ranking #1027 of 3,247 tracked listings.

Weekly downloads
20,918
Official API · Dec 5, 2026
7-day growth
-0.1%
-22 weekly downloads
30-day growth
-11.2%
-2.6K weekly downloads
90-day growth
-12.5%
-3K weekly downloads
Rank
#1027
▼ 13 in 7 days

About tailwind-styled-components

Tailwind-Styled-Component

Create tailwind css react components like styled components with classes name on multiple lines

NPM version

Before 😬
<div className=`flex ${primary ? "bg-indigo-600" : "bg-indigo-300"} inline-flex items-center border border-transparent text-xs font-medium rounded shadow-sm text-white hover:bg-indigo-700 focus:outline-none`>
After 🥳

<Button $primary={false}>

const Button = tw.div`
    ${(p) => (p.$primary ? "bg-indigo-600" : "bg-indigo-300")}

    flex
    inline-flex
    items-center
    border
    border-transparent
    text-xs
    font-medium
    rounded
    shadow-sm
    text-white

    hover:bg-indigo-700
    focus:outline-none
`

Features

♻️ Reusable

🧩 Extendable

💅 Compatible with Styled Components

⚡️ Use props like every React Component

🤯 Stop editing 400+ characters lines

🧘 Cleaner code in the render function

Install

Using npm

npm i -D tailwind-styled-components

Using yarn

yarn add -D tailwind-styled-components

⚠️ This extension requires TailwindCSS to be installed and configured on your project too. Install TailwindCSS

[Optional] Configure IntelliSense autocomplete on VSCode

First, install Tailwind CSS IntelliSense VSCode extension

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

Then add these user settings (How to edit VSCode settings?)

"tailwindCSS.includeLanguages": {
    "typescript": "javascript", // if you are using typescript
    "typescriptreact": "javascript"  // if you are using typescript with react
},
"editor.quickSuggestions": {
    "strings": true // forces VS Code to trigger completions when editing "string" content
},
"tailwindCSS.experimental.classRegex": [
    "tw`([^`]*)", // tw`...`
    "tw\\.[^`]+`([^`]*)`", // tw.xxx<xxx>`...`
    "tw\\(.*?\\).*?`([^`]*)" // tw(Component)<xxx>`...`
]

Usage

Import
import tw from "tailwind-styled-components"
Basic

Create a Tailwind Styled Component with Tailwind rules that you can render directly

const Container = tw.div`
    flex
    items-center
    justify-center
    flex-col
    w-full
    bg-indigo-600
`
render(
    <Container>
        <div>Use the Container as any other React Component</div>
    </Container>
)

Will be rendered as

<div class="flex items-center justify-center flex-col w-full bg-indigo-600">
    <div>Use the Container as any other React Component</div>
</div>
Conditional class names

Set tailwind class conditionally with the same syntax as styled components

interface ButtonProps {
   $primary: boolean
}

const Button = tw.button<ButtonProps>`
    flex
    ${(p) => (p.$primary ? "bg-indigo-600" : "bg-indigo-300")}
`

Tailwind Styled Components supports Transient Props

Prefix the props name with a dollar sign ($) to prevent forwarding them to the DOM element

<Button $primary={true} />

Will be rendered as

<button class="flex bg-indigo-600">
    <!-- children -->
</button>

and

<Button $primary={false} />

Will be rendered as

<button class="flex bg-indigo-300">
    <!-- children -->
</button>

Be sure to set the entire class name

✅  Do ${p => p.$primary ? "bg-indigo-600" : "bg-indigo-300"}

❌  Don't bg-indigo-${p => p.$primary ? "600" : "300"}


Extends
const DefaultContainer = tw.div`
    flex
    items-center
`
const RedContainer = tw(DefaultContainer)`
    bg-red-300
`

Will be rendered as

<div class="flex items-center bg-red-300">
    <!-- children -->
</div>
Extends Styled Component

Extend styled components

const StyledComponentWithCustomCss = styled.div`
    filter: blur(1px);
`

const  = tw(StyledComponentWithCustomCss)`
   flex
`

Css rule filter is not supported by default on TailwindCSS

Will be rendered as

<div class="flex" style="filter: blur(1px);">
    <!-- children -->
</div>
Polymorphic Components

If you want to keep all the styling you've applied to a component but just switch out what's being ultimately rendered (be it a different HTML tag or a different custom component), you can use the $as prop to do this at runtime.

const Button = tw.button`inline-flex items-center p-2`

<Button $as="a" href="#">Link</Button>

Will render as

<a href="#" class="inline-flex items-center p-2">Link</a>

Example

import React from "react"
import tw from "tailwind-styled-components"
import styled from "styled-components"

// Create a <Title> react component that renders an <h1> which is
// indigo and sized at 1.125rem
interface TitleProps {
    $large: boolean;
}

const Title = tw.h1<TitleProps>`
  ${(p) => (p.$large ? "text-lg" : "text-base")}
  text-indigo-500
`

// Create a <SpecialBlueContainer> react component that renders a <section> with
// a special blue background color
const SpecialBlueContainer = styled.section`
    background-color: #0366d6;
`

// Create a <Container> react component that extends the SpecialBlueContainer to render
// a tailwind <section> with the special blue background and adds the flex classes
const Container = tw(SpecialBlueContainer)`
    flex
    items-center
    justify-center
    w-full
`…

Description from the npm listing.

  • react
  • css-in-js
  • styled-components
  • css
  • tailwindcss
  • tailwind
  • tailwindcss-plugin
  • tailwind-css
  • tailwindcss-ui

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

tailwind-styled-components weekly downloads on npm, last 90 days: 20,918 weekly downloads as of Dec 5, 2026, -12.5% over 90 days.tailwind-styled-componentsWeekly downloads on npm · Last 90 days20,918downloads / week-12.5% over 90 days010K20K30K40KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwind-styled-components weekly downloads on npm, last 90 days: 20,918 weekly downloads as of Dec 5, 2026, -12.5% over 90 days.

7/30/90-day growth

tailwind-styled-components weekly downloads growth on npm: -0.1% over 7 days, -11.2% over 30 days, -12.5% over 90 days.tailwind-styled-componentsWeekly downloads growth on npm20,918downloads / week now7-day growth-22 weekly downloads-0.1%30-day growth-2,628 weekly downloads-11.2%90-day growth-2,997 weekly downloads-12.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwind-styled-components weekly downloads growth on npm: -0.1% over 7 days, -11.2% over 30 days, -12.5% over 90 days.

Ranking history

tailwind-styled-components npm ranking history: currently #1027 (by weekly downloads).tailwind-styled-componentsnpm ranking · by weekly downloads · Last 90 days#1027current rank#880#900#920#940#960#980#1000#1020#1040Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
tailwind-styled-components npm ranking history: currently #1027 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 52, #7 (overall #1,027)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 1, #4 (overall #4)
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 (170)
Recent weekly downloads observations for tailwind-styled-components
Date (UTC)Weekly downloadsChange vs. previous
20,918+110
20,808+702
20,106+251
19,855-91
19,946-240
20,186-179
20,365-575
20,940-699
21,639-1.4K
22,998-1.9K
24,923-1.5K
26,394-396
26,790-93
26,883—

Similar npm Tailwind plugins plugins

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