@seed-design/migration-index 0.0.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @seed-design/migration-index
2
+
3
+ ## 0.0.1-rc.0
4
+
5
+ ### Patch Changes
6
+
7
+ - f83bbf8: migration index, codemod (vars, tailwind)
package/color.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import type { FoundationTokenMapping } from "./index";
2
+
3
+ export declare const semanticColorMappings: FoundationTokenMapping[];
4
+ export declare const scaleColorMappings: FoundationTokenMapping[];
5
+ export declare const staticColorMappings: FoundationTokenMapping[];
6
+ export declare const colorMappings: FoundationTokenMapping[];
package/color.mjs ADDED
@@ -0,0 +1,664 @@
1
+ export const semanticColorMappings = [
2
+ {
3
+ previous: "$semantic.color.on-primary",
4
+ next: ["$color.palette.static-white"],
5
+ },
6
+ {
7
+ previous: "$semantic.color.primary",
8
+ next: ["$color.bg.brand-solid", "$color.fg.brand"],
9
+ alternative: ["$color.palette.carrot-600"],
10
+ },
11
+ {
12
+ previous: "$semantic.color.primary-low",
13
+ next: ["$color.palette.carrot-100"],
14
+ },
15
+ {
16
+ previous: "$semantic.color.secondary",
17
+ next: ["$color.palette.gray-900"],
18
+ },
19
+ {
20
+ previous: "$semantic.color.secondary-low",
21
+ next: ["$color.bg.neutral-weak"],
22
+ alternative: ["$color.palette.gray-200"],
23
+ },
24
+ {
25
+ previous: "$semantic.color.success",
26
+ next: ["$color.bg.positive-solid", "$color.fg.positive"],
27
+ alternative: ["$color.fg.positive-contrast", "$color.palette.green-700"],
28
+ },
29
+ {
30
+ previous: "$semantic.color.success-low",
31
+ next: ["$color.bg.positive-weak"],
32
+ alternative: ["$color.palette.green-100"],
33
+ },
34
+ {
35
+ previous: "$semantic.color.warning",
36
+ next: ["$color.bg.warning-solid"],
37
+ alternative: ["$color.fg.warning-contrast", "$color.palette.yellow-500"],
38
+ },
39
+ {
40
+ previous: "$semantic.color.warning-low",
41
+ next: ["$color.bg.warning-weak"],
42
+ alternative: ["$color.palette.yellow-100"],
43
+ },
44
+ {
45
+ previous: "$semantic.color.danger",
46
+ next: ["$color.bg.critical-solid", "$color.fg.critical"],
47
+ alternative: ["$color.fg.critical-contrast", "$color.palette.red-700"],
48
+ },
49
+ {
50
+ previous: "$semantic.color.danger-low",
51
+ next: ["$color.bg.critical-weak"],
52
+ alternative: ["$color.palette.red-100"],
53
+ },
54
+ {
55
+ previous: "$semantic.color.overlay-dim",
56
+ next: ["$color.bg.overlay"],
57
+ alternative: ["$color.palette.static-black-alpha-500"],
58
+ },
59
+ {
60
+ previous: "$semantic.color.overlay-low",
61
+ next: ["$color.bg.overlay-muted"],
62
+ alternative: ["$color.palette.static-black-alpha-200"],
63
+ },
64
+ {
65
+ previous: "$semantic.color.paper-sheet",
66
+ next: ["$color.bg.layer-floating"],
67
+ alternative: ["$color.palette.gray-00"],
68
+ },
69
+ {
70
+ previous: "$semantic.color.paper-dialog",
71
+ next: ["$color.bg.layer-floating"],
72
+ alternative: ["$color.palette.gray-00"],
73
+ },
74
+ {
75
+ previous: "$semantic.color.paper-floating",
76
+ next: ["$color.bg.layer-floating"],
77
+ alternative: ["$color.palette.gray-00"],
78
+ },
79
+ {
80
+ previous: "$semantic.color.paper-contents",
81
+ next: ["$color.bg.layer-fill"],
82
+ alternative: ["$color.palette.gray-100"],
83
+ },
84
+ {
85
+ previous: "$semantic.color.paper-default",
86
+ next: ["$color.bg.layer-default"],
87
+ alternative: ["$color.palette.gray-00"],
88
+ },
89
+ {
90
+ previous: "$semantic.color.paper-background",
91
+ next: ["$color.bg.layer-basement"],
92
+ alternative: ["$color.palette.gray-200"],
93
+ },
94
+ {
95
+ previous: "$semantic.color.paper-accent",
96
+ next: ["$color.palette.carrot-100"],
97
+ },
98
+ {
99
+ previous: "$semantic.color.primary-hover",
100
+ next: ["$color.bg.brand-solid-pressed"],
101
+ alternative: ["$color.palette.carrot-700"],
102
+ },
103
+ {
104
+ previous: "$semantic.color.primary-pressed",
105
+ next: ["$color.bg.brand-solid-pressed"],
106
+ alternative: ["$color.palette.carrot-700"],
107
+ },
108
+ {
109
+ previous: "$semantic.color.primary-low-hover",
110
+ next: ["$color.palette.carrot-200"],
111
+ },
112
+ {
113
+ previous: "$semantic.color.primary-low-active",
114
+ next: ["$color.palette.carrot-100"],
115
+ },
116
+ {
117
+ previous: "$semantic.color.primary-low-pressed",
118
+ next: ["$color.palette.carrot-200"],
119
+ },
120
+ {
121
+ previous: "$semantic.color.gray-hover",
122
+ next: ["$color.bg.neutral-weak-pressed"],
123
+ alternative: ["$color.palette.gray-300"],
124
+ },
125
+ {
126
+ previous: "$semantic.color.gray-pressed",
127
+ next: ["$color.bg.neutral-weak-pressed"],
128
+ alternative: ["$color.palette.gray-300"],
129
+ },
130
+ {
131
+ previous: "$semantic.color.on-primary-overlay-50",
132
+ next: [],
133
+ description: "TBD",
134
+ },
135
+ {
136
+ previous: "$semantic.color.on-primary-overlay-200",
137
+ next: [],
138
+ description: "TBD",
139
+ },
140
+ {
141
+ previous: "$semantic.color.on-primary-low-overlay-50",
142
+ next: [],
143
+ description: "TBD",
144
+ },
145
+ {
146
+ previous: "$semantic.color.on-primary-low-overlay-100",
147
+ next: [],
148
+ description: "TBD",
149
+ },
150
+ {
151
+ previous: "$semantic.color.on-primary-low-overlay-200",
152
+ next: [],
153
+ description: "TBD",
154
+ },
155
+ {
156
+ previous: "$semantic.color.on-gray-overlay-50",
157
+ next: [],
158
+ description: "TBD",
159
+ },
160
+ {
161
+ previous: "$semantic.color.on-gray-overlay-100",
162
+ next: [],
163
+ description: "TBD",
164
+ },
165
+ {
166
+ previous: "$semantic.color.divider-1",
167
+ next: ["$color.stroke.on-image"],
168
+ alternative: ["$color.palette.static-black-alpha-50"],
169
+ },
170
+ {
171
+ previous: "$semantic.color.divider-2",
172
+ next: ["$color.stroke.neutral"],
173
+ alternative: ["$color.palette.gray-300"],
174
+ },
175
+ {
176
+ previous: "$semantic.color.divider-3",
177
+ next: ["$color.palette.gray-400"],
178
+ },
179
+ {
180
+ previous: "$semantic.color.accent",
181
+ next: ["$color.bg.informative-solid", "$color.fg.informative"],
182
+ alternative: ["$color.fg.informative-contrast", "$color.palette.blue-700"],
183
+ },
184
+ {
185
+ previous: "$semantic.color.ink-text",
186
+ next: ["$color.fg.neutral"],
187
+ alternative: ["$color.palette.gray-1000"],
188
+ },
189
+ {
190
+ previous: "$semantic.color.ink-text-low",
191
+ next: ["$color.fg.neutral-subtle"],
192
+ alternative: ["$color.palette.gray-700"],
193
+ },
194
+ {
195
+ previous: "$semantic.color.gray-active",
196
+ next: ["$color.fg.neutral-muted"],
197
+ alternative: ["$color.palette.gray-800"],
198
+ },
199
+ ];
200
+
201
+ export const scaleColorMappings = [
202
+ {
203
+ previous: "$scale.color.gray-00",
204
+ next: ["$color.palette.gray-00"],
205
+ },
206
+ {
207
+ previous: "$scale.color.gray-50",
208
+ next: ["$color.palette.gray-100"],
209
+ },
210
+ {
211
+ previous: "$scale.color.gray-100",
212
+ next: ["$color.palette.gray-200"],
213
+ },
214
+ {
215
+ previous: "$scale.color.gray-200",
216
+ next: ["$color.palette.gray-300"],
217
+ },
218
+ {
219
+ previous: "$scale.color.gray-300",
220
+ next: ["$color.palette.gray-400"],
221
+ },
222
+ {
223
+ previous: "$scale.color.gray-400",
224
+ next: ["$color.palette.gray-500"],
225
+ },
226
+ {
227
+ previous: "$scale.color.gray-500",
228
+ next: ["$color.palette.gray-600"],
229
+ },
230
+ {
231
+ previous: "$scale.color.gray-600",
232
+ next: ["$color.palette.gray-700"],
233
+ },
234
+ {
235
+ previous: "$scale.color.gray-700",
236
+ next: ["$color.palette.gray-800"],
237
+ },
238
+ {
239
+ previous: "$scale.color.gray-800",
240
+ next: ["$color.palette.gray-900"],
241
+ },
242
+ {
243
+ previous: "$scale.color.gray-900",
244
+ next: ["$color.palette.gray-1000"],
245
+ },
246
+ {
247
+ previous: "$scale.color.gray-alpha-50",
248
+ next: ["$color.palette.gray-200", "$color.stroke.on-image"],
249
+ },
250
+ {
251
+ previous: "$scale.color.gray-alpha-100",
252
+ next: ["$color.palette.gray-300"],
253
+ },
254
+ {
255
+ previous: "$scale.color.gray-alpha-200",
256
+ next: ["$color.palette.gray-500"],
257
+ },
258
+ {
259
+ previous: "$scale.color.gray-alpha-500",
260
+ next: ["$color.palette.gray-700"],
261
+ },
262
+ {
263
+ previous: "$scale.color.carrot-50",
264
+ next: ["$color.palette.carrot-100"],
265
+ },
266
+ {
267
+ previous: "$scale.color.carrot-100",
268
+ next: ["$color.palette.carrot-200"],
269
+ },
270
+ {
271
+ previous: "$scale.color.carrot-200",
272
+ next: ["$color.palette.carrot-300"],
273
+ },
274
+ {
275
+ previous: "$scale.color.carrot-300",
276
+ next: ["$color.palette.carrot-400"],
277
+ },
278
+ {
279
+ previous: "$scale.color.carrot-400",
280
+ next: ["$color.palette.carrot-500"],
281
+ },
282
+ {
283
+ previous: "$scale.color.carrot-500",
284
+ next: ["$color.palette.carrot-600"],
285
+ },
286
+ {
287
+ previous: "$scale.color.carrot-600",
288
+ next: ["$color.palette.carrot-600"],
289
+ },
290
+ {
291
+ previous: "$scale.color.carrot-700",
292
+ next: ["$color.palette.carrot-700"],
293
+ },
294
+ {
295
+ previous: "$scale.color.carrot-800",
296
+ next: ["$color.palette.carrot-700"],
297
+ },
298
+ {
299
+ previous: "$scale.color.carrot-900",
300
+ next: ["$color.palette.carrot-800"],
301
+ },
302
+ {
303
+ previous: "$scale.color.carrot-950",
304
+ next: ["$color.palette.carrot-800"],
305
+ },
306
+ {
307
+ previous: "$scale.color.carrot-alpha-50",
308
+ next: ["$color.palette.carrot-100"],
309
+ },
310
+ {
311
+ previous: "$scale.color.carrot-alpha-100",
312
+ next: ["$color.palette.carrot-200"],
313
+ },
314
+ {
315
+ previous: "$scale.color.carrot-alpha-200",
316
+ next: ["$color.palette.carrot-200"],
317
+ },
318
+ {
319
+ previous: "$scale.color.blue-50",
320
+ next: ["$color.palette.blue-100"],
321
+ },
322
+ {
323
+ previous: "$scale.color.blue-100",
324
+ next: ["$color.palette.blue-200"],
325
+ },
326
+ {
327
+ previous: "$scale.color.blue-200",
328
+ next: ["$color.palette.blue-300"],
329
+ },
330
+ {
331
+ previous: "$scale.color.blue-300",
332
+ next: ["$color.palette.blue-400"],
333
+ },
334
+ {
335
+ previous: "$scale.color.blue-400",
336
+ next: ["$color.palette.blue-400"],
337
+ },
338
+ {
339
+ previous: "$scale.color.blue-500",
340
+ next: ["$color.palette.blue-600"],
341
+ },
342
+ {
343
+ previous: "$scale.color.blue-600",
344
+ next: ["$color.palette.blue-600"],
345
+ },
346
+ {
347
+ previous: "$scale.color.blue-700",
348
+ next: ["$color.palette.blue-800"],
349
+ },
350
+ {
351
+ previous: "$scale.color.blue-800",
352
+ next: ["$color.palette.blue-900"],
353
+ },
354
+ {
355
+ previous: "$scale.color.blue-900",
356
+ next: ["$color.palette.blue-900"],
357
+ },
358
+ {
359
+ previous: "$scale.color.blue-950",
360
+ next: ["$color.palette.blue-1000"],
361
+ },
362
+ {
363
+ previous: "$scale.color.blue-alpha-50",
364
+ next: ["$color.palette.blue-100"],
365
+ },
366
+ {
367
+ previous: "$scale.color.blue-alpha-100",
368
+ next: ["$color.palette.blue-100"],
369
+ },
370
+ {
371
+ previous: "$scale.color.blue-alpha-200",
372
+ next: ["$color.palette.blue-200"],
373
+ },
374
+ {
375
+ previous: "$scale.color.red-50",
376
+ next: ["$color.palette.red-100"],
377
+ },
378
+ {
379
+ previous: "$scale.color.red-100",
380
+ next: ["$color.palette.red-200"],
381
+ },
382
+ {
383
+ previous: "$scale.color.red-200",
384
+ next: ["$color.palette.red-300"],
385
+ },
386
+ {
387
+ previous: "$scale.color.red-300",
388
+ next: ["$color.palette.red-400"],
389
+ },
390
+ {
391
+ previous: "$scale.color.red-400",
392
+ next: ["$color.palette.red-600"],
393
+ },
394
+ {
395
+ previous: "$scale.color.red-500",
396
+ next: ["$color.palette.red-700"],
397
+ },
398
+ {
399
+ previous: "$scale.color.red-600",
400
+ next: ["$color.palette.red-700"],
401
+ },
402
+ {
403
+ previous: "$scale.color.red-700",
404
+ next: ["$color.palette.red-800"],
405
+ },
406
+ {
407
+ previous: "$scale.color.red-800",
408
+ next: ["$color.palette.red-900"],
409
+ },
410
+ {
411
+ previous: "$scale.color.red-900",
412
+ next: ["$color.palette.red-900"],
413
+ },
414
+ {
415
+ previous: "$scale.color.red-950",
416
+ next: ["$color.palette.red-900"],
417
+ },
418
+ {
419
+ previous: "$scale.color.red-alpha-50",
420
+ next: ["$color.palette.red-100"],
421
+ },
422
+ {
423
+ previous: "$scale.color.red-alpha-100",
424
+ next: ["$color.palette.red-200"],
425
+ },
426
+ {
427
+ previous: "$scale.color.red-alpha-200",
428
+ next: ["$color.palette.red-300"],
429
+ },
430
+ {
431
+ previous: "$scale.color.green-50",
432
+ next: ["$color.palette.green-100"],
433
+ },
434
+ {
435
+ previous: "$scale.color.green-100",
436
+ next: ["$color.palette.green-200"],
437
+ },
438
+ {
439
+ previous: "$scale.color.green-200",
440
+ next: ["$color.palette.green-300"],
441
+ },
442
+ {
443
+ previous: "$scale.color.green-300",
444
+ next: ["$color.palette.green-400"],
445
+ },
446
+ {
447
+ previous: "$scale.color.green-400",
448
+ next: ["$color.palette.green-500"],
449
+ },
450
+ {
451
+ previous: "$scale.color.green-500",
452
+ next: ["$color.palette.green-600"],
453
+ },
454
+ {
455
+ previous: "$scale.color.green-600",
456
+ next: ["$color.palette.green-700"],
457
+ },
458
+ {
459
+ previous: "$scale.color.green-700",
460
+ next: ["$color.palette.green-800"],
461
+ },
462
+ {
463
+ previous: "$scale.color.green-800",
464
+ next: ["$color.palette.green-900"],
465
+ },
466
+ {
467
+ previous: "$scale.color.green-900",
468
+ next: ["$color.palette.green-900"],
469
+ },
470
+ {
471
+ previous: "$scale.color.green-950",
472
+ next: ["$color.palette.green-900"],
473
+ },
474
+ {
475
+ previous: "$scale.color.green-alpha-50",
476
+ next: ["$color.palette.green-100"],
477
+ },
478
+ {
479
+ previous: "$scale.color.green-alpha-100",
480
+ next: ["$color.palette.green-200"],
481
+ },
482
+ {
483
+ previous: "$scale.color.green-alpha-200",
484
+ next: ["$color.palette.green-200"],
485
+ },
486
+ {
487
+ previous: "$scale.color.yellow-50",
488
+ next: ["$color.palette.yellow-100"],
489
+ },
490
+ {
491
+ previous: "$scale.color.yellow-100",
492
+ next: ["$color.palette.yellow-200"],
493
+ },
494
+ {
495
+ previous: "$scale.color.yellow-200",
496
+ next: ["$color.palette.yellow-300"],
497
+ },
498
+ {
499
+ previous: "$scale.color.yellow-300",
500
+ next: ["$color.palette.yellow-400"],
501
+ },
502
+ {
503
+ previous: "$scale.color.yellow-400",
504
+ next: ["$color.palette.yellow-500"],
505
+ },
506
+ {
507
+ previous: "$scale.color.yellow-500",
508
+ next: ["$color.palette.yellow-700"],
509
+ },
510
+ {
511
+ previous: "$scale.color.yellow-600",
512
+ next: ["$color.palette.yellow-700"],
513
+ },
514
+ {
515
+ previous: "$scale.color.yellow-700",
516
+ next: ["$color.palette.yellow-800"],
517
+ },
518
+ {
519
+ previous: "$scale.color.yellow-800",
520
+ next: ["$color.palette.yellow-800"],
521
+ },
522
+ {
523
+ previous: "$scale.color.yellow-900",
524
+ next: ["$color.palette.yellow-900"],
525
+ },
526
+ {
527
+ previous: "$scale.color.yellow-950",
528
+ next: ["$color.palette.yellow-900"],
529
+ },
530
+ {
531
+ previous: "$scale.color.yellow-alpha-50",
532
+ next: ["$color.palette.yellow-100"],
533
+ },
534
+ {
535
+ previous: "$scale.color.yellow-alpha-100",
536
+ next: ["$color.palette.yellow-100"],
537
+ },
538
+ {
539
+ previous: "$scale.color.yellow-alpha-200",
540
+ next: ["$color.palette.yellow-100"],
541
+ },
542
+ {
543
+ previous: "$scale.color.purple-50",
544
+ next: ["$color.palette.purple-100"],
545
+ },
546
+ {
547
+ previous: "$scale.color.purple-100",
548
+ next: ["$color.palette.purple-300"],
549
+ },
550
+ {
551
+ previous: "$scale.color.purple-200",
552
+ next: ["$color.palette.purple-400"],
553
+ },
554
+ {
555
+ previous: "$scale.color.purple-300",
556
+ next: ["$color.palette.purple-400"],
557
+ },
558
+ {
559
+ previous: "$scale.color.purple-400",
560
+ next: ["$color.palette.purple-500"],
561
+ },
562
+ {
563
+ previous: "$scale.color.purple-500",
564
+ next: ["$color.palette.purple-600"],
565
+ },
566
+ {
567
+ previous: "$scale.color.purple-600",
568
+ next: ["$color.palette.purple-700"],
569
+ },
570
+ {
571
+ previous: "$scale.color.purple-700",
572
+ next: ["$color.palette.purple-800"],
573
+ },
574
+ {
575
+ previous: "$scale.color.purple-800",
576
+ next: ["$color.palette.purple-900"],
577
+ },
578
+ {
579
+ previous: "$scale.color.purple-900",
580
+ next: ["$color.palette.purple-900"],
581
+ },
582
+ {
583
+ previous: "$scale.color.purple-950",
584
+ next: ["$color.palette.purple-1000"],
585
+ },
586
+ ];
587
+
588
+ export const staticColorMappings = [
589
+ {
590
+ previous: "$static.color.static-black",
591
+ next: ["$color.palette.static-black"],
592
+ },
593
+ {
594
+ previous: "$static.color.static-white",
595
+ next: ["$color.palette.static-white"],
596
+ },
597
+ {
598
+ previous: "$static.color.static-gray-900",
599
+ next: ["$color.palette.gray-1000"],
600
+ },
601
+ {
602
+ previous: "$static.color.static-carrot-50",
603
+ next: ["$color.palette.carrot-100"],
604
+ },
605
+ {
606
+ previous: "$static.color.static-carrot-800",
607
+ next: ["$color.palette.carrot-700"],
608
+ },
609
+ {
610
+ previous: "$static.color.static-green-50",
611
+ next: ["$color.palette.green-100"],
612
+ },
613
+ {
614
+ previous: "$static.color.static-green-800",
615
+ next: ["$color.palette.green-700"],
616
+ },
617
+ {
618
+ previous: "$static.color.static-yellow-50",
619
+ next: ["$color.palette.yellow-100"],
620
+ },
621
+ {
622
+ previous: "$static.color.static-yellow-800",
623
+ next: ["$color.palette.yellow-800"],
624
+ },
625
+ {
626
+ previous: "$static.color.static-red-50",
627
+ next: ["$color.palette.red-100"],
628
+ },
629
+ {
630
+ previous: "$static.color.static-red-800",
631
+ next: ["$color.palette.red-700"],
632
+ },
633
+ {
634
+ previous: "$static.color.static-blue-50",
635
+ next: ["$color.palette.blue-100"],
636
+ },
637
+ {
638
+ previous: "$static.color.static-blue-800",
639
+ next: ["$color.palette.blue-700"],
640
+ },
641
+ {
642
+ previous: "$static.color.static-black-alpha-200",
643
+ next: ["$color.palette.static-black-alpha-200"],
644
+ },
645
+ {
646
+ previous: "$static.color.static-black-alpha-500",
647
+ next: ["$color.palette.static-black-alpha-500"],
648
+ },
649
+ {
650
+ previous: "$static.color.static-white-alpha-50",
651
+ next: [],
652
+ description: "deleted",
653
+ },
654
+ {
655
+ previous: "$static.color.static-white-alpha-200",
656
+ next: ["$color.palette.static-white-alpha-200"],
657
+ },
658
+ ];
659
+
660
+ export const colorMappings = [
661
+ ...semanticColorMappings,
662
+ ...scaleColorMappings,
663
+ ...staticColorMappings,
664
+ ];
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export interface FoundationTokenMapping {
2
+ previous: string;
3
+ next: string[];
4
+ description?: string;
5
+ alternative?: string[];
6
+ }
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@seed-design/migration-index",
3
+ "version": "0.0.1-rc.0",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/daangn/seed-design.git",
7
+ "directory": "packages/migration-index"
8
+ },
9
+ "main": "./index.js",
10
+ "types": "./index.d.ts",
11
+ "files": [
12
+ "*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts"
17
+ },
18
+ "./color": {
19
+ "types": "./color.d.ts",
20
+ "import": "./color.mjs"
21
+ },
22
+ "./typography": {
23
+ "types": "./typography.d.ts",
24
+ "import": "./typography.mjs"
25
+ }
26
+ },
27
+ "publishConfig": {
28
+ "access": "public"
29
+ }
30
+ }
@@ -0,0 +1,3 @@
1
+ import type { FoundationTokenMapping } from "./index";
2
+
3
+ export declare const typographyMappings: FoundationTokenMapping[];
package/typography.mjs ADDED
@@ -0,0 +1,186 @@
1
+ export const typographyMappings = [
2
+ {
3
+ previous: "$semantic.typography.h1",
4
+ next: [],
5
+ description: "Deprecated",
6
+ },
7
+ {
8
+ previous: "$semantic.typography.h2",
9
+ next: [],
10
+ description: "Deprecated",
11
+ },
12
+ {
13
+ previous: "$semantic.typography.h3",
14
+ next: [],
15
+ description: "Deprecated",
16
+ },
17
+ {
18
+ previous: "$semantic.typography.h4",
19
+ next: ["t10Bold"],
20
+ description: "줄간격 -0.1px",
21
+ },
22
+ {
23
+ previous: "$semantic.typography.title1Bold",
24
+ next: ["t9Bold"],
25
+ description: "줄간격 -0.4px",
26
+ },
27
+ {
28
+ previous: "$semantic.typography.title1Regular",
29
+ next: [],
30
+ },
31
+ {
32
+ previous: "$semantic.typography.title2Bold",
33
+ next: ["t7Bold"],
34
+ },
35
+ {
36
+ previous: "$semantic.typography.title2Regular",
37
+ next: [],
38
+ },
39
+ {
40
+ previous: "$semantic.typography.title3Bold",
41
+ next: ["t6Bold"],
42
+ description: "줄간격 -0.3px",
43
+ },
44
+ {
45
+ previous: "$semantic.typography.title3Regular",
46
+ next: [],
47
+ },
48
+ {
49
+ previous: "$semantic.typography.subtitle1Bold",
50
+ next: ["t5Bold"],
51
+ description: "줄간격 +0.4px",
52
+ },
53
+ {
54
+ previous: "$semantic.typography.subtitle1Regular",
55
+ next: ["t5Regular"],
56
+ description: "줄간격 +0.4px",
57
+ },
58
+ {
59
+ previous: "$semantic.typography.subtitle2Bold",
60
+ next: ["t4Bold"],
61
+ description: "줄간격 +0.1px",
62
+ },
63
+ {
64
+ previous: "$semantic.typography.subtitle2Regular",
65
+ next: ["t4Regular"],
66
+ description: "줄간격 +0.1px",
67
+ },
68
+ {
69
+ previous: "$semantic.typography.bodyL1Bold",
70
+ next: ["t5Bold"],
71
+ description: "줄간격 -2px",
72
+ },
73
+ {
74
+ previous: "$semantic.typography.bodyL1Regular",
75
+ next: ["articleBody"],
76
+ },
77
+ {
78
+ previous: "$semantic.typography.bodyL2Bold",
79
+ next: ["t4Bold"],
80
+ description: "줄간격 -2px",
81
+ },
82
+ {
83
+ previous: "$semantic.typography.bodyL2Regular",
84
+ next: [],
85
+ description: "TBD",
86
+ },
87
+ {
88
+ previous: "$semantic.typography.bodyM1Bold",
89
+ next: ["t5Bold"],
90
+ description: "줄간격 +0.4px",
91
+ },
92
+ {
93
+ previous: "$semantic.typography.bodyM1Regular",
94
+ next: ["t5Regular"],
95
+ description: "줄간격 +0.4px",
96
+ },
97
+ {
98
+ previous: "$semantic.typography.bodyM2Bold",
99
+ next: ["t4Bold"],
100
+ description: "줄간격 +0.1px",
101
+ },
102
+ {
103
+ previous: "$semantic.typography.bodyM2Regular",
104
+ next: ["t4Regular"],
105
+ description: "줄간격 +0.1px",
106
+ },
107
+ {
108
+ previous: "$semantic.typography.caption1Bold",
109
+ next: ["t3Bold"],
110
+ description: "줄간격 -1.5px",
111
+ },
112
+ {
113
+ previous: "$semantic.typography.caption1Regular",
114
+ next: ["t3Regular"],
115
+ description: "줄간격 -1.5px",
116
+ },
117
+ {
118
+ previous: "$semantic.typography.caption2Bold",
119
+ next: ["t2Bold"],
120
+ description: "줄간격 -0.2px",
121
+ },
122
+ {
123
+ previous: "$semantic.typography.caption2Regular",
124
+ next: ["t2Regular"],
125
+ description: "줄간격 -0.2px",
126
+ },
127
+ {
128
+ previous: "$semantic.typography.label1Bold",
129
+ next: ["t6Bold"],
130
+ description: "줄간격 -0.3px",
131
+ },
132
+ {
133
+ previous: "$semantic.typography.label1Regular",
134
+ next: [],
135
+ },
136
+ {
137
+ previous: "$semantic.typography.label2Bold",
138
+ next: ["t5Bold"],
139
+ description: "줄간격 +0.4px",
140
+ },
141
+ {
142
+ previous: "$semantic.typography.label2Regular",
143
+ next: ["t5Regular"],
144
+ description: "줄간격 +0.4px",
145
+ },
146
+ {
147
+ previous: "$semantic.typography.label3Bold",
148
+ next: ["t4Bold"],
149
+ description: "줄간격 +0.1px",
150
+ },
151
+ {
152
+ previous: "$semantic.typography.label3Regular",
153
+ next: ["t4Regular"],
154
+ description: "줄간격 +0.1px",
155
+ },
156
+ {
157
+ previous: "$semantic.typography.label4Bold",
158
+ next: ["t2Bold"],
159
+ description: "줄간격 -0.2px",
160
+ },
161
+ {
162
+ previous: "$semantic.typography.label4Regular",
163
+ next: ["t2Regular"],
164
+ description: "줄간격 -0.2px",
165
+ },
166
+ {
167
+ previous: "$semantic.typography.label5Bold",
168
+ next: ["t1Bold"],
169
+ description: "줄간격 +0.1px",
170
+ },
171
+ {
172
+ previous: "$semantic.typography.label5Regular",
173
+ next: ["t1Regular"],
174
+ description: "줄간격 +0.1px",
175
+ },
176
+ {
177
+ previous: "$semantic.typography.label6Bold",
178
+ next: [],
179
+ description: "Deprecated",
180
+ },
181
+ {
182
+ previous: "$semantic.typography.label6Regular",
183
+ next: [],
184
+ description: "Deprecated",
185
+ },
186
+ ];