@digdir/designsystemet-theme
This package contains the following predefined themes for Designsystemet
altinn
digdir
tilsynet
brreg
Build your own theme on https://theme.designsystemet.no/
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>.css';
import '@digdir/designsystemet-theme';
import '@digdir/designsystemet-theme/altinn.css';
CSS
This package adds Designsystemet css variables to your :root {}
.
You only need to import this once in your application, preferably somewhere in your "root" html.
All variables are prefixed with ds
.
import '@digdir/designsystemet-theme/altinn.css';
div {
padding: var(--ds-spacing-1);
}