Det Fælles Designsystem er den fælles guide til selvbetjeningsløsninger, der skal på Borger.dk og Virk.
npm install dkfdsdkfds in your project by writing the following in a command-prompt:
shell
npm install --save dkfds
`
The dkfds module is now installed as a dependency. You can use the un-compiled files found in the src/ or the compiled files in the dist/ directory.
$3
Download the design system as a zip file and open that file.
$3
#### FDS as vendor
If you downloaded the project as a zip folder simply include the follow code in the head-part of your page to include the css:
`shell
`
To include the javascript, include this tag at the bottom of the body-part of your page:
`shell
`
To include the styling add the following code to your main.scss file:
`shell
@use 'node_modules/dkfds/src/stylesheets/dkfds' with (
$font-path: 'node_modules/dkfds/src/fonts/IBMPlexSans/',
$image-path: 'node_modules/dkfds/src/img/',
$icons-folder-path: 'node_modules/dkfds/src/img/svg-icons/'
);
`
To include the JavaScript, import it in your main.js file:
`shell
import * as DKFDS from "dkfds";
``