Skip to content

Commit 0fcf0aa

Browse files
committed
fix: broken [object Object] box shadow tokens in Leiden theme
1 parent 94b3d75 commit 0fcf0aa

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

.changeset/cuddly-onions-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nl-design-system-unstable/leiden-design-tokens": patch
3+
---
4+
5+
Fix `box-shadow` design tokens with `[object Object]` values.

.changeset/sixty-sloths-type.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@nl-design-system-unstable/leiden-design-tokens": major
3+
---
4+
5+
No longer ship the legacy files. Migration steps:
6+
7+
- Migrate from `dist/index.json` to `dist/list.json`
8+
- Migrate from `dist/design-tokens.css` to `dist/theme.css`
9+
- Migrate from `dist/index.less` to `dist/variables.less`
10+
- Migrate from `index.js` to `dist/variables.mjs`

proprietary/leiden-design-tokens/documentation/design-tokens.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Meta } from "@storybook/addon-docs/blocks";
22
import { DesignTokensTable } from "@nl-design-system-unstable/design-tokens-table-react/css";
3-
import tokens from "../dist/index.json";
3+
import tokens from "../dist/list.json";
44
import config from "../src/config.json";
55

66
<Meta title="Leiden/Design Tokens" />

proprietary/leiden-design-tokens/style-dictionary.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const build = async () => {
2727

2828
let sd = new StyleDictionary({
2929
...createConfig({
30-
backwardsCompatible: true,
3130
selector: `.${themeConfig.prefix}-theme`,
3231
}),
3332
preprocessors: ['color-scheme-default', 'tokens-studio', 'dtcg-delegate'],

style-dictionary-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ const createConfig = ({
180180
],
181181
},
182182
'scss-theme-mixin': {
183+
transformGroup: transformGroup,
183184
transforms: ['name/kebab'],
184185
buildPath,
185186
files: [

0 commit comments

Comments
 (0)