Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 1, 2024 via pnpm

styled-components 5.3.10

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
5
licenses
67
MIT
6
ISC
1
Apache-2.0
2
other licenses
CC-BY-4.0
1
BSD-3-Clause
1
Package created
16 Aug 2016
Version published
23 Apr 2023
Maintainers
4
Total deps
76
Direct deps
14
License
MIT

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: babel-plugin-styled-components@2.1.4
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: babel-plugin-styled-components@2.1.4
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
67 Packages, Including:
@babel/code-frame@7.24.2
@babel/compat-data@7.24.4
@babel/core@7.24.5
@babel/generator@7.24.5
@babel/helper-annotate-as-pure@7.22.5
@babel/helper-compilation-targets@7.23.6
@babel/helper-environment-visitor@7.22.20
@babel/helper-function-name@7.23.0
@babel/helper-hoist-variables@7.22.5
@babel/helper-module-imports@7.24.3
@babel/helper-module-transforms@7.24.5
@babel/helper-plugin-utils@7.24.5
@babel/helper-simple-access@7.24.5
@babel/helper-split-export-declaration@7.24.5
@babel/helper-string-parser@7.24.1
@babel/helper-validator-identifier@7.24.5
@babel/helper-validator-option@7.23.5
@babel/helpers@7.24.5
@babel/highlight@7.24.5
@babel/parser@7.24.5
@babel/plugin-syntax-jsx@7.24.1
@babel/template@7.24.0
@babel/traverse@7.24.5
@babel/types@7.24.5
@emotion/is-prop-valid@1.2.2
@emotion/memoize@0.8.1
@emotion/stylis@0.8.5
@emotion/unitless@0.7.5
@jridgewell/gen-mapping@0.3.5
@jridgewell/resolve-uri@3.1.2
@jridgewell/set-array@1.2.1
@jridgewell/sourcemap-codec@1.4.15
@jridgewell/trace-mapping@0.3.25
ansi-styles@3.2.1
babel-plugin-styled-components@2.1.4
browserslist@4.23.0
camelize@1.0.1
chalk@2.4.2
color-convert@1.9.3
color-name@1.1.3
convert-source-map@2.0.0
css-to-react-native@3.2.0
debug@4.3.4
escalade@3.1.2
escape-string-regexp@1.0.5
gensync@1.0.0-beta.2
globals@11.12.0
has-flag@3.0.0
js-tokens@4.0.0
jsesc@2.5.2

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
css-color-keywords@1.0.0
electron-to-chromium@1.4.752
lru-cache@5.1.1
picocolors@1.0.0
semver@6.3.1
yallist@3.1.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
@ampproject/remapping@2.3.0

Creative Commons Attribution 4.0 International

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
caniuse-lite@1.0.30001614

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
hoist-non-react-statics@3.3.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

14
All Dependencies CSV
β“˜ This is a list of styled-components 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@babel/helper-module-imports7.24.362.3 kBMIT
prod
@babel/traverse7.24.5603.67 kBMIT
prod
@emotion/is-prop-valid1.2.228.5 kBMIT
prod
@emotion/stylis0.8.514.23 kBMIT
prod
@emotion/unitless0.7.52.1 kBMIT
prod
babel-plugin-styled-components2.1.411.01 kBMIT
prod
1
1
css-to-react-native3.2.018.86 kBMIT
prod
hoist-non-react-statics3.3.29.83 kBBSD-3-Clause
prod
react-dom18.3.14.3 MBMIT
prod peer
react-is16.13.15.33 kBMIT
prod peer
react-is18.3.123.45 kBMIT
prod
react18.3.1310.65 kBMIT
prod peer
shallowequal1.1.02.99 kBMIT
prod
supports-color5.5.03 kBMIT
prod peer

Visualizations

Frequently Asked Questions

What does styled-components do?

Styled-components is a library for styling React applications. It combines the best of ES6 and CSS to create visual primitives that help developers structure their apps without stress. It utilizes tagged template literals (a recent addition to JavaScript) and the power of CSS, allowing the writing of actual CSS code to style your components. Styled-components removes the mapping between components and styles, promoting the use of components as a low-level styling construct. The library is compatible with both React (for the web) and React Native, making it a perfect choice for universal apps.

How do you use styled-components?

Using styled-components is straightforward. First, you need to install the package using npm: npm install styled-components@^5.0.0 react@^16.8 react-dom@^16.8 react-is@^16.8. Then, you can create styled components using tagged template literals or style objects. Here is a basic example using tagged template literals:

import styled from 'styled-components';

const Button = styled.button`
  color: grey;
`;

And here's how you would do it using style objects:

const Button = styled.button({
  color: 'grey',
});

In your React component, you can then use the newly styled Button like any other React component.

Where are the styled-components docs?

For comprehensive information on using styled-components, refer to the official documentation at styled-components.com/docs. Here you can find everything from getting started guides, API references, to more advanced topics like theming and server-side rendering. The documentation also includes an explanation of tagged template literals. For users wanting to upgrade from v4, instructions are provided in the documentation.