You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upgrade to latest Style Dictionary v5.0.0. The only breaking change is that this version sd-transforms is no longer compatible with v4, due to the preprocessors making direct use of the performance improvements that came with Style Dictionary v5.
--sdSpacingMultiValue: 8px 64px; /* You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
57
+
--sdSpacingMultiValue: 8px 64px; /** You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
--sd-spacing-multi-value: 8px 64px; /* You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
114
+
--sd-spacing-multi-value: 8px 64px; /** You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
--sdSpacingMultiValue: 8px 64px; /* You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-$value-spacing-tokens */
61
+
--sdSpacingMultiValue: 8px 64px; /** You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-$value-spacing-tokens */
Copy file name to clipboardExpand all lines: test/spec/preprocessors/add-font-styles.spec.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ describe('add font style', () => {
151
151
152
152
expect(stub.calls.size).to.equal(1);
153
153
expect(stub.firstCall?.args[0].message).to.equal(
154
-
`tries to reference fwRef, which is not defined.`,
154
+
`tokens-studio preprocessor -> addFontStyles: Failing to resolve references within fontWeight -> {fwRef}.\n\ntries to reference {fwRef}, which is not defined.`,
155
155
);
156
156
});
157
157
@@ -291,8 +291,14 @@ describe('add font style', () => {
291
291
},
292
292
}asDeepKeyTokenMap<false>;
293
293
294
+
conststub=stubMethod(console,'error');
294
295
constprocessed=addFontStyles(tokens);
296
+
restore();
295
297
298
+
expect(stub.calls.size).to.equal(1);
299
+
expect(stub.firstCall?.args[0].message).to.equal(
300
+
`tokens-studio preprocessor -> addFontStyles: Failing to resolve references within fontWeight -> {foo}.\n\ntries to reference {foo}, which is not defined.`,
Copy file name to clipboardExpand all lines: test/spec/register.spec.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -317,7 +317,7 @@ describe('register', () => {
317
317
--opacity: 0.25;
318
318
--spacingSm: 8px;
319
319
--spacingXl: 64px;
320
-
--spacingMultiValue: 8px 64px; /* You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
320
+
--spacingMultiValue: 8px 64px; /** You can have multiple values in a single spacing token. Read more on these: https://docs.tokens.studio/available-tokens/spacing-tokens#multi-value-spacing-tokens */
0 commit comments