🌐
npm
npmjs.com › package › styled-components
styled-components - npm
1 week ago - CSS for the Age. Style components your way with speed, strong typing, and flexibility.. Latest version: 6.3.12, last published: 8 days ago. Start using styled-components in your project by running `npm i styled-components`. There are 24333 other projects in the npm registry using styled-components.
      » npm install styled-components
    
Published   Mar 19, 2026
Version   6.3.12
Author   Glen Maddern
🌐
styled-components
styled-components.com
styled-components
To download styled-components run: npm install styled-components · That's all you need to do, you are now ready to use it in your app! (yep, no build step needed 👌) Note · It's recommended (but not required) to also use the styled-components Babel plugin if you can.
🌐
npm
npmjs.com › package › solid-styled-components
solid-styled-components - npm
This library provides Styled Components and css helper found in popular JS in CSS libraries. This library uses goober a 1kb style library with a wrapper to work with Solid's API.
      » npm install solid-styled-components
    
Published   Oct 10, 2022
Version   0.28.5
Author   Ryan Carniato
🌐
npm
npmjs.com › package › @types › styled-components
@types/styled-components - npm
TypeScript definitions for styled-components. Latest version: 5.1.36, last published: 4 months ago. Start using @types/styled-components in your project by running `npm i @types/styled-components`. There are 2126 other projects in the npm registry using @types/styled-components.
      » npm install @types/styled-components
    
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › styled-components-npm
styled-components - NPM - GeeksforGeeks
July 23, 2025 - The styled-components is a popular library for React and React Native that allows developers to style components using the tagged template literals. It brings a seamless CSS-in-JS approach enabling the developers to define the styles of the ...
🌐
styled-components
styled-components.com › docs › basics
Styled Components Basic
Installing styled-components only takes a single command and you're ready to roll: # with npm npm install styled-components # with yarn yarn add styled-components
🌐
GitHub
github.com › styled-components › styled-components
GitHub - styled-components/styled-components: Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.
If CSS supports it, so does styled-components. TypeScript-first. Built-in types ship with the package. Props flow through to your styles with full inference—no @types install, no manual generics. <13kB gzipped. Small enough to disappear in your bundle. No build plugin required. npm install styled-components ·
Starred by 41K users
Forked by 2.5K users
Languages   TypeScript 91.2% | JavaScript 8.6%
🌐
npm
npmjs.com › search
styled-components - npm search
npm · Sign UpSign In · Sort by: ... published · exact match · CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility....
🌐
npm
npmjs.com › package › styled-component
styled-component - npm
March 7, 2021 - Generates styled-component snippets from colors, text styles and layers.. Latest version: 2.8.0, last published: 5 years ago. Start using styled-component in your project by running `npm i styled-component`. There are 28 other projects in the npm registry using styled-component.
      » npm install styled-component
    
Published   Mar 07, 2021
Version   2.8.0
Author   Mortz Gruber
Find elsewhere
🌐
npm
npmjs.com › package › styled-components-modifiers
styled-components-modifiers - npm
A library that enables BEM flavored modifiers to styled components. Latest version: 1.2.5, last published: 6 years ago. Start using styled-components-modifiers in your project by running `npm i styled-components-modifiers`. There are 26 other projects in the npm registry using styled-components-modifiers.
      » npm install styled-components-modifiers
    
🌐
npm
npmjs.com › package › styled-components-ts
styled-components-ts - npm
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress and the added benefits of TypeScript 💅. Latest version: 0.0.15, last published: 7 years ago. Start using styled-components-ts in your project by running `npm i styled-components-ts`. There are 5 other projects in the npm registry using styled-components-ts.
      » npm install styled-components-ts
    
Published   Nov 25, 2018
Version   0.0.15
Author   Jacob Ebey
🌐
npm
npmjs.com › package › @xstyled › styled-components
@xstyled/styled-components - npm
A utility-first CSS-in-JS framework built for React (styled-components bindings).. Latest version: 4.0.0, last published: 2 years ago. Start using @xstyled/styled-components in your project by running `npm i @xstyled/styled-components`. There are 55 other projects in the npm registry using @xstyled/styled-components.
      » npm install @xstyled/styled-components
    
Published   May 09, 2024
Version   4.0.0
Author   Greg Bergé
🌐
GeeksforGeeks
geeksforgeeks.org › styled-components-npm
styled-components – NPM | GeeksforGeeks
October 7, 2024 - The styled-components is a popular library for React and React Native that allows developers to style components using the tagged template literals. It brings a seamless CSS-in-JS approach enabling the developers to define the styles of the ...
🌐
npm
npmjs.com › search
keywords:styled-components - npm search
PostCSS syntax for template literals CSS-in-JS (e. g. styled-components).
🌐
npm
npmjs.com › jest-styled-components
jest-styled-components - npm
Jest utilities for Styled Components. Latest version: 7.2.0, last published: 2 years ago. Start using jest-styled-components in your project by running `npm i jest-styled-components`. There are 181 other projects in the npm registry using jest-styled-components.
      » npm install jest-styled-components
    
Published   Oct 12, 2023
Version   7.2.0
Author   Michele Bertoli
🌐
Reddit
reddit.com › r/reactjs › styled-components - how can i make my own npm library of components?
r/reactjs on Reddit: styled-components - how can I make my own NPM library of components?
February 5, 2019 -

Hi folks,

I m in the process of transpiling a load of react ES6 stuff into commonjs for use in NPM modules in different apps. I want to be able to do the same thing with styled-components so I have a custom UI library I can use in different apps.

I have attempted the following in my transpiler: -

import styled from "styled-components"
export const Badge = styled.span\``display: inline-block;font-weight: ${props => props.theme.font.weight.normal};padding: ${props => props.theme.components.forms.padding};text-align: center;white-space: nowrap;vertical-align: middle;border: 1px solid transparent;`;`

I then try to include the transpiled export in my component: -

import { Badge } from "@mylibrary/ui"

return (
<div>
<Badge />
</div>
)

When I do, my app crashes and I get the following message in the console: -

It looks like there are several instances of 'styled-components'...

And...

Uncaught Error: Trying to insert a new style tag, but the given Node is unmounted!...

My (rather uneventful) babel/webpack config is the following: -

const merge = require('webpack-merge');
const path = require('path');
const nodeExternals = require('webpack-node-externals');

module.exports = () => {

const package = process.env.PACKAGE
const environment = process.env.NODE_ENV
console.info('Package : ', package)
console.info('Environment : ', environment)

return {

mode: environment,
entry: path.resolve(__dirname, './' + package + '/src/lib/index.js'),
output: {
path: path.resolve(__dirname, './' + package + '/dist/lib'),
filename: 'index.js',
library: '',
libraryTarget: 'commonjs'
},
externals: [nodeExternals()],
module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react']
}
}
]
}
}
}
--------------------------------

Is it even possible to do this? I literally have no idea if this can be done at all or, if it can be, how I would go about it.

Any advice very welcome!

🌐
npm
npmjs.com › package › babel-plugin-styled-components
babel-plugin-styled-components - npm
Improve the debugging experience and add server-side rendering support to styled-components. Latest version: 2.1.4, last published: 3 years ago. Start using babel-plugin-styled-components in your project by running `npm i babel-plugin-styled-components`. There are 1057 other projects in the npm registry using babel-plugin-styled-components.
      » npm install babel-plugin-styled-components
    
🌐
npm Trends
npmtrends.com › styled-components
styled-components | npm trends
npm trends · CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility. styled-components · Bytes is a JavaScript newsletter you'll actually enjoy reading. Delivered every Monday, for free.
🌐
Npm
npm.io › package › @gcencic › styled-components
@gcencic/styled-components NPM | npm.io
The plugin supports styled components in both JavaScript and TypeScript files, and works in Visual Studio Code, Sublime, and Atom. A lot of hard work goes into community libraries, projects, and guides. A lot of them make it easier to get started or help you with your next project! There’s also a whole lot of interesting apps and sites that people have built using styled-components.