Fœhn (føn) is the design system build for the website of the State of Vaud.
Upgrading? Please read our CHANGELOG to learn what changes to expect in the latest version, whether that's new features, bug fixes, changes, or whatever else.
Fork repository (optional)
If you are an external contributor make sur to fork this project first
$ git clone [path/of/the/repo/]foehn.git$ cd foehn
Start a local server
This will build sources, serve pages and watch for changes.
$ yarn start
$ yarn build
To test basic accessibility issues using Pa11y.
$ yarn test-a11y
Deploy the styleguide
We deploy the styleguide to a
gh-pages branch on Github. To do this, use the
following command to build and then deploy the code:
$ yarn run deploy
- Make sure, the
CHANGELOG.mdis up to date. If not, update it and commit the changes.
- Run the
$ yarn versioncommand to create a new version of the package. (It also create the tag.)
$ yarn version
Getting Foehn npm package
Publish on the npm registry
The following command will build the code and publish the latest version on the registry you have set in your NPM config.
$ npm publish --tag latest
If you need to publish a specific version, use
$ yarn publish --tag <tag> to
build the code and publish a specific