Skip to content

Commit 5d33484

Browse files
committed
Add animation tokens
1 parent 184c901 commit 5d33484

File tree

3 files changed

+215
-359
lines changed

3 files changed

+215
-359
lines changed

design-tokens/src/build-style-dictionary.js

+51-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,14 @@ StyleDictionary.extend({
259259
source: ['dist/primitives.base.json'],
260260
platforms: {
261261
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+
],
263270
buildPath: 'dist/json/',
264271
files: [
265272
{
@@ -271,6 +278,49 @@ StyleDictionary.extend({
271278
},
272279
}).buildAllPlatforms();
273280

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+
274324
console.log('✅ CSS and JSON files have been generated.');
275325

276326
const JSON_DIR = 'dist/json';

0 commit comments

Comments
 (0)