mirror of
https://github.com/DSI-VD/foehn-design-system.git
synced 2026-08-25 21:14:15 +00:00
Read-only mirror of https://github.com/DSI-VD/foehn-design-system — Canton de Vaud. Issues & pull requests at the source.
- HTML 76.7%
- SCSS 18%
- JavaScript 5.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .prettierignore | ||
| CHANGELOG.md | ||
| fractal.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
Foehn Design System
One place for service teams to find styles, components and patterns for designing government services.
About
This documentation will replace the one you find in Foehn. Next major version of Foehn will not contain any documantion. It will help to gain some place in the repo.
Getting Started
Prerequisites
- Node.js (recommended version 14 or higher)
- npm
Installation
- Clone the repository:
git clone https://[url]/foehn-design-system.git
cd foehn-design-system
- Install dependencies:
npm install
Running the project
To start the development server:
npm start
This will:
- Clean and prepare the build environment
- Copy necessary assets (Fontawesome, Foehn, documentation assets)
- Lint and format code
- Compile Sass styles
- Start Fractal with live reload
- Watch for style changes
The development server will be available at the URL shown in your terminal.
Building for production
To build the project for production:
npm run build
This creates optimized files in the build/ directory.
Updating the project
To update dependencies and the project:
- Update npm packages:
npm update
- To update to a specific version of Foehn:
npm install @dsivd/foehn@latest
- Rebuild the project after updates:
npm run prebuild