Gathering detailed insights and metrics for @thedadi/styled-jsx-plugin-postcss
Gathering detailed insights and metrics for @thedadi/styled-jsx-plugin-postcss
Gathering detailed insights and metrics for @thedadi/styled-jsx-plugin-postcss
Gathering detailed insights and metrics for @thedadi/styled-jsx-plugin-postcss
Plugin to add PostCSS support to styled-jsx.
npm install @thedadi/styled-jsx-plugin-postcss
Typescript
Module System
Node Version
NPM Version
62.9
Supply Chain
96.5
Quality
74.2
Maintenance
100
Vulnerability
100
License
JavaScript (99.79%)
CSS (0.21%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
92 Stars
40 Commits
17 Forks
3 Watchers
7 Branches
11 Contributors
Updated on Oct 14, 2024
Latest Version
4.0.2
Package Id
@thedadi/styled-jsx-plugin-postcss@4.0.2
Unpacked Size
7.77 kB
Size
3.40 kB
File Count
13
NPM Version
6.9.0
Node Version
12.1.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
Use PostCSS with styled-jsx 💥
Install this package first.
1npm install --save styled-jsx-plugin-postcss
Next, add styled-jsx-plugin-postcss
to the styled-jsx
's plugins
in your
babel configuration:
1{ 2 "plugins": [ 3 ["styled-jsx/babel", { "plugins": ["styled-jsx-plugin-postcss"] }] 4 ] 5}
With config:
1{ 2 "plugins": [ 3 ["styled-jsx/babel", { 4 "plugins": [ 5 [ 6 "styled-jsx-plugin-postcss", 7 { 8 "path": 9 "[PATH_PREFIX]/postcss.config.js" 10 } 11 ] 12 ] 13 }] 14 ] 15}
Usage with Create React App requires you to either eject or use react-app-rewired.
Here is an example using react-app-rewired
:
1// config-overrides.js 2// this file overrides the CRA webpack.config 3 4const { getBabelLoader } = require('react-app-rewired') 5 6module.exports = function override (config, env) { 7 const loader = getBabelLoader(config.module.rules) 8 9 // Older versions of webpack have `plugins` on `loader.query` instead of `loader.options`. 10 const options = loader.options || loader.query 11 options.plugins = [['styled-jsx/babel', { 12 'plugins': ['styled-jsx-plugin-postcss'] 13 }]].concat(options.plugins || []) 14 return config 15}
Note: Please follow their instructions on how to set up build & test scripts, and make sure you have a correctly formatted postcss.config.js
as well.
styled-jsx-plugin-postcss
uses styled-jsx
's plugin system which is supported
from version 2. Read more on their repository for further info.
styled-jsx-plugin-postcss
uses
postcss-load-plugins
therefore you may want to refer to their docs to learn more about
adding plugins.
PRs and contributions are welcome!
We aim to drive development of this plugin through community contributions.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
Found 5/23 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
15 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More