Installations
npm install @styled-jsx/plugin-sass
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=12.0.0
Node Version
22.10.0
NPM Version
9.7.2
Score
73.7
Supply Chain
97.7
Quality
78.2
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (96.54%)
Shell (1.98%)
SCSS (1.25%)
CSS (0.23%)
Developer
Download Statistics
Total Downloads
1,478,820
Last Day
1,249
Last Week
4,987
Last Month
27,429
Last Year
440,138
GitHub Statistics
23 Stars
152 Commits
4 Forks
1 Watching
2 Branches
13 Contributors
Bundle Size
1.48 kB
Minified
545.00 B
Minified + Gzipped
Package Meta Information
Latest Version
4.1.1
Package Id
@styled-jsx/plugin-sass@4.1.1
Unpacked Size
7.73 kB
Size
3.06 kB
File Count
4
NPM Version
9.7.2
Node Version
22.10.0
Publised On
11 Nov 2024
Total Downloads
Cumulative downloads
Total Downloads
1,478,820
Last day
16.8%
1,249
Compared to previous day
Last week
1.9%
4,987
Compared to previous week
Last month
-17.9%
27,429
Compared to previous month
Last year
-5.5%
440,138
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Peer Dependencies
1
Thream/styled-jsx-plugin-sass
Plugin to add Sass support to styled-jsx.
⚠️ This project is not maintained anymore, you can still use the code as you wish and fork it to maintain it yourself.
📜 About
Use Sass with styled-jsx 💥
This repository was originally forked from giuseppeg/styled-jsx-plugin-sass & it is not intended to take any credit but to improve the code from now on.
💾 Install
Install the package and sass version you need (it is a peer dependency).
1npm install --save-dev sass @styled-jsx/plugin-sass
⚙️ Usage
Add @styled-jsx/plugin-sass
to the styled-jsx
's plugins
in your babel configuration (e.g. .babelrc.json
):
1{ 2 "presets": [ 3 [ 4 "next/babel", 5 { 6 "styled-jsx": { 7 "plugins": ["@styled-jsx/plugin-sass"] 8 } 9 } 10 ] 11 ] 12}
Sass options
Sass can be configured using sassOptions
. This is useful for setting options such as data
or includePaths
, see all the available options in Sass README.
1{ 2 "presets": [ 3 [ 4 "next/babel", 5 { 6 "styled-jsx": { 7 "plugins": [ 8 [ 9 "@styled-jsx/plugin-sass", 10 { 11 "sassOptions": { 12 "includePaths": ["./styles"], 13 "data": "$test-color: #ff0000" 14 } 15 } 16 ] 17 ] 18 } 19 } 20 ] 21 ] 22}
💡 Contributing
Anyone can help to improve the project, submit a Feature Request, a bug report or even correct a simple spelling mistake.
The steps to contribute can be found in the CONTRIBUTING.md file.
📄 License
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
8 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Reason
project is archived
Details
- Warn: Repository is archived.
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:11
- Warn: no topLevel permission defined: .github/workflows/lint.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/test.yml:1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/lint.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/lint.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/release.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/release.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/test.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/Thream/styled-jsx-plugin-sass/test.yml/develop?enable=pin
- Info: 0 out of 6 GitHub-owned GitHubAction dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 22 are checked with a SAST tool
Score
3
/10
Last Scanned on 2025-01-27
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 MoreOther packages similar to @styled-jsx/plugin-sass
styled-jsx-plugin-sass
Plugin to add Sass support to styled-jsx
styled-jsx-plugin-scss
Plugin to add Sass support to styled-jsx
styled-jsx-plugin-dart-sass
Plugin to add Sass support to styled-jsx
rollup-plugin-sass-styled-jsx
Rollup plugin for transpiling sass files into css-tagged template literal to be consumed by styled-jsx.