@ks-digital/designsystem-angular
v0.0.1-alpha.29
Published
> ⚠ This library is currently experimental. However, we actively use and test it in internal applications, and we strive to keep it stable at all times.
Downloads
1,925
Readme
KS Digital Designsystem for Angular
⚠ This library is currently experimental. However, we actively use and test it in internal applications, and we strive to keep it stable at all times.
This library provides Angular components for KS Digital, designed to align closely with the components from Designsystemet.no.
Installation
Install the required packages using your preferred package manager:
pnpm add @ks-digital/designsystem-angular @ks-digital/designsystem-themesSetup
1. Include the Inter Font
Add the Inter font to your index.html. This API supports the same parameters as the Google Fonts API, allowing you to customize the font weights as needed:
<link href="https://static.fiks.ks.no/googlefonts/googleapis/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet" />2. Import Base Styles and Themes
Import the base styles and the theme you want to use in your application:
@import url('@ks-digital/designsystem-themes/base.css');
@import url('@ks-digital/designsystem-themes/forvaltning.css');3. Use Components
import { Button } from '@ks-digital/designsystem-angular'
@Component({
imports: [Button],
template: `
<button ksd-button>
Click me
</button>
`,
})Example
A complete example setup is available in the angular-demo located under the apps folder.
Development
pnpm nx run @ks-digital/designsystem-angular:storybook
