@digdir/designsystemet-theme
Advanced tools
Comparing version 1.0.0-next.40 to 1.0.0-next.41
{ | ||
"name": "@digdir/designsystemet-theme", | ||
"version": "1.0.0-next.40", | ||
"version": "1.0.0-next.41", | ||
"description": "Predefined themes for Designsystemet", | ||
@@ -5,0 +5,0 @@ "author": "Designsystemet team", |
# @digdir/designsystemet-theme | ||
This package contains the following predefined themes for Designsystemet | ||
This package contains the following predefined Designsystemet themes for use in Digdir. | ||
- `digdir` | ||
- `altinn` | ||
- `digdir` | ||
- `tilsynet` | ||
- `brreg` | ||
- `uutilsynet` | ||
- `portal` | ||
@@ -14,11 +14,14 @@ Build your own theme on https://theme.designsystemet.no/ | ||
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. | ||
Read the Designsystemet [README](https://github.com/digdir/designsystemet) to get started. | ||
When importing the package make sure to specify which theme. | ||
By default `digdir` is used. | ||
```tsx | ||
import '@digdir/designsystemet-theme/<brand>.css'; | ||
import '@digdir/designsystemet-theme/<theme>.css'; | ||
// This imports Digdir brand css tokens | ||
// Digdir theme | ||
import '@digdir/designsystemet-theme'; | ||
// This imports Altinn css tokens | ||
// Altinn theme | ||
import '@digdir/designsystemet-theme/altinn.css'; | ||
@@ -43,1 +46,2 @@ ``` | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476236
46