Skip to content

Commit 8db53f0

Browse files
committed
chore: update example
1 parent 9fc17ef commit 8db53f0

File tree

5 files changed

+71
-350
lines changed

5 files changed

+71
-350
lines changed

example/with-css-variables/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"@types/react": "^19.0.0",
2020
"@types/react-dom": "^19.0.0",
2121
"postcss": "8.5.6",
22-
"sd-tailwindcss-transformer": "^2.0.0",
23-
"style-dictionary": "^4.1.2",
22+
"sd-tailwindcss-transformer": "^2.2.0",
23+
"style-dictionary": "^5.0.4",
2424
"tailwindcss": "^4.1.13",
2525
"typescript": "^5.9.2"
2626
}

example/with-css-variables/sd.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import StyleDictionaryModule from 'style-dictionary'
22
import { makeSdTailwindConfig } from 'sd-tailwindcss-transformer'
3-
// const { makeSdTailwindConfig } = require('../../dist')
3+
// import { makeSdTailwindConfig } from '../../dist/index.js'
44

55
const PREFIX = 'tw-'
66

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"colors": {
33
"font": {
4-
"base": { "value": "{colors.base.red.value}" },
5-
"secondary": { "value": "{colors.base.green.value}" },
6-
"tertiary": { "value": "{colors.base.gray.light.value}" }
4+
"base": { "value": "{colors.base.red}" },
5+
"secondary": { "value": "{colors.base.green}" },
6+
"tertiary": { "value": "{colors.base.gray.light}" }
77
}
88
}
99
}

example/with-css-variables/style-dictionary/tokens/size/font.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"value": "2rem"
1111
},
1212
"base": {
13-
"value": "{fontSize.medium.value}"
13+
"value": "{fontSize.medium}"
1414
}
1515
}
1616
}

0 commit comments

Comments
 (0)