{"id":13445895,"url":"https://github.com/dataesr/react-dsfr","last_synced_at":"2026-01-22T19:12:50.826Z","repository":{"id":37866302,"uuid":"338074687","full_name":"dataesr/react-dsfr","owner":"dataesr","description":"Non-official React components of the official french Système de Design de l'État.","archived":false,"fork":false,"pushed_at":"2023-11-28T07:13:02.000Z","size":14693,"stargazers_count":44,"open_issues_count":36,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-25T21:52:19.459Z","etag":null,"topics":["component-library","design-system","javascript","react","styleguide"],"latest_commit_sha":null,"homepage":"https://dataesr.github.io/react-dsfr/","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/dataesr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-02-11T15:50:24.000Z","updated_at":"2025-10-07T12:36:27.000Z","dependencies_parsed_at":"2023-11-20T16:28:51.633Z","dependency_job_id":"fb4a11a7-d98f-4112-82bf-0631db65dc1b","html_url":"https://github.com/dataesr/react-dsfr","commit_stats":{"total_commits":701,"total_committers":26,"mean_commits":26.96153846153846,"dds":0.7646219686162625,"last_synced_commit":"cdd75998483b9394e6d9fec3beb31e2e965d0763"},"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"purl":"pkg:github/dataesr/react-dsfr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataesr%2Freact-dsfr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataesr%2Freact-dsfr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataesr%2Freact-dsfr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataesr%2Freact-dsfr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dataesr","download_url":"https://codeload.github.com/dataesr/react-dsfr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataesr%2Freact-dsfr/sbom","scorecard":{"id":324402,"data":{"date":"2025-08-11","repo":{"name":"github.com/dataesr/react-dsfr","commit":"666f089b2209a9c2d7ef73fe0f79f129923c2b7b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/30 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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/dataesr/react-dsfr/tests.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"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":"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":"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":"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"}},{"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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":"Vulnerabilities","score":0,"reason":"61 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4","Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2","Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-w5hq-hm5m-4548","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T02:07:43.620Z","repository_id":37866302,"created_at":"2025-08-18T02:07:43.620Z","updated_at":"2025-08-18T02:07:43.620Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T17:07:18.858Z","status":"ssl_error","status_checked_at":"2026-01-22T17:05:02.040Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component-library","design-system","javascript","react","styleguide"],"created_at":"2024-07-31T05:00:41.407Z","updated_at":"2026-01-22T19:12:50.778Z","avatar_url":"https://github.com/dataesr.png","language":"JavaScript","funding_links":[],"categories":["Design System de l'État (dsfr)","JavaScript"],"sub_categories":["react-dsfr"],"readme":"# @dataesr/react-dsfr\n\n\u003e Non-official React components of the official french [Système de Design de l'État](https://gouvfr.atlassian.net/wiki/spaces/DB/overview?homepageId=145359476).\n\n[![NPM](https://img.shields.io/npm/v/@dataesr/react-dsfr.svg)](https://www.npmjs.com/package/@dataesr/react-dsfr) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![GitHub contributors](https://img.shields.io/github/contributors-anon/dataesr/react-dsfr?color=%23E52B50%20)\n\n[![Tests](https://github.com/dataesr/react-dsfr/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/dataesr/react-dsfr/actions/workflows/tests.yml) ![GitHub last commit](https://img.shields.io/github/last-commit/dataesr/react-dsfr?color=purple) [![semantic-release: react](https://img.shields.io/badge/semantic--release-react-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n\nCurrent version is using a degraded version of [@gouvfr/dsfr@1.7.0](https://www.npmjs.com/package/@gouvfr/dsfr) (new components are not yet available)\n\n## Requirements\n\n* node \u003e= 14.18.x\n* npm \u003e= 8.15.x\n* React \u003e= 18.2.x\n\n## Installation\n\n```bash\nnpm i @dataesr/react-dsfr\n```\n\n## Generate and watch\n\nGenerate and watch dist folder containing bundles:\n\n```bash\nnpm install --legacy-peer-deps\nnpm start\n```\n\n## Library usage\n\n#### Example page\n\n\u003e A playground to test components\n\nAn example page is available containing all components. To launch it on your local machine, first [launch watcher of the project](#generate-and-watch) and then:\n\n```bash\ncd example\nnpm install \nnpm start\n```\n\n#### Use Icons\n\nWe are using [remixicon](https://remixicon.com/).\n\n```javascript\nimport { Icon } from '@dataesr/react-dsfr';\n\n\u003cIcon\n    name=\"ri-bubble-chart-line\"\n    size=\"lg\"\n    color=\"#f88\"\n    iconPosition=\"right\"\n\u003e\n    \u003cp\u003eI have an icon\u003c/p\u003e\n\u003c/Icon\u003e\n```\n\n\u003e :warning: CDN link of css must be added to the `\u003chead\u003e` of your website.  \n\n```html\n\u003clink href=\"https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css\" rel=\"stylesheet\"\u003e\n```\n\n#### Use Colors\n\nColor variables are available in `style/color.css`. To make a new component dark theme compatible it's recommended to use variables from `scheme.css` in [@gouvfr/dsfr project](https://www.npmjs.com/package/@gouvfr/dsfr)\n\nSome components can be colored with variables (see `colorFamily` props) listed below:\n```\n['green-tilleul-verveine', 'green-bourgeon', 'green-emeraude', 'green-menthe', 'green-archipel', 'blue-ecume', 'blue-cumulus', 'purple-glycine', 'pink-macaron', 'pink-tuile', 'yellow-tournesol', 'yellow-moutarde', 'orange-terre-battue', 'brown-cafe-creme', 'brown-caramel', 'brown-opera', 'beige-gris-galet']\n```\n\n### Documentation - Storybook\n\n[Storybook](https://dataesr.github.io/react-dsfr) of the project is under construction.\n\nTo run it locally\n\n```bash\nnpm run storybook\n```\n\n\n\n### Unit tests\n\n#### Run all tests using react-scripts WHITH watcher option\n\n```bash\nnpm run test:dev\n```\n\n#### Run all tests using react-scripts WITHOUT watcher option\n\n```bash\nnpm run test:nowatch\n```\n\n#### Update snapshots\n\n```bash\nnpm test -- --updateSnapshot\n```\n\n#### In Chrome\n\n```bash\nnpm run test:debug\n```\n\nAccess `about:inspect`\n\nSee doc [debugging-tests](https://create-react-app.dev/docs/debugging-tests/)\n\n\n\n### Release policy and package publishing \n\nThe `@dataesr/react-dsfr` package is published with [semantic-release](https://github.com/semantic-release/semantic-release).\n\nMerging code on the `master` branch will automatically bump the version, create a tag, produce a changelog and trigger the tests.\n\nIf new semantic commits are found (see below how to format commit) a new version of npm package is published and github pages is updated.\n\n#### new patch version\n```bash\ngit commit -m \"fix: This is my fix\"\n```\n\n#### new minor version\n```bash\ngit commit -m \"feat: This is my feature\"\n```\n\n#### new major version\n```bash\ngit commit -m \"[subject]\" -m \"BREAKING CHANGE: [body]\"\n```\n\nSee [Commit message formats](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-format) for more details.\n\n#### Accessibility\n\nComponents can be tested in Example's page `App.js` with [@axe-core/react](https://www.npmjs.com/package/@axe-core/react)\n\n```bash\nnpm instal --save-dev @axe-core/react\n```\n\nAnother solution to test accessibility is CLI module [https://pa11y.org/](https://pa11y.org/)\n\nCheck configuration file `.pa11y-ci`\n\n```bash\nnpm install -g pa11y-ci\npa11y-ci\n```\n\n### They use react-dsfr and we like it!\n\n* [santepsy.etudiant.gouv.fr](https://santepsy.etudiant.gouv.fr)\n* [DashLord](https://dashlord.incubateur.net)\n* [Baromètre de la Science Ouverte](https://barometredelascienceouverte.esr.gouv.fr)\n* [Enfants du spectacle](https://enfants-du-spectacle.fabrique.social.gouv.fr)\n* [Mon Psy](https://monpsy.sante.gouv.fr)\n* [Transitions collectives](https://transitions-collectives.fabrique.social.gouv.fr)\n* [Immersion facile](https://immersion-facile.beta.gouv.fr)\n* [Bilans climat simplifiés](https://bilans-climat-simplifies.ademe.fr)\n* [Zero logement vacant](https://zerologementvacant.beta.gouv.fr)\n\n\n### Help from outside\n\nThanks to the internet world.\n\n* [How to build, test and release a node module in ES6 ](https://dev.to/whitep4nth3r/how-to-build-test-and-release-a-node-module-in-es6-296b)\n\n* [How to create an npm library from react components](https://dev.to/jimjunior/how-to-create-an-npm-library-from-react-components-2m2)\n\n\n## TODO\n\n* Limit usage of colors to colorFamilies\n* Upgrade to latest version of the DSFR (v1.9)\n* Full review ot the Typescript integration\n* Tree Shaking (instead of the whole bundle)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataesr%2Freact-dsfr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataesr%2Freact-dsfr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataesr%2Freact-dsfr/lists"}