-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli,theme): don't output underlying primitives for semantic colo…
…r variables (#2641)
- Loading branch information
Showing
28 changed files
with
3,918 additions
and
6,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
"@digdir/designsystemet-theme": minor | ||
"@digdir/designsystemet": minor | ||
--- | ||
|
||
CSS variables: `--ds-color-*-{1,2,...,13,contrast-1,contrast-2}`, which were generated from the `primitives` layer of design tokens, have been removed since they are always 1-to-1 with the semantic layer. Use the equivalent variables from the semantic layer instead | ||
|
||
Example, for the `neutral` scale: | ||
```css | ||
var(--ds-color-neutral-background-default); /* instead of: var(--ds-color-neutral-1) */ | ||
var(--ds-color-neutral-background-subtle); /* instead of: var(--ds-color-neutral-2) */ | ||
var(--ds-color-neutral-surface-default); /* instead of: var(--ds-color-neutral-3) */ | ||
var(--ds-color-neutral-surface-hover); /* instead of: var(--ds-color-neutral-4) */ | ||
var(--ds-color-neutral-surface-active); /* instead of: var(--ds-color-neutral-5) */ | ||
var(--ds-color-neutral-border-subtle); /* instead of: var(--ds-color-neutral-6) */ | ||
var(--ds-color-neutral-border-default); /* instead of: var(--ds-color-neutral-7) */ | ||
var(--ds-color-neutral-border-strong); /* instead of: var(--ds-color-neutral-8) */ | ||
var(--ds-color-neutral-base-default); /* instead of: var(--ds-color-neutral-9) */ | ||
var(--ds-color-neutral-base-hover); /* instead of: var(--ds-color-neutral-10) */ | ||
var(--ds-color-neutral-base-active); /* instead of: var(--ds-color-neutral-11) */ | ||
var(--ds-color-neutral-text-subtle); /* instead of: var(--ds-color-neutral-12) */ | ||
var(--ds-color-neutral-text-default); /* instead of: var(--ds-color-neutral-13) */ | ||
var(--ds-color-neutral-contrast-default); /* instead of: var(--ds-color-neutral-contrast-1) */ | ||
var(--ds-color-neutral-contrast-subtle); /* instead of: var(--ds-color-neutral-contrast-2) */ | ||
``` | ||
...and similarly for `accent`, `brand1`, `brand2` and `brand3`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.