0.15.3 • Published 9 months ago

@digdir/designsystemet-theme v0.15.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@digdir/designsystemet-theme

Themes for Designsystemet

This package contains the following predefined brand themes

  • altinn
  • digdir
  • tilsynet
  • brreg

Installation

npm install @digdir/designsystemet-theme

Usage

When importing the package make sure to specify which brand tokens you want to import. By default the digdir is imported if you don't specify a brand.

import '@digdir/designsystemet-theme/brand/<brand>/tokens';

// This imports Digdir brand css tokens
import '@digdir/designsystemet-theme';

//  This imports Altinn css tokens
import '@digdir/designsystemet-theme/brand/altinn/tokens.css';

CSS

When importing css tokens a set of css variables are added to your :root {}. You only need to import this once in your application, preferably somewhere in your "root" html.

All variables are prefixed with fds.

import '@digdir/designsystemet-theme/brand/altinn/tokens.css';
div {
  padding: var(--fds-spacing-1);
}
1.0.0-next.35

9 months ago

1.0.0-next.33

9 months ago

1.0.0-next.32

10 months ago

1.0.0-next.15

11 months ago

1.0.0-next.14

11 months ago

1.0.0-next.34

9 months ago

1.0.0-rc.9

1 year ago

1.0.0-rc.7

1 year ago

1.0.0-rc.8

1 year ago

0.0.0-test.20240805

11 months ago

1.0.0-rc.5

1 year ago

0.0.0-test.20240806

11 months ago

1.0.0-rc.6

1 year ago

1.0.0-rc.13

11 months ago

1.0.0-rc.12

1 year ago

1.0.0-rc.11

1 year ago

1.0.0-rc.10

1 year ago

1.0.0-rc.3

1 year ago

1.0.0-rc.4

1 year ago

1.0.0-rc.1

1 year ago

1.0.0-rc.2

1 year ago

1.0.0-rc.0

1 year ago

0.15.3

1 year ago

0.15.2

1 year ago

0.15.1

1 year ago

0.15.1-alpha.2

1 year ago

0.15.1-alpha.3

1 year ago

0.15.1-alpha.1

1 year ago

0.15.1-alpha.0

1 year ago

0.15.0

1 year ago

0.13.1-alpha.2

1 year ago

0.14.0

1 year ago

0.14.1

1 year ago

0.13.1-alpha.1

1 year ago

0.13.1-alpha.0

1 year ago