
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@codegouvfr/react-dsfr
Advanced tools
🇫🇷 French State Design System React component library 🇫🇷
This module is a wrapper/compatibility layer for @gouvfr/dsfr, the vanilla JS/CSS implementation of the DSFR.
@gouvfr/dsfr
/dist/dsfr.css
.useTheme()
hooks that exposes the correct colors options and decision
for the currently enabled color scheme.This module is a product of Etalab's Free and open source software pole. I'm working full time on this project. You can expect rapid development. 🚀
Here are instructions for contributing, if you are looking to use @codegouvfr/react-dsfr
heads over to the documentation page.
git clone https://github.com/codegouvfr/react-dsfr
cd react-dsfr
yarn
yarn build
npx tsc -p src/bin -w & npx tsc -p src -w
# Open another Terminal
yarn start_cra # For testing in in a Create React App setup
yarn start_next # For testing in a Next.js setup
yarn start_vite # For testing in a Vite setup
# Run all unit test:
yarn test
# Run only test/behavior/cssVariable.test.ts (for example)
npx vitest -t "Resolution of CSS variables"
# Debugging while unit testing
When you want to import assets from the
./dsfr/
directory you must assume it's located in./src/dsfr
because it's where it's going to be relative to the transpiled JS files.
This repo was bootstrapped form garronej/ts-ci have a look at the documentation of this starter for understanding the lifecycle of this repo.
FAQs
French State Design System React integration library
We found that @codegouvfr/react-dsfr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.