{"id":51311357,"url":"https://github.com/plotly/react-colorscales","last_synced_at":"2026-07-01T04:03:38.466Z","repository":{"id":57333024,"uuid":"112132981","full_name":"plotly/react-colorscales","owner":"plotly","description":"A React UI component for picking and modifying colorscales","archived":false,"fork":false,"pushed_at":"2025-01-27T14:20:16.000Z","size":7172,"stargazers_count":39,"open_issues_count":2,"forks_count":7,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-10-30T11:14:07.982Z","etag":null,"topics":["color-palette","data-visualization"],"latest_commit_sha":null,"homepage":"https://plotly.github.io/react-colorscales/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plotly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-27T01:39:56.000Z","updated_at":"2025-01-27T14:20:18.000Z","dependencies_parsed_at":"2024-06-07T19:10:13.322Z","dependency_job_id":null,"html_url":"https://github.com/plotly/react-colorscales","commit_stats":{"total_commits":84,"total_committers":6,"mean_commits":14.0,"dds":0.5952380952380952,"last_synced_commit":"8a5edaf66b738186fd669ec7b6d49eefb80759ee"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plotly/react-colorscales","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2Freact-colorscales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2Freact-colorscales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2Freact-colorscales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2Freact-colorscales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plotly","download_url":"https://codeload.github.com/plotly/react-colorscales/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plotly%2Freact-colorscales/sbom","scorecard":{"id":738072,"data":{"date":"2025-08-11","repo":{"name":"github.com/plotly/react-colorscales","commit":"d2fd6b727561e0faa0f83c40c1bfd129e506cab3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"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"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}}]},"last_synced_at":"2025-08-22T16:30:02.856Z","repository_id":57333024,"created_at":"2025-08-22T16:30:02.856Z","updated_at":"2025-08-22T16:30:02.856Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34992074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-palette","data-visualization"],"created_at":"2026-07-01T04:03:37.715Z","updated_at":"2026-07-01T04:03:38.460Z","avatar_url":"https://github.com/plotly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React colorscales 🌈\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://dash.plotly.com/project-maintenance\"\u003e\n    \u003cimg src=\"https://dash.plotly.com/assets/images/maintained-by-plotly.png\" width=\"400px\" alt=\"Maintained by Plotly\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\nA React UI component for picking and modifying colorscales, based on [Chroma-js](https://gka.github.io/chroma.js/).\n\nPart of Plotly's [React Component Suite](https://plot.ly/products/react/) for building data visualization Web apps and products.\n\n## Demo\n\n👉 [DEMO](https://plotly.github.io/react-colorscales/)\n\n👉 [Demo source code](https://github.com/plotly/react-colorscales/tree/master/docs)\n\n👉 [Wrapper for Dash apps (Python)](https://github.com/plotly/dash-colorscales/blob/master/README.md)\n\n\n## Install\n\n`npm install react-colorscales`\n\n`yarn add react-colorscales`\n\n\n## 🚗 Quick Start\n\n```js\nimport {Colorscale} from 'react-colorscales';\nimport ColorscalePicker from 'react-colorscales';\n\nconst viridisColorscale = ['#fafa6e', '#9cdf7c', '#4abd8c', '#00968e', '#106e7c', '#2a4858'];\n\n// Show a single colorscale\n\n\u003cColorscale\n    colorscale={viridisColorscale}\n    onClick={() =\u003e {}}\n    width={150}\n/\u003e\n\n// Show the colorscale picker\n\n\u003cColorscalePicker \n    onChange={this.onChange}\n    colorscale={viridisColorscale}\n/\u003e\n```\n\n## API\n\n### Colorscale component\n\n`\u003cColorscale /\u003e` generates a single color scale palette:\n\n| `prop`         | Description                                                                                | \n| -------------- | ------------------------------------------------------------------------------------------ |\n| `onClick`      | Function to be called when colorscale is clicked.                                          |\n| `colorscale`   | Colorscale as an array of color strings (HEX or RGB). See Quick Start above.               |\n| `width`        | Optional: Width of an individual color swatch. Defaults to 20px.                           |\n| `maxWidth`     | Optional: Maximum width of colorscale palette. If set, `maxWidth` overrides swatch `width`. |\n| `label`        | Optional: Label positioned on the left side of color scale palette                         |\n\n\n### ColorscalePicker component\n\n`\u003cColorscalePicker /\u003e` generates a UI panel for selecting a color scale palette:\n\n| `prop`                  | Description                                                                                | \n| ----------------------- | ------------------------------------------------------------------------------------------ |\n| `onChange`              | Passes back a new color scale when a scale is chosen or modified.                          |\n| `colorscale`            | Default colorscale as an array of color strings (HEX or RGB). See Quick Start above.       |\n| `nSwatches`             | Optional: Number of discrete colors or \"swatches\" in the default color scale.              |\n| `fixSwatches`           | Optional: If set to `true`, hides the swatches slider and fixes swatches to `nSwatches.    |\n| `colorscaleType`        | Optional: If set, sets ColorPicker Dropdown to specific colorscale, one of `COLORSCALE_TYPES`|\n| `width`                 | Optional: Can set width of component                                                       |\n| `className`             | Optional: Can add className to base level component                                        |\n| `disableSwatchControls` | Optional: Does not show swatch related controls in ColorPicker                             |\n| `scaleLength`| Optional: Can specify the lengh of the Colorscales used in the ColorPicker |\n\n\nSee the [demo app source code](https://github.com/plotly/react-colorscales-demo-app/blob/master/src/App.js) for an example of importing and using these components.\n\n\n## Features\n\n- Preloaded with ColorBrewer, cmocean, and cube helix color scales\n- Log color scales\n- Set custom scale breakpoints\n- Set the number of discrete colors (\"swatches\") in a color scale\n\n\n## Screenshots\n\n![react-colorscales-screenshot](https://user-images.githubusercontent.com/4257572/43021804-01564c8a-8c33-11e8-961b-416c6b00caa2.png)\n\n\n## Credit\n\n- Cynthia Brewer's [ColorBrewer](http://colorbrewer2.org/) colorscales\n- Kristen Thyng's [cmocean](http://matplotlib.org/cmocean/) color scales\n- Dave Green's [cube helix](https://www.mrao.cam.ac.uk/~dag/CUBEHELIX/) color scales\n- Gregor Aisch's [chroma-js](https://github.com/gka/chroma.js/) for easy access to the aforementioned color scales in JavaScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotly%2Freact-colorscales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplotly%2Freact-colorscales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplotly%2Freact-colorscales/lists"}