File tree 3 files changed +215
-359
lines changed
3 files changed +215
-359
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,14 @@ StyleDictionary.extend({
259
259
source : [ 'dist/primitives.base.json' ] ,
260
260
platforms : {
261
261
js : {
262
- transformGroup : 'js' ,
262
+ // includes JS transformGroup + shadow
263
+ transforms : [
264
+ 'attribute/cti' ,
265
+ 'name/cti/pascal' ,
266
+ 'size/rem' ,
267
+ 'color/hex' ,
268
+ 'cubicBezier/css' ,
269
+ ] ,
263
270
buildPath : 'dist/json/' ,
264
271
files : [
265
272
{
@@ -271,6 +278,49 @@ StyleDictionary.extend({
271
278
} ,
272
279
} ) . buildAllPlatforms ( ) ;
273
280
281
+ // StyleDictionary.extend({
282
+ // source: ['tokens/animation.base.json'],
283
+ // platforms: {
284
+ // js: {
285
+ // // includes JS transformGroup + shadow
286
+ // transforms: [
287
+ // 'attribute/cti',
288
+ // 'name/cti/pascal',
289
+ // 'size/rem',
290
+ // 'color/hex',
291
+ // 'cubicBezier/css',
292
+ // ],
293
+ // buildPath: 'dist/json/',
294
+ // files: [
295
+ // {
296
+ // destination: 'animation.base.json',
297
+ // format: 'json/nested',
298
+ // },
299
+ // ],
300
+ // },
301
+ // css: {
302
+ // // includes css transformGroup + shadow
303
+ // // includes css transformGroup + shadow
304
+ // transforms: [
305
+ // 'attribute/cti',
306
+ // 'name/cti/kebab',
307
+ // 'time/seconds',
308
+ // 'content/icon',
309
+ // 'size/rem',
310
+ // 'color/css',
311
+ // 'cubicBezier/css',
312
+ // ],
313
+ // buildPath: 'dist/css/',
314
+ // files: [
315
+ // {
316
+ // destination: 'animation-base.css',
317
+ // format: 'css/variables',
318
+ // },
319
+ // ],
320
+ // },
321
+ // },
322
+ // }).buildAllPlatforms();
323
+
274
324
console . log ( '✅ CSS and JSON files have been generated.' ) ;
275
325
276
326
const JSON_DIR = 'dist/json' ;
You can’t perform that action at this time.
0 commit comments