Skip to content

Commit d96ce30

Browse files
update
1 parent 9b406f5 commit d96ce30

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ StyleDictionary.registerTransform({
8181
- [color/css](#colorcss)
8282
- [typography/css](#typographycss)
8383
- [fontFamily/css](#fontfamilycss)
84-
- [fontWeight/number](#fontweightnumber)
84+
- [fontWeight/css](#fontweightcss)
8585
- [gradient/css](#gradientcss)
8686
- [cubicBezier/css](#cubicbeziercss)
8787
- [dimension/css](#dimension)
@@ -680,15 +680,15 @@ myStyleDictionary.extend({
680680
}
681681
```
682682

683-
### fontWeight/number
683+
### fontWeight/css
684684

685685
This `value` transformer replaces the value of a w3c fontWeight token with a `$type` of `fontWeight` with a `css` fontWeight number.
686686

687687
```js
688688
myStyleDictionary.extend({
689689
platforms: {
690690
ts: {
691-
transforms: ['fontWeight/number'],
691+
transforms: ['fontWeight/css'],
692692
files: [
693693
{
694694
// ...

package-lock.json

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"eslint-plugin-github": "^5.0.2",
5757
"prettier": "^3.3.3",
5858
"style-dictionary": "^5",
59+
"style-dictionary-utils": "^6.0.0",
5960
"typescript": "^5.5.2",
6061
"vitest": "^3.2.3"
6162
},

0 commit comments

Comments
 (0)