Skip to content

Commit 2cc8cc9

Browse files
adjusted readme
1 parent b2f34a6 commit 2cc8cc9

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import { StyleDictionary } from 'style-dictionary-utils'
5959

6060
StyleDictionary.registerTransform({
6161
name: 'transform/pxToRem',
62-
type: `value`,
62+
$type: `value`,
6363
transitive: true,
6464
transform: () => // ...
6565
})
@@ -586,7 +586,7 @@ myStyleDictionary.extend({
586586

587587
### font/css
588588

589-
This `value` transformer replaces the value of a w3c typography token with a `$type` or `type` of `typography` with a `css` font string.
589+
This `value` transformer replaces the value of a w3c typography token with a `$type` of `typography` with a `css` font string.
590590

591591
```js
592592
myStyleDictionary.extend({
@@ -637,7 +637,7 @@ myStyleDictionary.extend({
637637

638638
### fontFamily/css
639639

640-
This `value` transformer replaces the value of a w3c fontFamily token with a `$type` or `type` of `fontFamily` with a `css` fontFamily string.
640+
This `value` transformer replaces the value of a w3c fontFamily token with a `$type` of `fontFamily` with a `css` fontFamily string.
641641

642642
```js
643643
myStyleDictionary.extend({
@@ -682,7 +682,7 @@ myStyleDictionary.extend({
682682

683683
### fontWeight/number
684684

685-
This `value` transformer replaces the value of a w3c fontWeight token with a `$type` or `type` of `fontWeight` with a `css` fontWeight number.
685+
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({
@@ -727,7 +727,7 @@ myStyleDictionary.extend({
727727

728728
### gradient/css
729729

730-
This `value` transformer replaces the value of a w3c gradient token with a `$type` or `type` of `gradient` with a `css` gradient string.
730+
This `value` transformer replaces the value of a w3c gradient token with a `$type` of `gradient` with a `css` gradient string.
731731

732732
```js
733733
myStyleDictionary.extend({
@@ -782,7 +782,7 @@ myStyleDictionary.extend({
782782

783783
### cubicBezier/css
784784

785-
This `value` transformer replaces the value of a w3c cubicBezier token with a `$type` or `type` of `cubicBezier` with a `css` cubicBezier string.
785+
This `value` transformer replaces the value of a w3c cubicBezier token with a `$type` of `cubicBezier` with a `css` cubicBezier string.
786786

787787
```js
788788
myStyleDictionary.extend({
@@ -832,7 +832,7 @@ myStyleDictionary.extend({
832832

833833
### clamp/css
834834

835-
This `value` transformer replaces the value of a token with a `$type` or `type` of `clamp` that has a `$value` object with `min`, `ideal` and `max` property, with a css `clamp` function.
835+
This `value` transformer replaces the value of a token with a `$type` of `clamp` that has a `$value` object with `min`, `ideal` and `max` property, with a css `clamp` function.
836836

837837
```js
838838
myStyleDictionary.extend({
@@ -935,7 +935,7 @@ myStyleDictionary.extend({
935935

936936
### isColor
937937

938-
Only allows tokens with a `type` or `$type` property of `color`.
938+
Only allows tokens with a `$type` property of `color`.
939939

940940
**Filter name:** `"isColor"`
941941
**Import function:** `isColorFilter` from `'style-dictionary-utils/filter/isColor.js'`
@@ -956,7 +956,7 @@ myStyleDictionary.extend({
956956

957957
### isGradient
958958

959-
Only allows tokens with a `type` or `$type` property of `gradient`.
959+
Only allows tokens with a `$type` property of `gradient`.
960960

961961
**Filter name:** `"isGradient"`
962962
**Import function:** `isGradientFilter` from `'style-dictionary-utils/filter/isGradient.js'`
@@ -977,7 +977,7 @@ myStyleDictionary.extend({
977977

978978
### isTypography
979979

980-
Only allows tokens with a `type` or `$type` property of `typography`.
980+
Only allows tokens with a `$type` property of `typography`.
981981

982982
**Filter name:** `"isTypography"`
983983
**Import function:** `isTypographyFilter` from `'style-dictionary-utils/filter/isTypography.js'`
@@ -998,7 +998,7 @@ myStyleDictionary.extend({
998998

999999
### isTransition
10001000

1001-
Only allows tokens with a `type` or `$type` property of `transition`.
1001+
Only allows tokens with a `$type` property of `transition`.
10021002

10031003
**Filter name:** `"isTransition"`
10041004
**Import function:** `isTransitionFilter` from `'style-dictionary-utils/filter/isTransition.js'`
@@ -1019,7 +1019,7 @@ myStyleDictionary.extend({
10191019

10201020
### isStrokeStyle
10211021

1022-
Only allows tokens with a `type` or `$type` property of `strokeStyle`.
1022+
Only allows tokens with a `$type` property of `strokeStyle`.
10231023

10241024
**Filter name:** `"isStrokeStyle"`
10251025
**Import function:** `isStrokeStyleFilter` from `'style-dictionary-utils/filter/isStrokeStyle.js'`
@@ -1040,7 +1040,7 @@ myStyleDictionary.extend({
10401040

10411041
### isShadow
10421042

1043-
Only allows tokens with a `type` or `$type` property of `shadow`.
1043+
Only allows tokens with a `$type` property of `shadow`.
10441044

10451045
**Filter name:** `"isShadow"`
10461046
**Import function:** `isShadowFilter` from `'style-dictionary-utils/filter/isShadow.js'`
@@ -1061,7 +1061,7 @@ myStyleDictionary.extend({
10611061

10621062
### isFontWeight
10631063

1064-
Only allows tokens with a `type` or `$type` property of `fontWeight`.
1064+
Only allows tokens with a `$type` property of `fontWeight`.
10651065

10661066
**Filter name:** `"isFontWeight"`
10671067
**Import function:** `isFontWeightFilter` from `'style-dictionary-utils/filter/isFontWeight.js'`
@@ -1082,7 +1082,7 @@ myStyleDictionary.extend({
10821082

10831083
### isFontFamily
10841084

1085-
Only allows tokens with a `type` or `$type` property of `fontFamily`.
1085+
Only allows tokens with a `$type` property of `fontFamily`.
10861086

10871087
**Filter name:** `"isFontFamily"`
10881088
**Import function:** `isFontFamilyFilter` from `'style-dictionary-utils/filter/isFontFamily.js'`
@@ -1103,7 +1103,7 @@ myStyleDictionary.extend({
11031103

11041104
### isDuration
11051105

1106-
Only allows tokens with a `type` or `$type` property of `duration`.
1106+
Only allows tokens with a `$type` property of `duration`.
11071107

11081108
**Filter name:** `"isDuration"`
11091109
**Import function:** `isDurationFilter` from `'style-dictionary-utils/filter/isDuration.js'`
@@ -1124,7 +1124,7 @@ myStyleDictionary.extend({
11241124

11251125
### isDimension
11261126

1127-
Only allows tokens with a `type` or `$type` property of `dimension`.
1127+
Only allows tokens with a `$type` property of `dimension`.
11281128

11291129
**Filter name:** `"isDimension"`
11301130
**Import function:** `isDimensionFilter` from `'style-dictionary-utils/filter/isDimension.js'`
@@ -1145,7 +1145,7 @@ myStyleDictionary.extend({
11451145

11461146
### isCubicBezier
11471147

1148-
Only allows tokens with a `type` or `$type` property of `cubicBezier`.
1148+
Only allows tokens with a `$type` property of `cubicBezier`.
11491149

11501150
**Filter name:** `"isCubicBezier"`
11511151
**Import function:** `isCubicBezierFilter` from `'style-dictionary-utils/filter/isCubicBezier.js'`
@@ -1166,7 +1166,7 @@ myStyleDictionary.extend({
11661166

11671167
### isBorder
11681168

1169-
Only allows tokens with a `type` or `$type` property of `border`.
1169+
Only allows tokens with a `$type` property of `border`.
11701170

11711171
**Filter name:** `"isBorder"`
11721172
**Import function:** `isBorderFilter` from `'style-dictionary-utils/filter/isBorder.js'`
@@ -1187,7 +1187,7 @@ myStyleDictionary.extend({
11871187

11881188
### isClamp
11891189

1190-
Only allows tokens with a `type` or `$type` property of `clamp` and an object as the `$value` with a `min`, `ideal` and `max` property.
1190+
Only allows tokens with a `$type` property of `clamp` and an object as the `$value` with a `min`, `ideal` and `max` property.
11911191

11921192
**Filter name:** `"isClamp"`
11931193
**Import function:** `isClampFilter` from `'style-dictionary-utils/filter/isClamp.js'`
@@ -1208,7 +1208,7 @@ myStyleDictionary.extend({
12081208

12091209
### isNumber
12101210

1211-
Only allows tokens with a `type` or `$type` property of `number`.
1211+
Only allows tokens with a `$type` property of `number`.
12121212

12131213
**Filter name:** `"isNumber"`
12141214
**Import function:** `isNumberFilter` from `'style-dictionary-utils/filter/isNumber.js'`
@@ -1352,7 +1352,7 @@ myStyleDictionary.extend({
13521352
### getIsType
13531353

13541354
The `getIsType` function returns a `filter` function that filters by one or multiple types.
1355-
You can provide one or multiple arguments that are used as `types` to filter against the `type` or `$type` property.
1355+
You can provide one or multiple arguments that are used as types to filter against the `$type` property.
13561356

13571357
##### Register as a new filter
13581358

@@ -1377,7 +1377,7 @@ myStyleDictionary.extend({
13771377
"ts": {
13781378
"transforms": //...,
13791379
"files": [{
1380-
"filter": getIsType('size','dimension'), // allows only tokens with type `size` or `dimension`
1380+
"filter": getIsType('size','dimension'), // allows only tokens with $type `size` or `dimension`
13811381
// ...
13821382
}]
13831383
}

0 commit comments

Comments
 (0)