matcha-theme 18.0.27 → 18.1.28

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 (67) hide show
  1. package/README.md +304 -0
  2. package/abstracts/_breakpoints.scss +33 -0
  3. package/abstracts/_colors.scss +833 -0
  4. package/abstracts/_elevation.scss +102 -0
  5. package/abstracts/_functions.scss +424 -0
  6. package/abstracts/_grid.scss +163 -0
  7. package/abstracts/_order.scss +46 -0
  8. package/abstracts/_position.scss +51 -0
  9. package/abstracts/_sizes.scss +95 -0
  10. package/abstracts/_spacings.scss +216 -0
  11. package/abstracts/_typography.scss +124 -0
  12. package/base/_helpers.scss +171 -0
  13. package/base/_reset.scss +9 -0
  14. package/base/_typography.scss +244 -0
  15. package/components/matcha-audio-player.scss +37 -0
  16. package/components/matcha-buttons.scss +165 -0
  17. package/components/matcha-cards.scss +93 -0
  18. package/components/matcha-color-pick.scss +32 -0
  19. package/components/matcha-draggable.scss +25 -0
  20. package/components/matcha-header.scss +327 -0
  21. package/components/matcha-horizontal-tree.scss +277 -0
  22. package/components/matcha-menu.scss +71 -0
  23. package/components/matcha-progress-bar.scss +107 -0
  24. package/components/matcha-scrollbar.scss +36 -0
  25. package/components/matcha-scrollbox-shadow.scss +127 -0
  26. package/components/matcha-table.scss +279 -0
  27. package/css/matcha-style.css +76772 -0
  28. package/fonts/CircularStd-Black.eot +0 -0
  29. package/fonts/CircularStd-Black.svg +3426 -0
  30. package/fonts/CircularStd-Black.ttf +0 -0
  31. package/fonts/CircularStd-Black.woff +0 -0
  32. package/fonts/CircularStd-Black.woff2 +0 -0
  33. package/fonts/CircularStd-Bold.eot +0 -0
  34. package/fonts/CircularStd-Bold.otf +0 -0
  35. package/fonts/CircularStd-Bold.svg +13532 -0
  36. package/fonts/CircularStd-Bold.ttf +0 -0
  37. package/fonts/CircularStd-Bold.woff +0 -0
  38. package/fonts/CircularStd-Bold.woff2 +0 -0
  39. package/fonts/CircularStd-Medium.eot +0 -0
  40. package/fonts/CircularStd-Medium.otf +0 -0
  41. package/fonts/CircularStd-Medium.svg +13511 -0
  42. package/fonts/CircularStd-Medium.ttf +0 -0
  43. package/fonts/CircularStd-Medium.woff +0 -0
  44. package/fonts/CircularStd-Medium.woff2 +0 -0
  45. package/fonts/CircularStd-Regular.eot +0 -0
  46. package/fonts/CircularStd-Regular.otf +0 -0
  47. package/fonts/CircularStd-Regular.svg +2378 -0
  48. package/fonts/CircularStd-Regular.ttf +0 -0
  49. package/fonts/CircularStd-Regular.woff +0 -0
  50. package/fonts/CircularStd-Regular.woff2 +0 -0
  51. package/main.scss +139 -0
  52. package/package.json +2 -2
  53. package/tokens/_animations.scss +37 -0
  54. package/tokens/_breakpoints.scss +38 -0
  55. package/tokens/_color-tokens.scss +1216 -0
  56. package/tokens/_elevation-tokens.scss +14 -0
  57. package/tokens/_spacing-tokens.scss +96 -0
  58. package/tokens/_typography-tokens.scss +25 -0
  59. package/vendors/angular-editor.scss +56 -0
  60. package/vendors/angular-material-fixes.scss +261 -0
  61. package/vendors/calendar.scss +2880 -0
  62. package/vendors/charts.scss +92 -0
  63. package/vendors/ng5-slider.scss +56 -0
  64. package/vendors/ngx-material-timepicker.scss +50 -0
  65. package/core.scss +0 -1210
  66. package/matcha-core.css +0 -62385
  67. package/matcha-core.min.css +0 -1
@@ -0,0 +1,833 @@
1
+ // Saturation Levels
2
+ $saturationLevels: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400, A700;
3
+
4
+ // Hues Palette Colors
5
+ $index: 0;
6
+ // -------------------------------------------------------------------------------------------------------------------
7
+ // @ Text color levels generator
8
+ // -------------------------------------------------------------------------------------------------------------------
9
+ @mixin _generate-text-color-levels($classes, $contrast) {
10
+ @if ($contrast == "dark") {
11
+ #{$classes} {
12
+ &.secondary-text,
13
+ .secondary-text {
14
+ color: rgba(0, 0, 0, 0.54) !important;
15
+ }
16
+
17
+ &.hint-text,
18
+ .hint-text,
19
+ &.disabled-text,
20
+ .disabled-text {
21
+ color: rgba(0, 0, 0, 0.38) !important;
22
+ }
23
+
24
+ &.divider,
25
+ .divider {
26
+ color: rgba(0, 0, 0, 0.12) !important;
27
+ }
28
+ }
29
+ } @else {
30
+ #{$classes} {
31
+ &.secondary-text,
32
+ .secondary-text {
33
+ color: rgba(255, 255, 255, 0.7) !important;
34
+ }
35
+
36
+ &.hint-text,
37
+ .hint-text,
38
+ &.disabled-text,
39
+ .disabled-text {
40
+ color: rgba(255, 255, 255, 0.5) !important;
41
+ }
42
+
43
+ &.divider,
44
+ .divider {
45
+ color: rgba(255, 255, 255, 0.12) !important;
46
+ }
47
+ }
48
+ }
49
+ }
50
+ // @mixin _generate-classes($prefix, $color-map, $saturation) {
51
+ // // .primary-500
52
+ // // .primary-600-bg
53
+ // // .primary-700-fg
54
+ // $background: map-get($color-map, $saturation);
55
+ // $contrast: map-get($color-map, #{$saturation}-contrast);
56
+
57
+ // .#{$prefix}-#{$saturation} {
58
+ // background: $background;
59
+ // color: $contrast;
60
+ // }
61
+ // .#{$prefix}-#{$saturation}-bg {
62
+ // background: $background;
63
+ // }
64
+ // .#{$prefix}-#{$saturation}-fg {
65
+ // color: $background;
66
+ // }
67
+ // }
68
+
69
+ // -------------------------------------------------------------------------------------------------------------------
70
+ // @ Static color classes generator
71
+ // -------------------------------------------------------------------------------------------------------------------
72
+ @mixin _generate-static-color-classes($colorName, $color, $contrastColor, $saturation) {
73
+ $colorSelector: unquote(".#{$colorName}#{$saturation}");
74
+
75
+ #{$colorSelector} {
76
+ background-color: $color !important;
77
+ color: $contrastColor !important;
78
+
79
+ &[disabled] {
80
+ background-color: rgba($color, 0.12) !important;
81
+ color: rgba($contrastColor, 0.26) !important;
82
+ }
83
+ }
84
+
85
+ #{$colorSelector}-bg {
86
+ background-color: $color !important;
87
+ }
88
+
89
+ #{$colorSelector}-fg {
90
+ color: $color !important;
91
+ }
92
+
93
+ @if ($saturation == "-500") {
94
+ $colorSelectorDefault: unquote(".#{$colorName}");
95
+
96
+ #{$colorSelectorDefault}-bg {
97
+ background-color: $color !important;
98
+ }
99
+
100
+ #{$colorSelectorDefault}-fg {
101
+ color: $color !important;
102
+ }
103
+ }
104
+
105
+ // #{$colorSelector}-border,
106
+ // #{$colorSelector}-border-top,
107
+ // #{$colorSelector}-border-right,
108
+ // #{$colorSelector}-border-bottom,
109
+ // #{$colorSelector}-border-left {
110
+ // border-color: $color !important;
111
+ // }
112
+
113
+ // #{$colorSelector}-fill {
114
+ // fill: $color !important;
115
+ // }
116
+ }
117
+
118
+ @mixin colors-classes-static($theme) {
119
+ $palettes: getAllPalettes($theme);
120
+ $light-contrasting-classes: ();
121
+ $dark-contrasting-classes: ();
122
+
123
+ @each $paletteName, $palette in $palettes {
124
+ // $contrasts: map-get($red, "contrast");
125
+ // $contrasts = all contrast colors of $red palette
126
+ $contrasts: map-get($palette, "contrast");
127
+
128
+ @each $saturation in $saturationLevels {
129
+ // $color: map-get($red, 500)
130
+ // $contrast: map-get($contrasts, 500); 500 contrast color of $red palette
131
+ $color: map-get($palette, $saturation);
132
+ $contrast: map-get($contrasts, $saturation);
133
+
134
+ @if ($color != null and $contrast != null) {
135
+ @include _generate-static-color-classes($paletteName, $color, $contrast, "-#{$saturation}");
136
+
137
+ // If the contrast color is dark
138
+ @if (rgba(black, 1) ==rgba($contrast, 1)) {
139
+ $dark-contrasting-classes: append(
140
+ $dark-contrasting-classes,
141
+ unquote(".#{$paletteName}-#{$saturation}"),
142
+ "comma"
143
+ );
144
+ }
145
+
146
+ // if the contrast color is light
147
+ @else {
148
+ $light-contrasting-classes: append(
149
+ $light-contrasting-classes,
150
+ unquote(".#{$paletteName}-#{$saturation}"),
151
+ "comma"
152
+ );
153
+ }
154
+ }
155
+ // Run the generator one more time for default values (500)
156
+ // if we are not working with primary, accent or warn palettes
157
+ // @if ($saturation == 500) {
158
+ // // Generate color classes
159
+ // @include _generate-static-color-classes($paletteName, $color, $contrast, "");
160
+
161
+ // // Add color to the correct list depending on the contrasting color
162
+
163
+ // // If the contrast color is dark
164
+ // @if (rgba(black, 1) ==rgba($contrast, 1)) {
165
+ // $dark-contrasting-classes: append($dark-contrasting-classes, unquote(".#{$paletteName}"), "comma");
166
+ // }
167
+
168
+ // // if the contrast color is light
169
+ // @else {
170
+ // $light-contrasting-classes: append(
171
+ // $light-contrasting-classes,
172
+ // unquote(".#{$paletteName}"),
173
+ // "comma"
174
+ // );
175
+ // }
176
+ // }
177
+ }
178
+ }
179
+
180
+ // Generate contrasting colors
181
+ @include _generate-text-color-levels($dark-contrasting-classes, "dark");
182
+ @include _generate-text-color-levels($light-contrasting-classes, "light");
183
+ }
184
+
185
+ // -------------------------------------------------------------------------------------------------------------------
186
+ // @ Dynamic color classes generator
187
+ // -------------------------------------------------------------------------------------------------------------------
188
+
189
+ @mixin colors-classes-dynamic($theme) {
190
+ $is-dark: map-get($theme, is-dark);
191
+ $palettes: getBaseColorsPalettes();
192
+ // colors from base palette
193
+ $red: map-get($palettes, red);
194
+ $red-contrast: map-get($red, 'contrast');
195
+ $pink: map-get($palettes, pink);
196
+ $pink-contrast: map-get($pink, 'contrast');
197
+ $purple: map-get($palettes, purple);
198
+ $purple-contrast: map-get($purple, 'contrast');
199
+ $deep-purple: map-get($palettes, deep-purple);
200
+ $deep-purple-contrast: map-get($deep-purple, 'contrast');
201
+ $indigo: map-get($palettes, indigo);
202
+ $indigo-contrast: map-get($indigo, 'contrast');
203
+ $blue: map-get($palettes, blue);
204
+ $blue-contrast: map-get($blue, 'contrast');
205
+ $light-blue: map-get($palettes, light-blue);
206
+ $light-blue-contrast: map-get($light-blue, 'contrast');
207
+ $cyan: map-get($palettes, cyan);
208
+ $cyan-contrast: map-get($cyan, 'contrast');
209
+ $teal: map-get($palettes, teal);
210
+ $teal-contrast: map-get($teal, 'contrast');
211
+ $green: map-get($palettes, green);
212
+ $green-contrast: map-get($green, 'contrast');
213
+ $light-green: map-get($palettes, light-green);
214
+ $light-green-contrast: map-get($light-green, 'contrast');
215
+ $lime: map-get($palettes, lime);
216
+ $lime-contrast: map-get($lime, 'contrast');
217
+ $yellow: map-get($palettes, yellow);
218
+ $yellow-contrast: map-get($yellow, 'contrast');
219
+ $amber: map-get($palettes, amber);
220
+ $amber-contrast: map-get($amber, 'contrast');
221
+ $orange: map-get($palettes, orange);
222
+ $orange-contrast: map-get($orange, 'contrast');
223
+ $deep-orange: map-get($palettes, deep-orange);
224
+ $deep-orange-contrast: map-get($deep-orange, 'contrast');
225
+ $brown: map-get($palettes, brown);
226
+ $brown-contrast: map-get($brown, 'contrast');
227
+ $gray: map-get($palettes, gray);
228
+ $grey-contrast: map-get($grey, 'contrast');
229
+ $blue-grey: map-get($palettes, blue-grey);
230
+ $blue-grey-contrast: map-get($blue-grey, 'contrast');
231
+
232
+ // colors from theme
233
+ $primary: map-get($theme, primary);
234
+ $primary-contrast: map-get($primary, 'contrast');
235
+ $accent: map-get($theme, accent);
236
+ $accent-contrast: map-get($accent, 'contrast');
237
+ $warn: map-get($theme, warn);
238
+ $warn-contrast: map-get($warn, 'contrast');
239
+
240
+ $background: map-get($theme, background);
241
+ $foreground: map-get($theme, foreground);
242
+
243
+ .color-unset{
244
+ color: map-get($foreground, text );
245
+ .ripple {
246
+ background: map-get($foreground, text );
247
+ }
248
+ }
249
+
250
+ @if ($is-dark) {
251
+ .red.matcha-button-outline .ripple, .background-red-alpha {background: rgba(map-get($red, 100), 0.2)}
252
+ .red .ripple{background: rgba(map-get($red-contrast, 100), 0.2)}
253
+ .background-red{background: map-get($red, 100)}
254
+ .border-color-red{border-color: map-get($red, 100)}
255
+ .red.matcha-button-outline, .color-red{color: map-get($red, 100)}
256
+ .fill-red{fill: map-get($red, 100)}
257
+ .stroke-red{stroke: map-get($red, 100)}
258
+ .red{
259
+ background: map-get($red, 100);
260
+ color: map-get($red-contrast, 100);
261
+ }
262
+ .pink.matcha-button-outline .ripple, .background-pink-alpha {background: rgba(map-get($pink, 100), 0.2)}
263
+ .pink .ripple{background: rgba(map-get($pink-contrast, 100), 0.2)}
264
+ .background-pink{background: map-get($pink, 100)}
265
+ .border-color-pink{border-color: map-get($pink, 100)}
266
+ .pink.matcha-button-outline, .color-pink{color: map-get($pink, 100)}
267
+ .fill-pink{fill: map-get($pink, 100)}
268
+ .stroke-pink{stroke: map-get($pink, 100)}
269
+ .pink{
270
+ background: map-get($pink, 100);
271
+ color: map-get($pink-contrast, 100);
272
+ }
273
+ .purple.matcha-button-outline .ripple, .background-purple-alpha {background: rgba(map-get($purple, 100), 0.2)}
274
+ .purple .ripple{background: rgba(map-get($purple-contrast, 100), 0.2)}
275
+ .background-purple{background: map-get($purple, 100)}
276
+ .border-color-purple{border-color: map-get($purple, 100)}
277
+ .purple.matcha-button-outline, .color-purple{color: map-get($purple, 100)}
278
+ .fill-purple{fill: map-get($purple, 100)}
279
+ .stroke-purple{stroke: map-get($purple, 100)}
280
+ .purple{
281
+ background: map-get($purple, 100);
282
+ color: map-get($purple-contrast, 100);
283
+ }
284
+ .deep-purple.matcha-button-outline .ripple, .background-deep-purple-alpha {background: rgba(map-get($deep-purple, 100), 0.2)}
285
+ .deep-purple .ripple{background: rgba(map-get($deep-purple-contrast, 100), 0.2)}
286
+ .background-deep-purple{background: map-get($deep-purple, 100)}
287
+ .border-color-deep-purple{border-color: map-get($deep-purple, 100)}
288
+ .deep-purple.matcha-button-outline, .color-deep-purple{color: map-get($deep-purple, 100)}
289
+ .fill-deep-purple{fill: map-get($deep-purple, 100)}
290
+ .stroke-deep-purple{stroke: map-get($deep-purple, 100)}
291
+ .deep-purple{
292
+ background: map-get($deep-purple, 100);
293
+ color: map-get($deep-purple-contrast, 100);
294
+ }
295
+ .indigo.matcha-button-outline .ripple, .background-indigo-alpha {background: rgba(map-get($indigo, 100), 0.2)}
296
+ .indigo .ripple{background: rgba(map-get($indigo-contrast, 100), 0.2)}
297
+ .background-indigo{background: map-get($indigo, 100)}
298
+ .border-color-indigo{border-color: map-get($indigo, 100)}
299
+ .indigo.matcha-button-outline, .color-indigo{color: map-get($indigo, 100)}
300
+ .fill-indigo{fill: map-get($indigo, 100)}
301
+ .stroke-indigo{stroke: map-get($indigo, 100)}
302
+ .indigo{
303
+ background: map-get($indigo, 100);
304
+ color: map-get($indigo-contrast, 100);
305
+ }
306
+ .blue.matcha-button-outline .ripple, .background-blue-alpha {background: rgba(map-get($blue, 100), 0.2)}
307
+ .blue .ripple{background: rgba(map-get($blue-contrast, 100), 0.2)}
308
+ .background-blue{background: map-get($blue, 100)}
309
+ .border-color-blue{border-color: map-get($blue, 100)}
310
+ .blue.matcha-button-outline, .color-blue{color: map-get($blue, 100)}
311
+ .fill-blue{fill: map-get($blue, 100)}
312
+ .stroke-blue{stroke: map-get($blue, 100)}
313
+ .blue{
314
+ background: map-get($blue, 100);
315
+ color: map-get($blue-contrast, 100);
316
+ }
317
+ .light-blue.matcha-button-outline .ripple, .background-light-blue-alpha {background: rgba(map-get($light-blue, 100), 0.2)}
318
+ .light-blue .ripple{background: rgba(map-get($light-blue-contrast, 100), 0.2)}
319
+ .background-light-blue{background: map-get($light-blue, 100)}
320
+ .border-color-light-blue{border-color: map-get($light-blue, 100)}
321
+ .light-blue.matcha-button-outline, .color-light-blue{color: map-get($light-blue, 100)}
322
+ .fill-light-blue{fill: map-get($light-blue, 100)}
323
+ .stroke-light-blue{stroke: map-get($light-blue, 100)}
324
+ .light-blue{
325
+ background: map-get($light-blue, 100);
326
+ color: map-get($light-blue-contrast, 100);
327
+ }
328
+ .cyan.matcha-button-outline .ripple, .background-cyan-alpha {background: rgba(map-get($cyan, 100), 0.2)}
329
+ .cyan .ripple{background: rgba(map-get($cyan-contrast, 100), 0.2)}
330
+ .background-cyan{background: map-get($cyan, 100)}
331
+ .border-color-cyan{border-color: map-get($cyan, 100)}
332
+ .cyan.matcha-button-outline, .color-cyan{color: map-get($cyan, 100)}
333
+ .fill-cyan{fill: map-get($cyan, 100)}
334
+ .stroke-cyan{stroke: map-get($cyan, 100)}
335
+ .cyan{
336
+ background: map-get($cyan, 100);
337
+ color: map-get($cyan-contrast, 100);
338
+ }
339
+ .teal.matcha-button-outline .ripple, .background-teal-alpha {background: rgba(map-get($teal, 100), 0.2)}
340
+ .teal .ripple{background: rgba(map-get($teal-contrast, 100), 0.2)}
341
+ .background-teal{background: map-get($teal, 100)}
342
+ .border-color-teal{border-color: map-get($teal, 100)}
343
+ .teal.matcha-button-outline, .color-teal{color: map-get($teal, 100)}
344
+ .fill-teal{fill: map-get($teal, 100)}
345
+ .stroke-teal{stroke: map-get($teal, 100)}
346
+ .teal{
347
+ background: map-get($teal, 100);
348
+ color: map-get($teal-contrast, 100);
349
+ }
350
+ .green.matcha-button-outline .ripple, .background-green-alpha {background: rgba(map-get($green, 100), 0.2)}
351
+ .green .ripple{background: rgba(map-get($green-contrast, 100), 0.2)}
352
+ .background-green{background: map-get($green, 100)}
353
+ .border-color-green{border-color: map-get($green, 100)}
354
+ .green.matcha-button-outline, .color-green{color: map-get($green, 100)}
355
+ .fill-green{fill: map-get($green, 100)}
356
+ .stroke-green{stroke: map-get($green, 100)}
357
+ .green{
358
+ background: map-get($green, 100);
359
+ color: map-get($green-contrast, 100);
360
+ }
361
+ .light-green.matcha-button-outline .ripple, .background-light-green-alpha {background: rgba(map-get($light-green, 100), 0.2)}
362
+ .light-green .ripple{background: rgba(map-get($light-green-contrast, 100), 0.2)}
363
+ .background-light-green{background: map-get($light-green, 100)}
364
+ .border-color-light-green{border-color: map-get($light-green, 100)}
365
+ .light-green.matcha-button-outline, .color-light-green{color: map-get($light-green, 100)}
366
+ .fill-light-green{fill: map-get($light-green, 100)}
367
+ .stroke-light-green{stroke: map-get($light-green, 100)}
368
+ .light-green{
369
+ background: map-get($light-green, 100);
370
+ color: map-get($light-green-contrast, 100);
371
+ }
372
+ .lime.matcha-button-outline .ripple, .background-lime-alpha {background: rgba(map-get($lime, 100), 0.2)}
373
+ .lime .ripple{background: rgba(map-get($lime-contrast, 100), 0.2)}
374
+ .background-lime{background: map-get($lime, 100)}
375
+ .border-color-lime{border-color: map-get($lime, 100)}
376
+ .lime.matcha-button-outline, .color-lime{color: map-get($lime, 100)}
377
+ .fill-lime{fill: map-get($lime, 100)}
378
+ .stroke-lime{stroke: map-get($lime, 100)}
379
+ .lime{
380
+ background: map-get($lime, 100);
381
+ color: map-get($lime-contrast, 100);
382
+ }
383
+ .yellow.matcha-button-outline .ripple, .background-yellow-alpha {background: rgba(map-get($yellow, 100), 0.2)}
384
+ .yellow .ripple{background: rgba(map-get($yellow-contrast, 100), 0.2)}
385
+ .background-yellow{background: map-get($yellow, 100)}
386
+ .border-color-yellow{border-color: map-get($yellow, 100)}
387
+ .yellow.matcha-button-outline, .color-yellow{color: map-get($yellow, 100)}
388
+ .fill-yellow{fill: map-get($yellow, 100)}
389
+ .stroke-yellow{stroke: map-get($yellow, 100)}
390
+ .yellow{
391
+ background: map-get($yellow, 100);
392
+ color: map-get($yellow-contrast, 100);
393
+ }
394
+ .amber.matcha-button-outline .ripple, .background-amber-alpha {background: rgba(map-get($amber, 100), 0.2)}
395
+ .amber .ripple{background: rgba(map-get($amber-contrast, 100), 0.2)}
396
+ .background-amber{background: map-get($amber, 100)}
397
+ .border-color-amber{border-color: map-get($amber, 100)}
398
+ .amber.matcha-button-outline, .color-amber{color: map-get($amber, 100)}
399
+ .fill-amber{fill: map-get($amber, 100)}
400
+ .stroke-amber{stroke: map-get($amber, 100)}
401
+ .amber{
402
+ background: map-get($amber, 100);
403
+ color: map-get($amber-contrast, 100);
404
+ }
405
+ .orange.matcha-button-outline .ripple, .background-orange-alpha {background: rgba(map-get($orange, 100), 0.2)}
406
+ .orange .ripple{background: rgba(map-get($orange-contrast, 100), 0.2)}
407
+ .background-orange{background: map-get($orange, 100)}
408
+ .border-color-orange{border-color: map-get($orange, 100)}
409
+ .orange.matcha-button-outline, .color-orange{color: map-get($orange, 100)}
410
+ .fill-orange{fill: map-get($orange, 100)}
411
+ .stroke-orange{stroke: map-get($orange, 100)}
412
+ .orange{
413
+ background: map-get($orange, 100);
414
+ color: map-get($orange-contrast, 100);
415
+ }
416
+ .deep-orange.matcha-button-outline .ripple, .background-deep-orange-alpha {background: rgba(map-get($deep-orange, 100), 0.2)}
417
+ .deep-orange .ripple{background: rgba(map-get($deep-orange-contrast, 100), 0.2)}
418
+ .background-deep-orange{background: map-get($deep-orange, 100)}
419
+ .border-color-deep-orange{border-color: map-get($deep-orange, 100)}
420
+ .deep-orange.matcha-button-outline, .color-deep-orange{color: map-get($deep-orange, 100)}
421
+ .fill-deep-orange{fill: map-get($deep-orange, 100)}
422
+ .stroke-deep-orange{stroke: map-get($deep-orange, 100)}
423
+ .deep-orange{
424
+ background: map-get($deep-orange, 100);
425
+ color: map-get($deep-orange-contrast, 100);
426
+ }
427
+ .brown.matcha-button-outline .ripple, .background-brown-alpha {background: rgba(map-get($brown, 100), 0.2)}
428
+ .brown .ripple{background: rgba(map-get($brown-contrast, 100), 0.2)}
429
+ .background-brown{background: map-get($brown, 100)}
430
+ .border-color-brown{border-color: map-get($brown, 100)}
431
+ .brown.matcha-button-outline, .color-brown{color: map-get($brown, 100)}
432
+ .fill-brown{fill: map-get($brown, 100)}
433
+ .stroke-brown{stroke: map-get($brown, 100)}
434
+ .brown{
435
+ background: map-get($brown, 100);
436
+ color: map-get($brown-contrast, 100);
437
+ }
438
+ .grey.matcha-button-outline .ripple, .background-grey-alpha {background: rgba(map-get($grey, 100), 0.2)}
439
+ .grey .ripple{background: rgba(map-get($grey-contrast, 100), 0.2)}
440
+ .background-grey{background: map-get($grey, 100)}
441
+ .border-color-grey{border-color: map-get($grey, 100)}
442
+ .grey.matcha-button-outline, .color-grey{color: map-get($grey, 100)}
443
+ .fill-grey{fill: map-get($grey, 100)}
444
+ .stroke-grey{stroke: map-get($grey, 100)}
445
+ .grey{
446
+ background: map-get($grey, 100);
447
+ color: map-get($grey-contrast, 100);
448
+ }
449
+ .blue-grey.matcha-button-outline .ripple, .background-blue-grey-alpha {background: rgba(map-get($blue-grey, 100), 0.2)}
450
+ .blue-grey .ripple{background: rgba(map-get($blue-grey-contrast, 100), 0.2)}
451
+ .background-blue-grey{background: map-get($blue-grey, 100)}
452
+ .border-color-blue-grey{border-color: map-get($blue-grey, 100)}
453
+ .blue-grey.matcha-button-outline, .color-blue-grey{color: map-get($blue-grey, 100)}
454
+ .fill-blue-grey{fill: map-get($blue-grey, 100)}
455
+ .stroke-blue-grey{stroke: map-get($blue-grey, 100)}
456
+ .blue-grey{
457
+ background: map-get($blue-grey, 100);
458
+ color: map-get($blue-grey-contrast, 100);
459
+ }
460
+ } @else {
461
+ .red.matcha-button-outline .ripple, .background-red-alpha {background: rgba(map-get($red, 500), 0.2)}
462
+ .red .ripple{background: rgba(map-get($red-contrast, 500), 0.2)}
463
+ .background-red{background: map-get($red, 500)}
464
+ .border-color-red{border-color: map-get($red, 500)}
465
+ .red.matcha-button-outline, .color-red{color: map-get($red, 500)}
466
+ .fill-red{fill: map-get($red, 500)}
467
+ .stroke-red{stroke: map-get($red, 500)}
468
+ .red{
469
+ background: map-get($red, 500);
470
+ color: map-get($red-contrast, 500);
471
+ }
472
+
473
+ .pink.matcha-button-outline .ripple, .background-pink-alpha {background: rgba(map-get($pink, 500), 0.2)}
474
+ .pink .ripple{background: rgba(map-get($pink-contrast, 500), 0.2)}
475
+ .background-pink{background: map-get($pink, 500)}
476
+ .border-color-pink{border-color: map-get($pink, 500)}
477
+ .pink.matcha-button-outline, .color-pink{color: map-get($pink, 500)}
478
+ .fill-pink{fill: map-get($pink, 500)}
479
+ .stroke-pink{stroke: map-get($pink, 500)}
480
+ .pink{
481
+ background: map-get($pink, 500);
482
+ color: map-get($pink-contrast, 500);
483
+ }
484
+ .purple.matcha-button-outline .ripple, .background-purple-alpha {background: rgba(map-get($purple, 500), 0.2)}
485
+ .purple .ripple{background: rgba(map-get($purple-contrast, 500), 0.2)}
486
+ .background-purple{background: map-get($purple, 500)}
487
+ .border-color-purple{border-color: map-get($purple, 500)}
488
+ .purple.matcha-button-outline, .color-purple{color: map-get($purple, 500)}
489
+ .fill-purple{fill: map-get($purple, 500)}
490
+ .stroke-purple{stroke: map-get($purple, 500)}
491
+ .purple{
492
+ background: map-get($purple, 500);
493
+ color: map-get($purple-contrast, 500);
494
+ }
495
+ .deep-purple.matcha-button-outline .ripple, .background-deep-purple-alpha {background: rgba(map-get($deep-purple, 500), 0.2)}
496
+ .deep-purple .ripple{background: rgba(map-get($deep-purple-contrast, 500), 0.2)}
497
+ .background-deep-purple{background: map-get($deep-purple, 500)}
498
+ .border-color-deep-purple{border-color: map-get($deep-purple, 500)}
499
+ .deep-purple.matcha-button-outline, .color-deep-purple{color: map-get($deep-purple, 500)}
500
+ .fill-deep-purple{fill: map-get($deep-purple, 500)}
501
+ .stroke-deep-purple{stroke: map-get($deep-purple, 500)}
502
+ .deep-purple{
503
+ background: map-get($deep-purple, 500);
504
+ color: map-get($deep-purple-contrast, 500);
505
+ }
506
+ .indigo.matcha-button-outline .ripple, .background-indigo-alpha {background: rgba(map-get($indigo, 500), 0.2)}
507
+ .indigo .ripple{background: rgba(map-get($indigo-contrast, 500), 0.2)}
508
+ .background-indigo{background: map-get($indigo, 500)}
509
+ .border-color-indigo{border-color: map-get($indigo, 500)}
510
+ .indigo.matcha-button-outline, .color-indigo{color: map-get($indigo, 500)}
511
+ .fill-indigo{fill: map-get($indigo, 500)}
512
+ .stroke-indigo{stroke: map-get($indigo, 500)}
513
+ .indigo{
514
+ background: map-get($indigo, 500);
515
+ color: map-get($indigo-contrast, 500);
516
+ }
517
+ .blue.matcha-button-outline .ripple, .background-blue-alpha {background: rgba(map-get($blue, 500), 0.2)}
518
+ .blue .ripple{background: rgba(map-get($blue-contrast, 500), 0.2)}
519
+ .background-blue{background: map-get($blue, 500)}
520
+ .border-color-blue{border-color: map-get($blue, 500)}
521
+ .blue.matcha-button-outline, .color-blue{color: map-get($blue, 500)}
522
+ .fill-blue{fill: map-get($blue, 500)}
523
+ .stroke-blue{stroke: map-get($blue, 500)}
524
+ .blue{
525
+ background: map-get($blue, 500);
526
+ color: map-get($blue-contrast, 500);
527
+ }
528
+ .light-blue.matcha-button-outline .ripple, .background-light-blue-alpha {background: rgba(map-get($light-blue, 500), 0.2)}
529
+ .light-blue .ripple{background: rgba(map-get($light-blue-contrast, 500), 0.2)}
530
+ .background-light-blue{background: map-get($light-blue, 500)}
531
+ .border-color-light-blue{border-color: map-get($light-blue, 500)}
532
+ .light-blue.matcha-button-outline, .color-light-blue{color: map-get($light-blue, 500)}
533
+ .fill-light-blue{fill: map-get($light-blue, 500)}
534
+ .stroke-light-blue{stroke: map-get($light-blue, 500)}
535
+ .light-blue{
536
+ background: map-get($light-blue, 500);
537
+ color: map-get($light-blue-contrast, 500);
538
+ }
539
+ .cyan.matcha-button-outline .ripple, .background-cyan-alpha {background: rgba(map-get($cyan, 500), 0.2)}
540
+ .cyan .ripple{background: rgba(map-get($cyan-contrast, 500), 0.2)}
541
+ .background-cyan{background: map-get($cyan, 500)}
542
+ .border-color-cyan{border-color: map-get($cyan, 500)}
543
+ .cyan.matcha-button-outline, .color-cyan{color: map-get($cyan, 500)}
544
+ .fill-cyan{fill: map-get($cyan, 500)}
545
+ .stroke-cyan{stroke: map-get($cyan, 500)}
546
+ .cyan{
547
+ background: map-get($cyan, 500);
548
+ color: map-get($cyan-contrast, 500);
549
+ }
550
+ .teal.matcha-button-outline .ripple, .background-teal-alpha {background: rgba(map-get($teal, 500), 0.2)}
551
+ .teal .ripple{background: rgba(map-get($teal-contrast, 500), 0.2)}
552
+ .background-teal{background: map-get($teal, 500)}
553
+ .border-color-teal{border-color: map-get($teal, 500)}
554
+ .teal.matcha-button-outline, .color-teal{color: map-get($teal, 500)}
555
+ .fill-teal{fill: map-get($teal, 500)}
556
+ .stroke-teal{stroke: map-get($teal, 500)}
557
+ .teal{
558
+ background: map-get($teal, 500);
559
+ color: map-get($teal-contrast, 500);
560
+ }
561
+ .green.matcha-button-outline .ripple, .background-green-alpha {background: rgba(map-get($green, 500), 0.2)}
562
+ .green .ripple{background: rgba(map-get($green-contrast, 500), 0.2)}
563
+ .background-green{background: map-get($green, 500)}
564
+ .border-color-green{border-color: map-get($green, 500)}
565
+ .green.matcha-button-outline, .color-green{color: map-get($green, 500)}
566
+ .fill-green{fill: map-get($green, 500)}
567
+ .stroke-green{stroke: map-get($green, 500)}
568
+ .green{
569
+ background: map-get($green, 500);
570
+ color: map-get($green-contrast, 500);
571
+ }
572
+ .light-green.matcha-button-outline .ripple, .background-light-green-alpha {background: rgba(map-get($light-green, 500), 0.2)}
573
+ .light-green .ripple{background: rgba(map-get($light-green-contrast, 500), 0.2)}
574
+ .background-light-green{background: map-get($light-green, 500)}
575
+ .border-color-light-green{border-color: map-get($light-green, 500)}
576
+ .light-green.matcha-button-outline, .color-light-green{color: map-get($light-green, 500)}
577
+ .fill-light-green{fill: map-get($light-green, 500)}
578
+ .stroke-light-green{stroke: map-get($light-green, 500)}
579
+ .light-green{
580
+ background: map-get($light-green, 500);
581
+ color: map-get($light-green-contrast, 500);
582
+ }
583
+ .lime.matcha-button-outline .ripple, .background-lime-alpha {background: rgba(map-get($lime, 500), 0.2)}
584
+ .lime .ripple{background: rgba(map-get($lime-contrast, 500), 0.2)}
585
+ .background-lime{background: map-get($lime, 500)}
586
+ .border-color-lime{border-color: map-get($lime, 500)}
587
+ .lime.matcha-button-outline, .color-lime{color: map-get($lime, 500)}
588
+ .fill-lime{fill: map-get($lime, 500)}
589
+ .stroke-lime{stroke: map-get($lime, 500)}
590
+ .lime{
591
+ background: map-get($lime, 500);
592
+ color: map-get($lime-contrast, 500);
593
+ }
594
+ .yellow.matcha-button-outline .ripple, .background-yellow-alpha {background: rgba(map-get($yellow, 500), 0.2)}
595
+ .yellow .ripple{background: rgba(map-get($yellow-contrast, 500), 0.2)}
596
+ .background-yellow{background: map-get($yellow, 500)}
597
+ .border-color-yellow{border-color: map-get($yellow, 500)}
598
+ .yellow.matcha-button-outline, .color-yellow{color: map-get($yellow, 500)}
599
+ .fill-yellow{fill: map-get($yellow, 500)}
600
+ .stroke-yellow{stroke: map-get($yellow, 500)}
601
+ .yellow{
602
+ background: map-get($yellow, 500);
603
+ color: map-get($yellow-contrast, 500);
604
+ }
605
+ .amber.matcha-button-outline .ripple, .background-amber-alpha {background: rgba(map-get($amber, 500), 0.2)}
606
+ .amber .ripple{background: rgba(map-get($amber-contrast, 500), 0.2)}
607
+ .background-amber{background: map-get($amber, 500)}
608
+ .border-color-amber{border-color: map-get($amber, 500)}
609
+ .amber.matcha-button-outline, .color-amber{color: map-get($amber, 500)}
610
+ .fill-amber{fill: map-get($amber, 500)}
611
+ .stroke-amber{stroke: map-get($amber, 500)}
612
+ .amber{
613
+ background: map-get($amber, 500);
614
+ color: map-get($amber-contrast, 500);
615
+ }
616
+ .orange.matcha-button-outline .ripple, .background-orange-alpha {background: rgba(map-get($orange, 500), 0.2)}
617
+ .orange .ripple{background: rgba(map-get($orange-contrast, 500), 0.2)}
618
+ .background-orange{background: map-get($orange, 500)}
619
+ .border-color-orange{border-color: map-get($orange, 500)}
620
+ .orange.matcha-button-outline, .color-orange{color: map-get($orange, 500)}
621
+ .fill-orange{fill: map-get($orange, 500)}
622
+ .stroke-orange{stroke: map-get($orange, 500)}
623
+ .orange{
624
+ background: map-get($orange, 500);
625
+ color: map-get($orange-contrast, 500);
626
+ }
627
+ .deep-orange.matcha-button-outline .ripple, .background-deep-orange-alpha {background: rgba(map-get($deep-orange, 500), 0.2)}
628
+ .deep-orange .ripple{background: rgba(map-get($deep-orange-contrast, 500), 0.2)}
629
+ .background-deep-orange{background: map-get($deep-orange, 500)}
630
+ .border-color-deep-orange{border-color: map-get($deep-orange, 500)}
631
+ .deep-orange.matcha-button-outline, .color-deep-orange{color: map-get($deep-orange, 500)}
632
+ .fill-deep-orange{fill: map-get($deep-orange, 500)}
633
+ .stroke-deep-orange{stroke: map-get($deep-orange, 500)}
634
+ .deep-orange{
635
+ background: map-get($deep-orange, 500);
636
+ color: map-get($deep-orange-contrast, 500);
637
+ }
638
+ .brown.matcha-button-outline .ripple, .background-brown-alpha {background: rgba(map-get($brown, 500), 0.2)}
639
+ .brown .ripple{background: rgba(map-get($brown-contrast, 500), 0.2)}
640
+ .background-brown{background: map-get($brown, 500)}
641
+ .border-color-brown{border-color: map-get($brown, 500)}
642
+ .brown.matcha-button-outline, .color-brown{color: map-get($brown, 500)}
643
+ .fill-brown{fill: map-get($brown, 500)}
644
+ .stroke-brown{stroke: map-get($brown, 500)}
645
+ .brown{
646
+ background: map-get($brown, 500);
647
+ color: map-get($brown-contrast, 500);
648
+ }
649
+ .grey.matcha-button-outline .ripple, .background-grey-alpha {background: rgba(map-get($grey, 500), 0.2)}
650
+ .grey .ripple{background: rgba(map-get($grey-contrast, 500), 0.2)}
651
+ .background-grey{background: map-get($grey, 500)}
652
+ .border-color-grey{border-color: map-get($grey, 500)}
653
+ .grey.matcha-button-outline, .color-grey{color: map-get($grey, 500)}
654
+ .fill-grey{fill: map-get($grey, 500)}
655
+ .stroke-grey{stroke: map-get($grey, 500)}
656
+ .grey{
657
+ background: map-get($grey, 500);
658
+ color: map-get($grey-contrast, 500);
659
+ }
660
+ .blue-grey.matcha-button-outline .ripple, .background-blue-grey-alpha {background: rgba(map-get($blue-grey, 500), 0.2)}
661
+ .blue-grey .ripple{background: rgba(map-get($blue-grey-contrast, 500), 0.2)}
662
+ .background-blue-grey{background: map-get($blue-grey, 500)}
663
+ .border-color-blue-grey{border-color: map-get($blue-grey, 500)}
664
+ .blue-grey.matcha-button-outline, .color-blue-grey{color: map-get($blue-grey, 500)}
665
+ .fill-blue-grey{fill: map-get($blue-grey, 500)}
666
+ .stroke-blue-grey{stroke: map-get($blue-grey, 500)}
667
+ .blue-grey{
668
+ background: map-get($blue-grey, 500);
669
+ color: map-get($blue-grey-contrast, 500);
670
+ }
671
+ }
672
+
673
+ .primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, default), 0.2)}
674
+ .primary .ripple{background: rgba(map-get($primary, default-contrast), 0.2)}
675
+ .background-primary{background: map-get($primary, default)}
676
+ .border-color-primary{border-color: map-get($primary, default)}
677
+ .primary.matcha-button-outline, .color-primary{color: map-get($primary, default)}
678
+ .fill-primary{fill: map-get($primary, default)}
679
+ .stroke-primary{stroke: map-get($primary, default)}
680
+ .primary{
681
+ background: map-get($primary, default);
682
+ color: map-get($primary, default-contrast);
683
+ }
684
+
685
+ .accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, default), 0.2)}
686
+ .accent .ripple{background: rgba(map-get($accent, default-contrast), 0.2)}
687
+ .background-accent{background: map-get($accent, default)}
688
+ .border-color-accent{border-color: map-get($accent, default)}
689
+ .accent.matcha-button-outline, .color-accent{color: map-get($accent, default)}
690
+ .fill-accent{fill: map-get($accent, default)}
691
+ .stroke-accent{stroke: map-get($accent, default)}
692
+ .accent{
693
+ background: map-get($accent, default);
694
+ color: map-get($accent, default-contrast);
695
+ }
696
+
697
+ .warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, default), 0.2)}
698
+ .warn .ripple{background: rgba(map-get($warn, default-contrast), 0.2)}
699
+ .background-warn{background: map-get($warn, default)}
700
+ .border-color-warn{border-color: map-get($warn, default)}
701
+ .warn.matcha-button-outline, .color-warn{color: map-get($warn, default)}
702
+ .fill-warn{fill: map-get($warn, default)}
703
+ .stroke-warn{stroke: map-get($warn, default)}
704
+ .warn{
705
+ background: map-get($warn, default);
706
+ color: map-get($warn, default-contrast);
707
+ }
708
+
709
+ .basic.matcha-button-outline .ripple, .background-basic-alpha {background: rgba(map-get($foreground, base), 0.2)}
710
+ .basic .ripple{background: rgba(map-get($foreground, base), 0.2)}
711
+ .background-basic{background: map-get($background, card)}
712
+ .border-color-basic{border-color: map-get($foreground, base)}
713
+ .basic.matcha-button-outline, .color-basic{color: map-get($foreground, base)}
714
+ .fill-basic{fill: map-get($background, card)}
715
+ .stroke-basic{stroke: map-get($foreground, base)}
716
+ .basic{
717
+ background: map-get($background, card);
718
+ color: map-get($foreground, base);
719
+ }
720
+
721
+
722
+ $attributes: (
723
+ color: $foreground,
724
+ border-color: $foreground,
725
+ background: $background,
726
+ fill: $background,
727
+ stroke: $background
728
+ );
729
+
730
+ .base-surface {
731
+ background: map-get($background, card);
732
+ color: map-get($foreground, text);
733
+ &-alpha {
734
+ background: rgba(map-get($background, card), 0.5) !important;
735
+ }
736
+ }
737
+ .base-fg {
738
+ background: map-get($foreground, text);
739
+ color: map-get($foreground, text-inverse);
740
+ &-alpha {
741
+ background: rgba(map-get($foreground, text), 0.2) !important;
742
+ }
743
+ }
744
+ .base-bg {
745
+ background: map-get($background, background);
746
+ color: map-get($foreground, text);
747
+ &-alpha {
748
+ background: map-get($background, background-alpha) !important;
749
+ }
750
+ }
751
+
752
+ .background-transparent,
753
+ .matcha-background-transparent {
754
+ background: transparent;
755
+ }
756
+
757
+ @each $attribute, $colorLevel in $attributes {
758
+ @if ($attribute != "color") {
759
+ .#{$attribute}-bg {
760
+ #{$attribute}: map-get($background, background) !important;
761
+ }
762
+ .#{$attribute}-bg-alpha {
763
+ #{$attribute}: map-get($background, background-alpha) !important;
764
+ }
765
+ .#{$attribute}-bg-inverse {
766
+ #{$attribute}: map-get($background, background-inverse) !important;
767
+ }
768
+ .#{$attribute}-bg-alpha-inverse {
769
+ #{$attribute}: map-get($background, background-alpha-inverse) !important;
770
+ }
771
+ .#{$attribute}-surface-inverse {
772
+ #{$attribute}: map-get($background, card-inverse) !important;
773
+ }
774
+ .#{$attribute}-surface-alpha-inverse {
775
+ #{$attribute}: map-get($background, card-alpha-inverse) !important;
776
+ }
777
+ }
778
+ .#{$attribute}-error {
779
+ #{$attribute}: map-get($background, error) !important;
780
+ }
781
+ .#{$attribute}-info {
782
+ #{$attribute}: map-get($background, info) !important;
783
+ }
784
+ .#{$attribute}-success {
785
+ #{$attribute}: map-get($background, success) !important;
786
+ }
787
+ .#{$attribute}-warning {
788
+ #{$attribute}: map-get($background, warning) !important;
789
+ }
790
+ .#{$attribute}-fg,
791
+ .#{$attribute}-base,
792
+ .#{$attribute}-text {
793
+ #{$attribute}: map-get($foreground, text) !important;
794
+ }
795
+
796
+ .#{$attribute}-fg-inverse,
797
+ .#{$attribute}-base-inverse,
798
+ .#{$attribute}-text-inverse {
799
+ #{$attribute}: map-get($foreground, text-inverse) !important;
800
+ }
801
+
802
+ .#{$attribute}-surface {
803
+ #{$attribute}: map-get($background, card) !important;
804
+ }
805
+
806
+ .#{$attribute}-surface-alpha {
807
+ #{$attribute}: map-get($background, card-alpha) !important;
808
+ }
809
+
810
+ .#{$attribute}-placeholder {
811
+ #{$attribute}: map-get($foreground, placeholder) !important;
812
+ &-alpha {
813
+ background: rgba(map-get($foreground, placeholder), 0.2) !important;
814
+ }
815
+ }
816
+
817
+ .#{$attribute}-label {
818
+ #{$attribute}: map-get($foreground, label) !important;
819
+ }
820
+
821
+ .#{$attribute}-disabled {
822
+ #{$attribute}: map-get($background, disabled) !important;
823
+ }
824
+
825
+ .#{$attribute}-disabled-icon {
826
+ #{$attribute}: map-get($foreground, disabled-icon) !important;
827
+ }
828
+
829
+ .#{$attribute}-selected {
830
+ #{$attribute}: map-get($background, selected-button) !important;
831
+ }
832
+ }
833
+ }