DKFDS - Det Fælles Designsystem - Plugins
This repo includes code and documentation for plugins for the Frontend styleguide.
The documentation site can be found here.
The components project can be found here.
The plugins project can be found here.
Plugins
Plugins are defined at components that are not a part of the core package implemented in components project.
Plugins are divided into two parts: an example showing the component (HTML and Javascript) and a theme for the component (Css).
Currently the plugins project contains themes and examples of the following components:
Download the plugins project
Using npm:
npm install dkfds-plugins --save
This downloades the plugin project to the node_modules/dkfds-plugins folder.
Using the plugins project
Only the css-themes are to be used. The HTML and javascript are just example code showing how e.g. datatables are implemented.
To include a theme simply include the one of the files from the /dist/css folder:
<link rel="stylesheet" href="[path-to-plugins-project]/dist/css/dkfds-datatables-theme.standalone.min.css">
or include it in your scss:
@import "~dkfds-plugins/dist/scss/dkfds-datatables-theme.scss";