@esds-sangam/tokens 1.0.4 → 1.1.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/dist/index.d.ts CHANGED
@@ -1,28 +1,38 @@
1
- var blue = {
2
- "100": "#E6F2FC",
3
- "200": "#C2DFF8",
4
- "300": "#91C6F3",
5
- "400": "#5EABED",
6
- "500": "#2E92E7",
7
- "600": "#007AE2",
8
- "700": "#0068C0",
9
- "800": "#0057A0",
10
- "900": "#004681",
11
- "1000": "#003766",
12
- "1100": "#07294B"
1
+ var orange = {
2
+ "100": "#FDF1E9",
3
+ "200": "#F8D5BA",
4
+ "300": "#F4C099",
5
+ "400": "#F0A46B",
6
+ "500": "#ED924E",
7
+ "600": "#E87722",
8
+ "700": "#D36C1F",
9
+ "800": "#A55418",
10
+ "900": "#804113",
11
+ "1000": "#61320E"
12
+ };
13
+ var lightBlue = {
14
+ "100": "#E7F6FD",
15
+ "200": "#B4E3F8",
16
+ "300": "#90D6F5",
17
+ "400": "#5EC3F0",
18
+ "500": "#3EB7ED",
19
+ "600": "#0EA5E9",
20
+ "700": "#0D96D4",
21
+ "800": "#0A75A5",
22
+ "900": "#085B80",
23
+ "1000": "#064562"
13
24
  };
14
25
  var green = {
15
- "100": "#F5FFFB",
16
- "200": "#E6F6EF",
17
- "300": "#B2E3CC",
18
- "400": "#8CD6B4",
19
- "500": "#58C391",
20
- "600": "#38B87C",
21
- "700": "#06A65B",
22
- "800": "#059753",
23
- "900": "#047641",
24
- "1000": "#035B32",
25
- "1100": "#034626"
26
+ "100": "#F5FFF9",
27
+ "200": "#E6F6ED",
28
+ "300": "#B2E3C7",
29
+ "400": "#8CD6AC",
30
+ "500": "#58C386",
31
+ "600": "#38B86F",
32
+ "700": "#06A64B",
33
+ "800": "#059744",
34
+ "900": "#047635",
35
+ "1000": "#035B29"
26
36
  };
27
37
  var red = {
28
38
  "100": "#FFF6F5",
@@ -34,10 +44,9 @@ var red = {
34
44
  "700": "#D91608",
35
45
  "800": "#C51407",
36
46
  "900": "#9A1006",
37
- "1000": "#770C04",
38
- "1100": "#5B0903"
47
+ "1000": "#770C04"
39
48
  };
40
- var orange = {
49
+ var yellow = {
41
50
  "100": "#FFFBF5",
42
51
  "200": "#FFF6E7",
43
52
  "300": "#FEE4B3",
@@ -47,8 +56,7 @@ var orange = {
47
56
  "700": "#FBA70B",
48
57
  "800": "#E4980A",
49
58
  "900": "#B27708",
50
- "1000": "#8A5C06",
51
- "1100": "#694605"
59
+ "1000": "#8A5C06"
52
60
  };
53
61
  var neutral = {
54
62
  "50": "#FFFFFF",
@@ -64,40 +72,34 @@ var neutral = {
64
72
  "1000": "#1E1E1E",
65
73
  "1100": "#111111"
66
74
  };
67
- var pink = {
68
- "100": "#FEF1F6",
69
- "200": "#FEE5EF",
70
- "300": "#FECCDF",
71
- "400": "#FFA2C5",
72
- "500": "#FE83AE",
73
- "600": "#F83C78",
74
- "700": "#E91951",
75
- "800": "#CA0C3A",
76
- "900": "#A70D30",
77
- "1000": "#8B102C",
78
- "1100": "#550215"
75
+ var navy = {
76
+ "500": "#5D81C3",
77
+ "700": "#364766",
78
+ "800": "#7A7A7A",
79
+ "900": "#1A2B4A"
79
80
  };
80
- var purple = {
81
- "100": "#EDEEFF",
82
- "200": "#DEE0FF",
83
- "300": "#C4C5FF",
84
- "400": "#A1A0FF",
85
- "500": "#9185FF",
86
- "600": "#765BF9",
87
- "700": "#693DEE",
88
- "800": "#5B2FD3",
89
- "900": "#4A29AA",
90
- "1000": "#3E2986",
91
- "1100": "#26184E"
81
+ var ivory = {
82
+ "100": "#FFFEFE",
83
+ "200": "#FDFDFB",
84
+ "300": "#FDFCF9",
85
+ "400": "#FCFBF6",
86
+ "500": "#FBFAF8",
87
+ "600": "#F7F7F5",
88
+ "700": "#F0EFEE",
89
+ "800": "#E4E4E2",
90
+ "900": "#B2B1AE",
91
+ "1000": "#8A8986",
92
+ "1100": "#550215"
92
93
  };
93
94
  var colors = {
94
- blue: blue,
95
+ orange: orange,
96
+ lightBlue: lightBlue,
95
97
  green: green,
96
98
  red: red,
97
- orange: orange,
99
+ yellow: yellow,
98
100
  neutral: neutral,
99
- pink: pink,
100
- purple: purple
101
+ navy: navy,
102
+ ivory: ivory
101
103
  };
102
104
 
103
105
  var xs$2 = "0.25rem";
@@ -149,102 +151,53 @@ var fontFamily = {
149
151
  ]
150
152
  };
151
153
  var fontSize = {
152
- xs: [
153
- "0.75rem",
154
- {
155
- lineHeight: "1rem",
156
- comment: "12px - B4 (Figma)"
157
- }
158
- ],
159
- "2xs": [
160
- "0.8125rem",
161
- {
162
- lineHeight: "1.125rem",
163
- letterSpacing: "-0.01em",
164
- comment: "13px - B3 (Figma) - RESTRICTED: See TYPOGRAPHY_2XS_USAGE.md"
165
- }
166
- ],
167
- "3xs": [
168
- "0.625rem",
169
- {
170
- lineHeight: "1rem",
171
- comment: "10px - Avatar small/medium (Figma)"
172
- }
173
- ],
174
- sm: [
175
- "0.875rem",
176
- {
177
- lineHeight: "1.25rem",
178
- comment: "14px - B2 (Figma)"
179
- }
180
- ],
181
- base: [
182
- "1rem",
183
- {
184
- lineHeight: "1.5rem",
185
- comment: "16px - B1 (Figma)"
186
- }
187
- ],
188
- lg: [
189
- "1.125rem",
190
- {
191
- lineHeight: "1.75rem"
192
- }
193
- ],
194
- xl: [
195
- "1.25rem",
196
- {
197
- lineHeight: "1.75rem",
198
- comment: "20px - H2 (Figma)"
199
- }
200
- ],
201
154
  "2xl": [
202
155
  "1.5rem",
203
156
  {
204
157
  lineHeight: "2rem",
205
- comment: "24px - H1 (Figma)"
206
- }
207
- ],
208
- "3xl": [
209
- "1.875rem",
210
- {
211
- lineHeight: "2.25rem"
158
+ comment: "H1 (Figma Desktop)"
212
159
  }
213
160
  ],
214
- "4xl": [
215
- "2.25rem",
161
+ xl: [
162
+ "1.25rem",
216
163
  {
217
- lineHeight: "2.5rem"
164
+ lineHeight: "1.75rem",
165
+ comment: "H2 (Figma Desktop)"
218
166
  }
219
167
  ],
220
- "5xl": [
221
- "3rem",
168
+ base: [
169
+ "1rem",
222
170
  {
223
- lineHeight: "1"
171
+ lineHeight: "1.5rem",
172
+ comment: "B1 (Figma Desktop)"
224
173
  }
225
174
  ],
226
- "6xl": [
227
- "3.75rem",
175
+ sm: [
176
+ "0.875rem",
228
177
  {
229
- lineHeight: "1"
178
+ lineHeight: "1.5rem",
179
+ comment: "B2 (Figma Desktop)"
230
180
  }
231
181
  ],
232
- "7xl": [
233
- "4.5rem",
182
+ "2xs": [
183
+ "0.8125rem",
234
184
  {
235
- lineHeight: "1"
185
+ lineHeight: "1.125rem",
186
+ comment: "B3 (Figma Desktop)"
236
187
  }
237
188
  ],
238
- "8xl": [
239
- "6rem",
189
+ xs: [
190
+ "0.75rem",
240
191
  {
241
- lineHeight: "1"
192
+ lineHeight: "1rem",
193
+ comment: "B4 (Figma Desktop)"
242
194
  }
243
195
  ],
244
- "9xl": [
245
- "8rem",
196
+ "3xs": [
197
+ "0.625rem",
246
198
  {
247
- lineHeight: "1"
199
+ lineHeight: "1rem",
200
+ comment: "B4 (Figma Mobile)"
248
201
  }
249
202
  ]
250
203
  };
@@ -281,12 +234,94 @@ var lineHeight = {
281
234
  lg: "1.75rem",
282
235
  xl: "2rem"
283
236
  };
237
+ var responsive = {
238
+ desktop: {
239
+ fontFamily: "Inter",
240
+ heading: {
241
+ h1: 24,
242
+ h2: 20
243
+ },
244
+ body: {
245
+ b1: 16,
246
+ b2: 14,
247
+ b3: 13,
248
+ b4: 12
249
+ },
250
+ lineHeight: {
251
+ xl: 32,
252
+ lg: 28,
253
+ m: 24,
254
+ s: 20,
255
+ xs: 18,
256
+ "2xs": 16
257
+ },
258
+ fontWeight: {
259
+ regular: "400",
260
+ medium: "500",
261
+ semibold: "600",
262
+ bold: "700"
263
+ }
264
+ },
265
+ tablet: {
266
+ fontFamily: "Inter",
267
+ heading: {
268
+ h1: 20,
269
+ h2: 18
270
+ },
271
+ body: {
272
+ b1: 16,
273
+ b2: 14,
274
+ b4: 12
275
+ },
276
+ lineHeight: {
277
+ xl: 28,
278
+ lg: 24,
279
+ m: 22,
280
+ s: 20,
281
+ xs: 20,
282
+ "2xs": 16
283
+ },
284
+ fontWeight: {
285
+ regular: "400",
286
+ medium: "500",
287
+ semibold: "600",
288
+ bold: "700"
289
+ }
290
+ },
291
+ mobile: {
292
+ fontFamily: "Inter",
293
+ heading: {
294
+ h1: 18,
295
+ h2: 16
296
+ },
297
+ body: {
298
+ b1: 14,
299
+ b2: 12,
300
+ b4: 10
301
+ },
302
+ lineHeight: {
303
+ xl: 24,
304
+ lg: 22,
305
+ m: 20,
306
+ s: 18,
307
+ xs: 18,
308
+ "2xs": 16
309
+ },
310
+ fontWeight: {
311
+ regular: "400",
312
+ medium: "500",
313
+ semibold: "600",
314
+ bold: "700"
315
+ }
316
+ }
317
+ };
284
318
  var typography = {
285
319
  fontFamily: fontFamily,
286
320
  fontSize: fontSize,
287
321
  fontWeight: fontWeight,
288
322
  letterSpacing: letterSpacing,
289
- lineHeight: lineHeight
323
+ lineHeight: lineHeight,
324
+ responsive: responsive
290
325
  };
291
326
 
292
327
  var none = "0px";
@@ -447,7 +482,7 @@ declare const semanticColorsResolved: Record<string, Record<string, Record<strin
447
482
  declare const semanticColors: Record<string, unknown>;
448
483
  declare const tokens: {
449
484
  colors: {
450
- blue: {
485
+ orange: {
451
486
  "100": string;
452
487
  "200": string;
453
488
  "300": string;
@@ -458,9 +493,8 @@ declare const tokens: {
458
493
  "800": string;
459
494
  "900": string;
460
495
  "1000": string;
461
- "1100": string;
462
496
  };
463
- green: {
497
+ lightBlue: {
464
498
  "100": string;
465
499
  "200": string;
466
500
  "300": string;
@@ -471,9 +505,8 @@ declare const tokens: {
471
505
  "800": string;
472
506
  "900": string;
473
507
  "1000": string;
474
- "1100": string;
475
508
  };
476
- red: {
509
+ green: {
477
510
  "100": string;
478
511
  "200": string;
479
512
  "300": string;
@@ -484,9 +517,8 @@ declare const tokens: {
484
517
  "800": string;
485
518
  "900": string;
486
519
  "1000": string;
487
- "1100": string;
488
520
  };
489
- orange: {
521
+ red: {
490
522
  "100": string;
491
523
  "200": string;
492
524
  "300": string;
@@ -497,10 +529,8 @@ declare const tokens: {
497
529
  "800": string;
498
530
  "900": string;
499
531
  "1000": string;
500
- "1100": string;
501
532
  };
502
- neutral: {
503
- "50": string;
533
+ yellow: {
504
534
  "100": string;
505
535
  "200": string;
506
536
  "300": string;
@@ -511,9 +541,9 @@ declare const tokens: {
511
541
  "800": string;
512
542
  "900": string;
513
543
  "1000": string;
514
- "1100": string;
515
544
  };
516
- pink: {
545
+ neutral: {
546
+ "50": string;
517
547
  "100": string;
518
548
  "200": string;
519
549
  "300": string;
@@ -526,7 +556,13 @@ declare const tokens: {
526
556
  "1000": string;
527
557
  "1100": string;
528
558
  };
529
- purple: {
559
+ navy: {
560
+ "500": string;
561
+ "700": string;
562
+ "800": string;
563
+ "900": string;
564
+ };
565
+ ivory: {
530
566
  "100": string;
531
567
  "200": string;
532
568
  "300": string;
@@ -564,16 +600,15 @@ declare const tokens: {
564
600
  mono: string[];
565
601
  };
566
602
  fontSize: {
567
- xs: (string | {
603
+ "2xl": (string | {
568
604
  lineHeight: string;
569
605
  comment: string;
570
606
  })[];
571
- "2xs": (string | {
607
+ xl: (string | {
572
608
  lineHeight: string;
573
- letterSpacing: string;
574
609
  comment: string;
575
610
  })[];
576
- "3xs": (string | {
611
+ base: (string | {
577
612
  lineHeight: string;
578
613
  comment: string;
579
614
  })[];
@@ -581,42 +616,18 @@ declare const tokens: {
581
616
  lineHeight: string;
582
617
  comment: string;
583
618
  })[];
584
- base: (string | {
619
+ "2xs": (string | {
585
620
  lineHeight: string;
586
621
  comment: string;
587
622
  })[];
588
- lg: (string | {
589
- lineHeight: string;
590
- })[];
591
- xl: (string | {
623
+ xs: (string | {
592
624
  lineHeight: string;
593
625
  comment: string;
594
626
  })[];
595
- "2xl": (string | {
627
+ "3xs": (string | {
596
628
  lineHeight: string;
597
629
  comment: string;
598
630
  })[];
599
- "3xl": (string | {
600
- lineHeight: string;
601
- })[];
602
- "4xl": (string | {
603
- lineHeight: string;
604
- })[];
605
- "5xl": (string | {
606
- lineHeight: string;
607
- })[];
608
- "6xl": (string | {
609
- lineHeight: string;
610
- })[];
611
- "7xl": (string | {
612
- lineHeight: string;
613
- })[];
614
- "8xl": (string | {
615
- lineHeight: string;
616
- })[];
617
- "9xl": (string | {
618
- lineHeight: string;
619
- })[];
620
631
  };
621
632
  fontWeight: {
622
633
  thin: string;
@@ -651,6 +662,87 @@ declare const tokens: {
651
662
  lg: string;
652
663
  xl: string;
653
664
  };
665
+ responsive: {
666
+ desktop: {
667
+ fontFamily: string;
668
+ heading: {
669
+ h1: number;
670
+ h2: number;
671
+ };
672
+ body: {
673
+ b1: number;
674
+ b2: number;
675
+ b3: number;
676
+ b4: number;
677
+ };
678
+ lineHeight: {
679
+ xl: number;
680
+ lg: number;
681
+ m: number;
682
+ s: number;
683
+ xs: number;
684
+ "2xs": number;
685
+ };
686
+ fontWeight: {
687
+ regular: string;
688
+ medium: string;
689
+ semibold: string;
690
+ bold: string;
691
+ };
692
+ };
693
+ tablet: {
694
+ fontFamily: string;
695
+ heading: {
696
+ h1: number;
697
+ h2: number;
698
+ };
699
+ body: {
700
+ b1: number;
701
+ b2: number;
702
+ b4: number;
703
+ };
704
+ lineHeight: {
705
+ xl: number;
706
+ lg: number;
707
+ m: number;
708
+ s: number;
709
+ xs: number;
710
+ "2xs": number;
711
+ };
712
+ fontWeight: {
713
+ regular: string;
714
+ medium: string;
715
+ semibold: string;
716
+ bold: string;
717
+ };
718
+ };
719
+ mobile: {
720
+ fontFamily: string;
721
+ heading: {
722
+ h1: number;
723
+ h2: number;
724
+ };
725
+ body: {
726
+ b1: number;
727
+ b2: number;
728
+ b4: number;
729
+ };
730
+ lineHeight: {
731
+ xl: number;
732
+ lg: number;
733
+ m: number;
734
+ s: number;
735
+ xs: number;
736
+ "2xs": number;
737
+ };
738
+ fontWeight: {
739
+ regular: string;
740
+ medium: string;
741
+ semibold: string;
742
+ bold: string;
743
+ };
744
+ };
745
+ };
654
746
  };
655
747
  radius: {
656
748
  none: string;