@daikin-oss/dds-tokens 0.2.1 → 0.3.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/css/aaf/Dark/variables.css +17 -88
  3. package/build/css/aaf/Light/variables.css +17 -88
  4. package/build/css/daikin/Dark/variables.css +21 -111
  5. package/build/css/daikin/Light/variables.css +17 -107
  6. package/build/js/aaf/Dark/variables.cjs +16 -87
  7. package/build/js/aaf/Dark/variables.d.cts +16 -107
  8. package/build/js/aaf/Dark/variables.d.ts +16 -107
  9. package/build/js/aaf/Dark/variables.js +17 -88
  10. package/build/js/aaf/Light/variables.cjs +16 -87
  11. package/build/js/aaf/Light/variables.d.cts +16 -107
  12. package/build/js/aaf/Light/variables.d.ts +16 -107
  13. package/build/js/aaf/Light/variables.js +17 -88
  14. package/build/js/daikin/Dark/variables.cjs +20 -110
  15. package/build/js/daikin/Dark/variables.d.cts +16 -127
  16. package/build/js/daikin/Dark/variables.d.ts +16 -127
  17. package/build/js/daikin/Dark/variables.js +21 -111
  18. package/build/js/daikin/Light/variables.cjs +16 -106
  19. package/build/js/daikin/Light/variables.d.cts +16 -127
  20. package/build/js/daikin/Light/variables.d.ts +16 -127
  21. package/build/js/daikin/Light/variables.js +17 -107
  22. package/build/json/aaf/Dark/tokens.json +36 -320
  23. package/build/json/aaf/Light/tokens.json +36 -320
  24. package/build/json/daikin/Dark/tokens.json +40 -400
  25. package/build/json/daikin/Light/tokens.json +36 -396
  26. package/build/scss/aaf/Dark/_mixins.scss +17 -88
  27. package/build/scss/aaf/Light/_mixins.scss +17 -88
  28. package/build/scss/daikin/Dark/_mixins.scss +21 -111
  29. package/build/scss/daikin/Light/_mixins.scss +17 -107
  30. package/package.json +1 -1
  31. package/themes/aaf/dark/component.json +1 -113
  32. package/themes/aaf/dark/system.json +1 -49
  33. package/themes/aaf/light/component.json +1 -113
  34. package/themes/aaf/light/system.json +1 -49
  35. package/themes/component.json +1 -184
  36. package/themes/dkn/dark/component.json +0 -237
  37. package/themes/dkn/dark/system.json +4 -77
  38. package/themes/dkn/light/component.json +0 -237
  39. package/themes/dkn/light/system.json +0 -73
  40. package/themes/reference.json +131 -200
  41. package/themes/system.json +1 -31
  42. package/build/css/aaf/Dark/buttons.css +0 -22
  43. package/build/css/aaf/Light/buttons.css +0 -22
  44. package/build/css/daikin/Dark/buttons.css +0 -22
  45. package/build/css/daikin/Light/buttons.css +0 -22
@@ -1,241 +1,4 @@
1
1
  {
2
- "container": {
3
- "color": {
4
- "background": {
5
- "value": "{color.background.component}",
6
- "type": "color"
7
- },
8
- "text": {
9
- "header": {
10
- "value": "{color.text.default}",
11
- "type": "color"
12
- },
13
- "body": {
14
- "value": "{color.text.default-sub}",
15
- "type": "color"
16
- }
17
- }
18
- }
19
- },
20
- "card": {
21
- "shadow": {
22
- "value": "{shadow.black}",
23
- "type": "boxShadow"
24
- },
25
- "color": {
26
- "background": {
27
- "value": "{container.color.background}",
28
- "type": "color"
29
- }
30
- },
31
- "border": {
32
- "hover": {
33
- "value": {
34
- "color": "#BFBFBF",
35
- "width": "2",
36
- "style": "solid"
37
- },
38
- "type": "border"
39
- },
40
- "alert": {
41
- "value": {
42
- "color": "{color.feedback.negative}",
43
- "width": "2",
44
- "style": "solid"
45
- },
46
- "type": "border"
47
- },
48
- "underline": {
49
- "value": {
50
- "color": "{color.blue-gray.20}",
51
- "width": "1",
52
- "style": "solid"
53
- },
54
- "type": "border"
55
- }
56
- }
57
- },
58
- "notification": {
59
- "shadow": {
60
- "value": "{shadow.black}",
61
- "type": "boxShadow"
62
- },
63
- "color": {
64
- "background": {
65
- "theme": {
66
- "value": "{color.background.component}",
67
- "type": "color"
68
- },
69
- "success": {
70
- "value": "{color.feedback.positive}",
71
- "type": "color"
72
- },
73
- "error": {
74
- "value": "{color.feedback.negative}",
75
- "type": "color"
76
- },
77
- "warning": {
78
- "value": "{color.feedback.warning}",
79
- "type": "color"
80
- },
81
- "alarm": {
82
- "value": "{color.feedback.alarm}",
83
- "type": "color"
84
- },
85
- "information": {
86
- "value": "{color.feedback.information}",
87
- "type": "color"
88
- }
89
- },
90
- "text": {
91
- "value": "{color.text.default}",
92
- "type": "color"
93
- }
94
- }
95
- },
96
- "icon": {
97
- "color": {
98
- "background": {
99
- "default": {
100
- "value": "{color.background.object}",
101
- "type": "color"
102
- },
103
- "theme": {
104
- "value": "{color.background.theme}",
105
- "type": "color"
106
- }
107
- }
108
- }
109
- },
110
- "button": {
111
- "color": {
112
- "background": {
113
- "primary": {
114
- "active": {
115
- "value": "{color.brand.primary}",
116
- "type": "color",
117
- "description": "Color used for the default state of a secondary button"
118
- },
119
- "hover": {
120
- "value": "{color.brand.secondary}",
121
- "type": "color"
122
- },
123
- "press": {
124
- "value": "{color.blue.70}",
125
- "type": "color"
126
- },
127
- "focus": {
128
- "value": "{color.blue.80}",
129
- "type": "color"
130
- },
131
- "disabled": {
132
- "value": "{color.gray.30}",
133
- "type": "color"
134
- }
135
- }
136
- },
137
- "border": {
138
- "secondary": {
139
- "active": {
140
- "value": "{color.brand.primary}",
141
- "type": "color"
142
- },
143
- "hover": {
144
- "value": "{color.brand.secondary}",
145
- "type": "color"
146
- },
147
- "press": {
148
- "value": "{color.blue.70}",
149
- "type": "color"
150
- },
151
- "focus": {
152
- "value": "{color.blue.80}",
153
- "type": "color"
154
- },
155
- "disabled": {
156
- "value": "{color.gray.30}",
157
- "type": "color"
158
- }
159
- }
160
- },
161
- "text": {
162
- "secondary": {
163
- "active": {
164
- "value": "{color.text.brand.primary}",
165
- "type": "color"
166
- },
167
- "hover": {
168
- "value": "{color.brand.secondary}",
169
- "type": "color"
170
- },
171
- "press": {
172
- "value": "{color.blue.70}",
173
- "type": "color"
174
- },
175
- "focus": {
176
- "value": "{color.blue.80}",
177
- "type": "color"
178
- },
179
- "disabled": {
180
- "value": "{color.gray.30}",
181
- "type": "color"
182
- }
183
- },
184
- "primary": {
185
- "value": "{color.text.theme}",
186
- "type": "color"
187
- }
188
- }
189
- }
190
- },
191
- "tab": {
192
- "color": {
193
- "line": {
194
- "active": {
195
- "value": "{color.brand.primary}",
196
- "type": "color"
197
- },
198
- "hover": {
199
- "value": "{color.brand.secondary}",
200
- "type": "color"
201
- },
202
- "press": {
203
- "value": "{color.blue.70}",
204
- "type": "color"
205
- },
206
- "focus": {
207
- "value": "{color.blue.80}",
208
- "type": "color"
209
- },
210
- "disabled": {
211
- "value": "{color.gray.30}",
212
- "type": "color"
213
- }
214
- },
215
- "text": {
216
- "active": {
217
- "value": "{color.text.brand.primary}",
218
- "type": "color"
219
- },
220
- "hover": {
221
- "value": "{color.brand.secondary}",
222
- "type": "color"
223
- },
224
- "press": {
225
- "value": "{color.blue.70}",
226
- "type": "color"
227
- },
228
- "focus": {
229
- "value": "{color.blue.80}",
230
- "type": "color"
231
- },
232
- "disabled": {
233
- "value": "{color.gray.30}",
234
- "type": "color"
235
- }
236
- }
237
- }
238
- },
239
2
  "color": {
240
3
  "link": {
241
4
  "text": {
@@ -1,78 +1,5 @@
1
1
  {
2
2
  "color": {
3
- "brand": {
4
- "primary": {
5
- "value": "{color.blue.60}",
6
- "type": "color",
7
- "description": "Primary brand blue"
8
- },
9
- "secondary": {
10
- "value": "{color.blue.40}",
11
- "type": "color",
12
- "description": "Primary secondary brand blue"
13
- }
14
- },
15
- "text": {
16
- "brand": {
17
- "primary": {
18
- "value": "{color.brand.primary}",
19
- "type": "color"
20
- }
21
- },
22
- "theme": {
23
- "value": "{color.white}",
24
- "type": "color"
25
- },
26
- "default": {
27
- "value": "{color.gray.100}",
28
- "type": "color"
29
- },
30
- "default-sub": {
31
- "value": "{color.gray.80}",
32
- "type": "color"
33
- }
34
- },
35
- "background": {
36
- "theme": {
37
- "value": "{color.white}",
38
- "type": "color"
39
- },
40
- "component": {
41
- "value": "{color.white}",
42
- "type": "color"
43
- },
44
- "object": {
45
- "value": "{color.gray.100}",
46
- "type": "color"
47
- }
48
- },
49
- "feedback": {
50
- "positive": {
51
- "value": "{color.green.60}",
52
- "type": "color",
53
- "description": "System status is positive"
54
- },
55
- "warning": {
56
- "value": "{color.yellow.50}",
57
- "type": "color",
58
- "description": "System status is warning"
59
- },
60
- "negative": {
61
- "value": "{color.red.60}",
62
- "type": "color",
63
- "description": "System status is warning"
64
- },
65
- "alarm": {
66
- "value": "{color.orange.60}",
67
- "type": "color",
68
- "description": "System status is warning"
69
- },
70
- "information": {
71
- "value": "{color.blue.60}",
72
- "type": "color",
73
- "description": "System status is warning"
74
- }
75
- },
76
3
  "common": {
77
4
  "brand": {
78
5
  "default": {
@@ -248,32 +248,6 @@
248
248
  "120": {
249
249
  "value": "#3E0307",
250
250
  "type": "color"
251
- },
252
- "aaf": {
253
- "100": {
254
- "value": "#FCECEA",
255
- "type": "color"
256
- },
257
- "200": {
258
- "value": "#F5C0B8",
259
- "type": "color"
260
- },
261
- "300": {
262
- "value": "#F8AEBA",
263
- "type": "color"
264
- },
265
- "400": {
266
- "value": "#DB4F66",
267
- "type": "color"
268
- },
269
- "500": {
270
- "value": "#D2324C",
271
- "type": "color"
272
- },
273
- "600": {
274
- "value": "#C8102E",
275
- "type": "color"
276
- }
277
251
  }
278
252
  },
279
253
  "gray": {
@@ -338,14 +312,6 @@
338
312
  "value": "#ffffff",
339
313
  "type": "color"
340
314
  },
341
- "black-shadow": {
342
- "value": "#0000001A",
343
- "type": "color"
344
- },
345
- "white-shadow": {
346
- "value": "#ffffff1A",
347
- "type": "color"
348
- },
349
315
  "blue-gray": {
350
316
  "10": {
351
317
  "value": "#EEF0F2",
@@ -531,201 +497,166 @@
531
497
  "type": "spacing"
532
498
  }
533
499
  },
534
- "shadow": {
535
- "black": {
536
- "value": {
537
- "x": "0",
538
- "y": "-2",
539
- "blur": "19",
540
- "spread": "0",
541
- "color": "{color.black-shadow}",
542
- "type": "dropShadow"
543
- },
544
- "type": "boxShadow"
545
- },
546
- "white": {
547
- "value": {
548
- "x": "0",
549
- "y": "-2",
550
- "blur": "19",
551
- "spread": "0",
552
- "color": "{color.white-shadow}",
553
- "type": "dropShadow"
554
- },
555
- "type": "boxShadow"
556
- }
557
- },
558
- "font-size": {
559
- "300": {
560
- "value": "12px",
561
- "type": "typography"
562
- },
563
- "350": {
564
- "value": "14px",
565
- "type": "typography"
566
- },
567
- "400": {
568
- "value": "16px",
569
- "type": "typography"
570
- }
571
- },
572
- "line-height": {
573
- "tight": {
574
- "value": "130%",
575
- "type": "typography"
576
- },
577
- "normal": {
578
- "value": "150%",
579
- "type": "typography"
580
- }
581
- },
582
- "font-weight": {
583
- "bold": {
584
- "value": "Bold",
585
- "type": "typography"
586
- },
500
+ "font": {
587
501
  "regular": {
588
- "value": "Regular",
589
- "type": "typography"
590
- }
591
- },
592
- "font-family": {
593
- "base": {
594
- "value": "Roboto",
595
- "type": "typography",
596
- "description": "The primary font used in the DDS Design Kit is Roboto"
597
- }
598
- },
599
- "regular": {
600
- "normal": {
601
- "300": {
602
- "value": {
603
- "fontFamily": "{font-family.base}",
604
- "fontWeight": "{font-weight.regular}",
605
- "lineHeight": "{line-height.normal}",
606
- "fontSize": "{font-size.300}"
607
- },
608
- "type": "typography",
609
- "description": "Body is primarily used for components and for blocks of text."
610
- },
611
- "350": {
612
- "value": {
613
- "fontFamily": "{font-family.base}",
614
- "fontWeight": "{font-weight.regular}",
615
- "lineHeight": "{line-height.normal}",
616
- "fontSize": "{font-size.350}"
617
- },
618
- "type": "typography",
619
- "description": "Body is primarily used for components and for blocks of text."
620
- },
621
- "400": {
622
- "value": {
623
- "fontFamily": "{font-family.base}",
624
- "fontWeight": "{font-weight.regular}",
625
- "lineHeight": "{line-height.normal}",
626
- "fontSize": "{font-size.400}"
627
- },
628
- "type": "typography",
629
- "description": "Body is primarily used for components and for blocks of text."
630
- }
631
- },
632
- "tight": {
633
- "300": {
634
- "value": {
635
- "fontFamily": "{font-family.base}",
636
- "fontWeight": "{font-weight.regular}",
637
- "lineHeight": "{line-height.tight}",
638
- "fontSize": "{font-size.300}"
639
- },
640
- "type": "typography",
641
- "description": "Body is primarily used for components and for blocks of text."
642
- },
643
- "350": {
644
- "value": {
645
- "fontFamily": "{font-family.base}",
646
- "fontWeight": "{font-weight.regular}",
647
- "lineHeight": "{line-height.tight}",
648
- "fontSize": "{font-size.350}"
649
- },
650
- "type": "typography",
651
- "description": "Body is primarily used for components and for blocks of text."
652
- },
653
- "400": {
654
- "value": {
655
- "fontFamily": "{font-family.base}",
656
- "fontWeight": "{font-weight.regular}",
657
- "lineHeight": "{line-height.tight}",
658
- "fontSize": "{font-size.400}"
659
- },
660
- "type": "typography",
661
- "description": "Body is primarily used for components and for blocks of text."
662
- }
663
- },
664
- "bold": {
665
502
  "normal": {
666
503
  "300": {
667
504
  "value": {
668
- "fontFamily": "{font-family.base}",
669
- "fontWeight": "{font-weight.bold}",
670
- "lineHeight": "{line-height.normal}",
671
- "fontSize": "{font-size.300}"
505
+ "fontFamily": "{font.family.base}",
506
+ "fontWeight": "{font.weight.regular}",
507
+ "lineHeight": "{font.line-height.normal}",
508
+ "fontSize": "{font.size.300}"
672
509
  },
673
- "type": "typography",
674
- "description": "Header is used to create various levels of typographic hierarchies."
510
+ "type": "typography"
675
511
  },
676
512
  "350": {
677
513
  "value": {
678
- "fontFamily": "{font-family.base}",
679
- "fontWeight": "{font-weight.bold}",
680
- "lineHeight": "{line-height.normal}",
681
- "fontSize": "{font-size.350}"
514
+ "fontFamily": "{font.family.base}",
515
+ "fontWeight": "{font.weight.regular}",
516
+ "lineHeight": "{font.line-height.normal}",
517
+ "fontSize": "{font.size.350}"
682
518
  },
683
- "type": "typography",
684
- "description": "Header is used to create various levels of typographic hierarchies."
519
+ "type": "typography"
685
520
  },
686
521
  "400": {
687
522
  "value": {
688
- "fontFamily": "{font-family.base}",
689
- "fontWeight": "{font-weight.bold}",
690
- "lineHeight": "{line-height.normal}",
691
- "fontSize": "{font-size.400}"
523
+ "fontFamily": "{font.family.base}",
524
+ "fontWeight": "{font.weight.regular}",
525
+ "lineHeight": "{font.line-height.normal}",
526
+ "fontSize": "{font.size.400}"
692
527
  },
693
- "type": "typography",
694
- "description": "Header is used to create various levels of typographic hierarchies."
528
+ "type": "typography"
695
529
  }
696
530
  },
697
531
  "tight": {
698
532
  "300": {
699
533
  "value": {
700
- "fontFamily": "{font-family.base}",
701
- "fontWeight": "{font-weight.bold}",
702
- "lineHeight": "{line-height.tight}",
703
- "fontSize": "{font-size.300}"
534
+ "fontFamily": "{font.family.base}",
535
+ "fontWeight": "{font.weight.regular}",
536
+ "lineHeight": "{font.line-height.tight}",
537
+ "fontSize": "{font.size.300}"
704
538
  },
705
- "type": "typography",
706
- "description": "Header is used to create various levels of typographic hierarchies."
539
+ "type": "typography"
707
540
  },
708
541
  "350": {
709
542
  "value": {
710
- "fontFamily": "{font-family.base}",
711
- "fontWeight": "{font-weight.bold}",
712
- "lineHeight": "{line-height.tight}",
713
- "fontSize": "{font-size.350}"
543
+ "fontFamily": "{font.family.base}",
544
+ "fontWeight": "{font.weight.regular}",
545
+ "lineHeight": "{font.line-height.tight}",
546
+ "fontSize": "{font.size.350}"
714
547
  },
715
- "type": "typography",
716
- "description": "Header is used to create various levels of typographic hierarchies."
548
+ "type": "typography"
717
549
  },
718
550
  "400": {
719
551
  "value": {
720
- "fontFamily": "{font-family.base}",
721
- "fontWeight": "{font-weight.bold}",
722
- "lineHeight": "{line-height.tight}",
723
- "fontSize": "{font-size.400}"
552
+ "fontFamily": "{font.family.base}",
553
+ "fontWeight": "{font.weight.regular}",
554
+ "lineHeight": "{font.line-height.tight}",
555
+ "fontSize": "{font.size.400}"
556
+ },
557
+ "type": "typography"
558
+ }
559
+ },
560
+ "bold": {
561
+ "normal": {
562
+ "300": {
563
+ "value": {
564
+ "fontFamily": "{font.family.base}",
565
+ "fontWeight": "{font.weight.bold}",
566
+ "lineHeight": "{font.line-height.normal}",
567
+ "fontSize": "{font.size.300}"
568
+ },
569
+ "type": "typography"
570
+ },
571
+ "350": {
572
+ "value": {
573
+ "fontFamily": "{font.family.base}",
574
+ "fontWeight": "{font.weight.bold}",
575
+ "lineHeight": "{font.line-height.normal}",
576
+ "fontSize": "{font.size.350}"
577
+ },
578
+ "type": "typography"
579
+ },
580
+ "400": {
581
+ "value": {
582
+ "fontFamily": "{font.family.base}",
583
+ "fontWeight": "{font.weight.bold}",
584
+ "lineHeight": "{font.line-height.normal}",
585
+ "fontSize": "{font.size.400}"
586
+ },
587
+ "type": "typography"
588
+ }
589
+ },
590
+ "tight": {
591
+ "300": {
592
+ "value": {
593
+ "fontFamily": "{font.family.base}",
594
+ "fontWeight": "{font.weight.bold}",
595
+ "lineHeight": "{font.line-height.tight}",
596
+ "fontSize": "{font.size.300}"
597
+ },
598
+ "type": "typography"
599
+ },
600
+ "350": {
601
+ "value": {
602
+ "fontFamily": "{font.family.base}",
603
+ "fontWeight": "{font.weight.bold}",
604
+ "lineHeight": "{font.line-height.tight}",
605
+ "fontSize": "{font.size.350}"
606
+ },
607
+ "type": "typography"
724
608
  },
725
- "type": "typography",
726
- "description": "Header is used to create various levels of typographic hierarchies."
609
+ "400": {
610
+ "value": {
611
+ "fontFamily": "{font.family.base}",
612
+ "fontWeight": "{font.weight.bold}",
613
+ "lineHeight": "{font.line-height.tight}",
614
+ "fontSize": "{font.size.400}"
615
+ },
616
+ "type": "typography"
617
+ }
727
618
  }
728
619
  }
620
+ },
621
+ "size": {
622
+ "300": {
623
+ "value": "12",
624
+ "type": "fontSizes"
625
+ },
626
+ "350": {
627
+ "value": "14",
628
+ "type": "fontSizes"
629
+ },
630
+ "400": {
631
+ "value": "16",
632
+ "type": "fontSizes"
633
+ }
634
+ },
635
+ "line-height": {
636
+ "tight": {
637
+ "value": "130%",
638
+ "type": "lineHeights"
639
+ },
640
+ "normal": {
641
+ "value": "150%",
642
+ "type": "lineHeights"
643
+ }
644
+ },
645
+ "weight": {
646
+ "bold": {
647
+ "value": "Bold",
648
+ "type": "fontWeights"
649
+ },
650
+ "regular": {
651
+ "value": "Regular",
652
+ "type": "fontWeights"
653
+ }
654
+ },
655
+ "family": {
656
+ "base": {
657
+ "value": "Roboto",
658
+ "type": "fontFamilies"
659
+ }
729
660
  }
730
661
  }
731
662
  }