@digdir/designsystemet-theme

1.1.3 • Public • Published

@digdir/designsystemet-theme

This package contains the following predefined Designsystemet themes for use in Digdir.

  • digdir
  • altinn
  • uutilsynet
  • portal

Build your own theme on https://theme.designsystemet.no/

Usage

Read the Designsystemet README to get started.

When importing the package make sure to specify which theme. By default digdir is used.

// Digdir theme
@import url('@digdir/designsystemet-theme');
// or 
@import url('@digdir/designsystemet-theme/<theme>.css');

CSS

All variables are prefixed with ds and inside @layer ds.

@import url('@digdir/designsystemet-theme/altinn.css');

@layer "other layers", ds;

.example {
  padding: var(--ds-size-1);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @digdir/designsystemet-theme

Weekly Downloads

2,567

Version

1.1.3

License

MIT

Unpacked Size

326 kB

Total Files

16

Last publish

Collaborators

  • candalt
  • oyvindthune
  • jensmo
  • barsnes
  • mimarz