matcha-theme 1.0.27 → 18.0.27

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 (66) hide show
  1. package/core.scss +1210 -0
  2. package/matcha-core.css +62385 -0
  3. package/matcha-core.min.css +1 -0
  4. package/package.json +1 -1
  5. package/README.md +0 -304
  6. package/abstracts/_breakpoints.scss +0 -33
  7. package/abstracts/_colors.scss +0 -851
  8. package/abstracts/_elevation.scss +0 -102
  9. package/abstracts/_functions.scss +0 -424
  10. package/abstracts/_grid.scss +0 -159
  11. package/abstracts/_order.scss +0 -46
  12. package/abstracts/_position.scss +0 -51
  13. package/abstracts/_sizes.scss +0 -166
  14. package/abstracts/_spacings.scss +0 -216
  15. package/abstracts/_typography.scss +0 -124
  16. package/base/_helpers.scss +0 -2181
  17. package/base/_reset.scss +0 -9
  18. package/base/_typography.scss +0 -244
  19. package/components/matcha-audio-player.scss +0 -37
  20. package/components/matcha-buttons.scss +0 -170
  21. package/components/matcha-cards.scss +0 -93
  22. package/components/matcha-color-pick.scss +0 -32
  23. package/components/matcha-draggable.scss +0 -25
  24. package/components/matcha-header.scss +0 -327
  25. package/components/matcha-horizontal-tree.scss +0 -277
  26. package/components/matcha-progress-bar.scss +0 -107
  27. package/components/matcha-scrollbar.scss +0 -36
  28. package/components/matcha-scrollbox-shadow.scss +0 -127
  29. package/components/matcha-table.scss +0 -279
  30. package/css/matcha-style.css +0 -76772
  31. package/fonts/CircularStd-Black.eot +0 -0
  32. package/fonts/CircularStd-Black.svg +0 -3426
  33. package/fonts/CircularStd-Black.ttf +0 -0
  34. package/fonts/CircularStd-Black.woff +0 -0
  35. package/fonts/CircularStd-Black.woff2 +0 -0
  36. package/fonts/CircularStd-Bold.eot +0 -0
  37. package/fonts/CircularStd-Bold.otf +0 -0
  38. package/fonts/CircularStd-Bold.svg +0 -13532
  39. package/fonts/CircularStd-Bold.ttf +0 -0
  40. package/fonts/CircularStd-Bold.woff +0 -0
  41. package/fonts/CircularStd-Bold.woff2 +0 -0
  42. package/fonts/CircularStd-Medium.eot +0 -0
  43. package/fonts/CircularStd-Medium.otf +0 -0
  44. package/fonts/CircularStd-Medium.svg +0 -13511
  45. package/fonts/CircularStd-Medium.ttf +0 -0
  46. package/fonts/CircularStd-Medium.woff +0 -0
  47. package/fonts/CircularStd-Medium.woff2 +0 -0
  48. package/fonts/CircularStd-Regular.eot +0 -0
  49. package/fonts/CircularStd-Regular.otf +0 -0
  50. package/fonts/CircularStd-Regular.svg +0 -2378
  51. package/fonts/CircularStd-Regular.ttf +0 -0
  52. package/fonts/CircularStd-Regular.woff +0 -0
  53. package/fonts/CircularStd-Regular.woff2 +0 -0
  54. package/main.scss +0 -133
  55. package/tokens/_animations.scss +0 -37
  56. package/tokens/_breakpoints.scss +0 -38
  57. package/tokens/_color-tokens.scss +0 -1216
  58. package/tokens/_elevation-tokens.scss +0 -14
  59. package/tokens/_spacing-tokens.scss +0 -96
  60. package/tokens/_typography-tokens.scss +0 -25
  61. package/vendors/angular-editor.scss +0 -56
  62. package/vendors/angular-material-fixes.scss +0 -261
  63. package/vendors/calendar.scss +0 -2880
  64. package/vendors/charts.scss +0 -92
  65. package/vendors/ng5-slider.scss +0 -56
  66. package/vendors/ngx-material-timepicker.scss +0 -50
@@ -1,851 +0,0 @@
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
-
461
- .primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, 100), 0.2)}
462
- .primary .ripple{background: rgba(map-get($primary-contrast, 100), 0.2)}
463
- .background-primary{background: map-get($primary, 100)}
464
- .border-color-primary{border-color: map-get($primary, 100)}
465
- .primary.matcha-button-outline, .color-primary{color: map-get($primary, 100)}
466
- .fill-primary{fill: map-get($primary, 100)}
467
- .stroke-primary{stroke: map-get($primary, 100)}
468
- .primary{
469
- background: map-get($primary, 100);
470
- color: map-get($primary-contrast, 100);
471
- }
472
- .accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, 100), 0.2)}
473
- .accent .ripple{background: rgba(map-get($accent-contrast, 100), 0.2)}
474
- .background-accent{background: map-get($accent, 100)}
475
- .border-color-accent{border-color: map-get($accent, 100)}
476
- .accent.matcha-button-outline, .color-accent{color: map-get($accent, 100)}
477
- .fill-accent{fill: map-get($accent, 100)}
478
- .stroke-accent{stroke: map-get($accent, 100)}
479
- .accent{
480
- background: map-get($accent, 100);
481
- color: map-get($accent-contrast, 100);
482
- }
483
- .warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, 100), 0.2)}
484
- .warn .ripple{background: rgba(map-get($warn-contrast, 100), 0.2)}
485
- .background-warn{background: map-get($warn, 100)}
486
- .border-color-warn{border-color: map-get($warn, 100)}
487
- .warn.matcha-button-outline, .color-warn{color: map-get($warn, 100)}
488
- .fill-warn{fill: map-get($warn, 100)}
489
- .stroke-warn{stroke: map-get($warn, 100)}
490
- .warn{
491
- background: map-get($warn, 100);
492
- color: map-get($warn-contrast, 100);
493
- }
494
- } @else {
495
- .red.matcha-button-outline .ripple, .background-red-alpha {background: rgba(map-get($red, 500), 0.2)}
496
- .red .ripple{background: rgba(map-get($red-contrast, 500), 0.2)}
497
- .background-red{background: map-get($red, 500)}
498
- .border-color-red{border-color: map-get($red, 500)}
499
- .red.matcha-button-outline, .color-red{color: map-get($red, 500)}
500
- .fill-red{fill: map-get($red, 500)}
501
- .stroke-red{stroke: map-get($red, 500)}
502
- .red{
503
- background: map-get($red, 500);
504
- color: map-get($red-contrast, 500);
505
- }
506
-
507
- .pink.matcha-button-outline .ripple, .background-pink-alpha {background: rgba(map-get($pink, 500), 0.2)}
508
- .pink .ripple{background: rgba(map-get($pink-contrast, 500), 0.2)}
509
- .background-pink{background: map-get($pink, 500)}
510
- .border-color-pink{border-color: map-get($pink, 500)}
511
- .pink.matcha-button-outline, .color-pink{color: map-get($pink, 500)}
512
- .fill-pink{fill: map-get($pink, 500)}
513
- .stroke-pink{stroke: map-get($pink, 500)}
514
- .pink{
515
- background: map-get($pink, 500);
516
- color: map-get($pink-contrast, 500);
517
- }
518
- .purple.matcha-button-outline .ripple, .background-purple-alpha {background: rgba(map-get($purple, 500), 0.2)}
519
- .purple .ripple{background: rgba(map-get($purple-contrast, 500), 0.2)}
520
- .background-purple{background: map-get($purple, 500)}
521
- .border-color-purple{border-color: map-get($purple, 500)}
522
- .purple.matcha-button-outline, .color-purple{color: map-get($purple, 500)}
523
- .fill-purple{fill: map-get($purple, 500)}
524
- .stroke-purple{stroke: map-get($purple, 500)}
525
- .purple{
526
- background: map-get($purple, 500);
527
- color: map-get($purple-contrast, 500);
528
- }
529
- .deep-purple.matcha-button-outline .ripple, .background-deep-purple-alpha {background: rgba(map-get($deep-purple, 500), 0.2)}
530
- .deep-purple .ripple{background: rgba(map-get($deep-purple-contrast, 500), 0.2)}
531
- .background-deep-purple{background: map-get($deep-purple, 500)}
532
- .border-color-deep-purple{border-color: map-get($deep-purple, 500)}
533
- .deep-purple.matcha-button-outline, .color-deep-purple{color: map-get($deep-purple, 500)}
534
- .fill-deep-purple{fill: map-get($deep-purple, 500)}
535
- .stroke-deep-purple{stroke: map-get($deep-purple, 500)}
536
- .deep-purple{
537
- background: map-get($deep-purple, 500);
538
- color: map-get($deep-purple-contrast, 500);
539
- }
540
- .indigo.matcha-button-outline .ripple, .background-indigo-alpha {background: rgba(map-get($indigo, 500), 0.2)}
541
- .indigo .ripple{background: rgba(map-get($indigo-contrast, 500), 0.2)}
542
- .background-indigo{background: map-get($indigo, 500)}
543
- .border-color-indigo{border-color: map-get($indigo, 500)}
544
- .indigo.matcha-button-outline, .color-indigo{color: map-get($indigo, 500)}
545
- .fill-indigo{fill: map-get($indigo, 500)}
546
- .stroke-indigo{stroke: map-get($indigo, 500)}
547
- .indigo{
548
- background: map-get($indigo, 500);
549
- color: map-get($indigo-contrast, 500);
550
- }
551
- .blue.matcha-button-outline .ripple, .background-blue-alpha {background: rgba(map-get($blue, 500), 0.2)}
552
- .blue .ripple{background: rgba(map-get($blue-contrast, 500), 0.2)}
553
- .background-blue{background: map-get($blue, 500)}
554
- .border-color-blue{border-color: map-get($blue, 500)}
555
- .blue.matcha-button-outline, .color-blue{color: map-get($blue, 500)}
556
- .fill-blue{fill: map-get($blue, 500)}
557
- .stroke-blue{stroke: map-get($blue, 500)}
558
- .blue{
559
- background: map-get($blue, 500);
560
- color: map-get($blue-contrast, 500);
561
- }
562
- .light-blue.matcha-button-outline .ripple, .background-light-blue-alpha {background: rgba(map-get($light-blue, 500), 0.2)}
563
- .light-blue .ripple{background: rgba(map-get($light-blue-contrast, 500), 0.2)}
564
- .background-light-blue{background: map-get($light-blue, 500)}
565
- .border-color-light-blue{border-color: map-get($light-blue, 500)}
566
- .light-blue.matcha-button-outline, .color-light-blue{color: map-get($light-blue, 500)}
567
- .fill-light-blue{fill: map-get($light-blue, 500)}
568
- .stroke-light-blue{stroke: map-get($light-blue, 500)}
569
- .light-blue{
570
- background: map-get($light-blue, 500);
571
- color: map-get($light-blue-contrast, 500);
572
- }
573
- .cyan.matcha-button-outline .ripple, .background-cyan-alpha {background: rgba(map-get($cyan, 500), 0.2)}
574
- .cyan .ripple{background: rgba(map-get($cyan-contrast, 500), 0.2)}
575
- .background-cyan{background: map-get($cyan, 500)}
576
- .border-color-cyan{border-color: map-get($cyan, 500)}
577
- .cyan.matcha-button-outline, .color-cyan{color: map-get($cyan, 500)}
578
- .fill-cyan{fill: map-get($cyan, 500)}
579
- .stroke-cyan{stroke: map-get($cyan, 500)}
580
- .cyan{
581
- background: map-get($cyan, 500);
582
- color: map-get($cyan-contrast, 500);
583
- }
584
- .teal.matcha-button-outline .ripple, .background-teal-alpha {background: rgba(map-get($teal, 500), 0.2)}
585
- .teal .ripple{background: rgba(map-get($teal-contrast, 500), 0.2)}
586
- .background-teal{background: map-get($teal, 500)}
587
- .border-color-teal{border-color: map-get($teal, 500)}
588
- .teal.matcha-button-outline, .color-teal{color: map-get($teal, 500)}
589
- .fill-teal{fill: map-get($teal, 500)}
590
- .stroke-teal{stroke: map-get($teal, 500)}
591
- .teal{
592
- background: map-get($teal, 500);
593
- color: map-get($teal-contrast, 500);
594
- }
595
- .green.matcha-button-outline .ripple, .background-green-alpha {background: rgba(map-get($green, 500), 0.2)}
596
- .green .ripple{background: rgba(map-get($green-contrast, 500), 0.2)}
597
- .background-green{background: map-get($green, 500)}
598
- .border-color-green{border-color: map-get($green, 500)}
599
- .green.matcha-button-outline, .color-green{color: map-get($green, 500)}
600
- .fill-green{fill: map-get($green, 500)}
601
- .stroke-green{stroke: map-get($green, 500)}
602
- .green{
603
- background: map-get($green, 500);
604
- color: map-get($green-contrast, 500);
605
- }
606
- .light-green.matcha-button-outline .ripple, .background-light-green-alpha {background: rgba(map-get($light-green, 500), 0.2)}
607
- .light-green .ripple{background: rgba(map-get($light-green-contrast, 500), 0.2)}
608
- .background-light-green{background: map-get($light-green, 500)}
609
- .border-color-light-green{border-color: map-get($light-green, 500)}
610
- .light-green.matcha-button-outline, .color-light-green{color: map-get($light-green, 500)}
611
- .fill-light-green{fill: map-get($light-green, 500)}
612
- .stroke-light-green{stroke: map-get($light-green, 500)}
613
- .light-green{
614
- background: map-get($light-green, 500);
615
- color: map-get($light-green-contrast, 500);
616
- }
617
- .lime.matcha-button-outline .ripple, .background-lime-alpha {background: rgba(map-get($lime, 500), 0.2)}
618
- .lime .ripple{background: rgba(map-get($lime-contrast, 500), 0.2)}
619
- .background-lime{background: map-get($lime, 500)}
620
- .border-color-lime{border-color: map-get($lime, 500)}
621
- .lime.matcha-button-outline, .color-lime{color: map-get($lime, 500)}
622
- .fill-lime{fill: map-get($lime, 500)}
623
- .stroke-lime{stroke: map-get($lime, 500)}
624
- .lime{
625
- background: map-get($lime, 500);
626
- color: map-get($lime-contrast, 500);
627
- }
628
- .yellow.matcha-button-outline .ripple, .background-yellow-alpha {background: rgba(map-get($yellow, 500), 0.2)}
629
- .yellow .ripple{background: rgba(map-get($yellow-contrast, 500), 0.2)}
630
- .background-yellow{background: map-get($yellow, 500)}
631
- .border-color-yellow{border-color: map-get($yellow, 500)}
632
- .yellow.matcha-button-outline, .color-yellow{color: map-get($yellow, 500)}
633
- .fill-yellow{fill: map-get($yellow, 500)}
634
- .stroke-yellow{stroke: map-get($yellow, 500)}
635
- .yellow{
636
- background: map-get($yellow, 500);
637
- color: map-get($yellow-contrast, 500);
638
- }
639
- .amber.matcha-button-outline .ripple, .background-amber-alpha {background: rgba(map-get($amber, 500), 0.2)}
640
- .amber .ripple{background: rgba(map-get($amber-contrast, 500), 0.2)}
641
- .background-amber{background: map-get($amber, 500)}
642
- .border-color-amber{border-color: map-get($amber, 500)}
643
- .amber.matcha-button-outline, .color-amber{color: map-get($amber, 500)}
644
- .fill-amber{fill: map-get($amber, 500)}
645
- .stroke-amber{stroke: map-get($amber, 500)}
646
- .amber{
647
- background: map-get($amber, 500);
648
- color: map-get($amber-contrast, 500);
649
- }
650
- .orange.matcha-button-outline .ripple, .background-orange-alpha {background: rgba(map-get($orange, 500), 0.2)}
651
- .orange .ripple{background: rgba(map-get($orange-contrast, 500), 0.2)}
652
- .background-orange{background: map-get($orange, 500)}
653
- .border-color-orange{border-color: map-get($orange, 500)}
654
- .orange.matcha-button-outline, .color-orange{color: map-get($orange, 500)}
655
- .fill-orange{fill: map-get($orange, 500)}
656
- .stroke-orange{stroke: map-get($orange, 500)}
657
- .orange{
658
- background: map-get($orange, 500);
659
- color: map-get($orange-contrast, 500);
660
- }
661
- .deep-orange.matcha-button-outline .ripple, .background-deep-orange-alpha {background: rgba(map-get($deep-orange, 500), 0.2)}
662
- .deep-orange .ripple{background: rgba(map-get($deep-orange-contrast, 500), 0.2)}
663
- .background-deep-orange{background: map-get($deep-orange, 500)}
664
- .border-color-deep-orange{border-color: map-get($deep-orange, 500)}
665
- .deep-orange.matcha-button-outline, .color-deep-orange{color: map-get($deep-orange, 500)}
666
- .fill-deep-orange{fill: map-get($deep-orange, 500)}
667
- .stroke-deep-orange{stroke: map-get($deep-orange, 500)}
668
- .deep-orange{
669
- background: map-get($deep-orange, 500);
670
- color: map-get($deep-orange-contrast, 500);
671
- }
672
- .brown.matcha-button-outline .ripple, .background-brown-alpha {background: rgba(map-get($brown, 500), 0.2)}
673
- .brown .ripple{background: rgba(map-get($brown-contrast, 500), 0.2)}
674
- .background-brown{background: map-get($brown, 500)}
675
- .border-color-brown{border-color: map-get($brown, 500)}
676
- .brown.matcha-button-outline, .color-brown{color: map-get($brown, 500)}
677
- .fill-brown{fill: map-get($brown, 500)}
678
- .stroke-brown{stroke: map-get($brown, 500)}
679
- .brown{
680
- background: map-get($brown, 500);
681
- color: map-get($brown-contrast, 500);
682
- }
683
- .grey.matcha-button-outline .ripple, .background-grey-alpha {background: rgba(map-get($grey, 500), 0.2)}
684
- .grey .ripple{background: rgba(map-get($grey-contrast, 500), 0.2)}
685
- .background-grey{background: map-get($grey, 500)}
686
- .border-color-grey{border-color: map-get($grey, 500)}
687
- .grey.matcha-button-outline, .color-grey{color: map-get($grey, 500)}
688
- .fill-grey{fill: map-get($grey, 500)}
689
- .stroke-grey{stroke: map-get($grey, 500)}
690
- .grey{
691
- background: map-get($grey, 500);
692
- color: map-get($grey-contrast, 500);
693
- }
694
- .blue-grey.matcha-button-outline .ripple, .background-blue-grey-alpha {background: rgba(map-get($blue-grey, 500), 0.2)}
695
- .blue-grey .ripple{background: rgba(map-get($blue-grey-contrast, 500), 0.2)}
696
- .background-blue-grey{background: map-get($blue-grey, 500)}
697
- .border-color-blue-grey{border-color: map-get($blue-grey, 500)}
698
- .blue-grey.matcha-button-outline, .color-blue-grey{color: map-get($blue-grey, 500)}
699
- .fill-blue-grey{fill: map-get($blue-grey, 500)}
700
- .stroke-blue-grey{stroke: map-get($blue-grey, 500)}
701
- .blue-grey{
702
- background: map-get($blue-grey, 500);
703
- color: map-get($blue-grey-contrast, 500);
704
- }
705
- .primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, 500), 0.2)}
706
- .primary .ripple{background: rgba(map-get($primary-contrast, 500), 0.2)}
707
- .background-primary{background: map-get($primary, 500)}
708
- .border-color-primary{border-color: map-get($primary, 500)}
709
- .primary.matcha-button-outline, .color-primary{color: map-get($primary, 500)}
710
- .fill-primary{fill: map-get($primary, 500)}
711
- .stroke-primary{stroke: map-get($primary, 500)}
712
- .primary{
713
- background: map-get($primary, 500);
714
- color: map-get($primary-contrast, 500);
715
- }
716
- .accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, 500), 0.2)}
717
- .accent .ripple{background: rgba(map-get($accent-contrast, 500), 0.2)}
718
- .background-accent{background: map-get($accent, 500)}
719
- .border-color-accent{border-color: map-get($accent, 500)}
720
- .accent.matcha-button-outline, .color-accent{color: map-get($accent, 500)}
721
- .fill-accent{fill: map-get($accent, 500)}
722
- .stroke-accent{stroke: map-get($accent, 500)}
723
- .accent{
724
- background: map-get($accent, 500);
725
- color: map-get($accent-contrast, 500);
726
- }
727
- .warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, 500), 0.2)}
728
- .warn .ripple{background: rgba(map-get($warn-contrast, 500), 0.2)}
729
- .background-warn{background: map-get($warn, 500)}
730
- .border-color-warn{border-color: map-get($warn, 500)}
731
- .warn.matcha-button-outline, .color-warn{color: map-get($warn, 500)}
732
- .fill-warn{fill: map-get($warn, 500)}
733
- .stroke-warn{stroke: map-get($warn, 500)}
734
- .warn{
735
- background: map-get($warn, 500);
736
- color: map-get($warn-contrast, 500);
737
- }
738
- }
739
-
740
- $attributes: (
741
- color: $foreground,
742
- border-color: $foreground,
743
- background: $background,
744
- fill: $background,
745
- stroke: $background
746
- );
747
-
748
- .base-surface {
749
- background: map-get($background, card);
750
- color: map-get($foreground, text);
751
- &-alpha {
752
- background: rgba(map-get($background, card), 0.5) !important;
753
- }
754
- }
755
- .base-fg {
756
- background: map-get($foreground, text);
757
- color: map-get($foreground, text-inverse);
758
- &-alpha {
759
- background: rgba(map-get($foreground, text), 0.2) !important;
760
- }
761
- }
762
- .base-bg {
763
- background: map-get($background, background);
764
- color: map-get($foreground, text);
765
- &-alpha {
766
- background: map-get($background, background-alpha) !important;
767
- }
768
- }
769
-
770
- .background-transparent,
771
- .matcha-background-transparent {
772
- background: transparent;
773
- }
774
-
775
- @each $attribute, $colorLevel in $attributes {
776
- @if ($attribute != "color") {
777
- .#{$attribute}-bg {
778
- #{$attribute}: map-get($background, background) !important;
779
- }
780
- .#{$attribute}-bg-alpha {
781
- #{$attribute}: map-get($background, background-alpha) !important;
782
- }
783
- .#{$attribute}-bg-inverse {
784
- #{$attribute}: map-get($background, background-inverse) !important;
785
- }
786
- .#{$attribute}-bg-alpha-inverse {
787
- #{$attribute}: map-get($background, background-alpha-inverse) !important;
788
- }
789
- .#{$attribute}-surface-inverse {
790
- #{$attribute}: map-get($background, card-inverse) !important;
791
- }
792
- .#{$attribute}-surface-alpha-inverse {
793
- #{$attribute}: map-get($background, card-alpha-inverse) !important;
794
- }
795
- }
796
- .#{$attribute}-error {
797
- #{$attribute}: map-get($background, error) !important;
798
- }
799
- .#{$attribute}-info {
800
- #{$attribute}: map-get($background, info) !important;
801
- }
802
- .#{$attribute}-success {
803
- #{$attribute}: map-get($background, success) !important;
804
- }
805
- .#{$attribute}-warning {
806
- #{$attribute}: map-get($background, warning) !important;
807
- }
808
- .#{$attribute}-fg,
809
- .#{$attribute}-base,
810
- .#{$attribute}-text {
811
- #{$attribute}: map-get($foreground, text) !important;
812
- }
813
-
814
- .#{$attribute}-fg-inverse,
815
- .#{$attribute}-base-inverse,
816
- .#{$attribute}-text-inverse {
817
- #{$attribute}: map-get($foreground, text-inverse) !important;
818
- }
819
-
820
- .#{$attribute}-surface {
821
- #{$attribute}: map-get($background, card) !important;
822
- }
823
-
824
- .#{$attribute}-surface-alpha {
825
- #{$attribute}: map-get($background, card-alpha) !important;
826
- }
827
-
828
- .#{$attribute}-placeholder {
829
- #{$attribute}: map-get($foreground, placeholder) !important;
830
- &-alpha {
831
- background: rgba(map-get($foreground, placeholder), 0.2) !important;
832
- }
833
- }
834
-
835
- .#{$attribute}-label {
836
- #{$attribute}: map-get($foreground, label) !important;
837
- }
838
-
839
- .#{$attribute}-disabled {
840
- #{$attribute}: map-get($background, disabled) !important;
841
- }
842
-
843
- .#{$attribute}-disabled-icon {
844
- #{$attribute}: map-get($foreground, disabled-icon) !important;
845
- }
846
-
847
- .#{$attribute}-selected {
848
- #{$attribute}: map-get($background, selected-button) !important;
849
- }
850
- }
851
- }