matcha-theme 19.26.0 → 19.28.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.
@@ -1,19 +1,605 @@
1
1
  @mixin matcha-cards-theme($theme) {
2
+ $is-dark: map-get($theme, is-dark);
3
+ $palettes: getBaseColorsPalettes();
4
+ // colors from base palette
5
+ $red: map-get($palettes, red);
6
+ $red-contrast: map-get($red, 'contrast');
7
+ $pink: map-get($palettes, pink);
8
+ $pink-contrast: map-get($pink, 'contrast');
9
+ $purple: map-get($palettes, purple);
10
+ $purple-contrast: map-get($purple, 'contrast');
11
+ $deep-purple: map-get($palettes, deep-purple);
12
+ $deep-purple-contrast: map-get($deep-purple, 'contrast');
13
+ $indigo: map-get($palettes, indigo);
14
+ $indigo-contrast: map-get($indigo, 'contrast');
15
+ $blue: map-get($palettes, blue);
16
+ $blue-contrast: map-get($blue, 'contrast');
17
+ $light-blue: map-get($palettes, light-blue);
18
+ $light-blue-contrast: map-get($light-blue, 'contrast');
19
+ $cyan: map-get($palettes, cyan);
20
+ $cyan-contrast: map-get($cyan, 'contrast');
21
+ $teal: map-get($palettes, teal);
22
+ $teal-contrast: map-get($teal, 'contrast');
23
+ $green: map-get($palettes, green);
24
+ $green-contrast: map-get($green, 'contrast');
25
+ $light-green: map-get($palettes, light-green);
26
+ $light-green-contrast: map-get($light-green, 'contrast');
27
+ $lime: map-get($palettes, lime);
28
+ $lime-contrast: map-get($lime, 'contrast');
29
+ $yellow: map-get($palettes, yellow);
30
+ $yellow-contrast: map-get($yellow, 'contrast');
31
+ $amber: map-get($palettes, amber);
32
+ $amber-contrast: map-get($amber, 'contrast');
33
+ $orange: map-get($palettes, orange);
34
+ $orange-contrast: map-get($orange, 'contrast');
35
+ $deep-orange: map-get($palettes, deep-orange);
36
+ $deep-orange-contrast: map-get($deep-orange, 'contrast');
37
+ $brown: map-get($palettes, brown);
38
+ $brown-contrast: map-get($brown, 'contrast');
39
+ $grey: map-get($palettes, grey);
40
+ $grey-contrast: map-get($grey, 'contrast');
41
+ $blue-grey: map-get($palettes, blue-grey);
42
+ $blue-grey-contrast: map-get($blue-grey, 'contrast');
43
+
44
+ // colors from theme
2
45
  $primary: map-get($theme, primary);
46
+ $primary-contrast: map-get($primary, 'contrast');
3
47
  $accent: map-get($theme, accent);
48
+ $accent-contrast: map-get($accent, 'contrast');
4
49
  $warn: map-get($theme, warn);
50
+ $warn-contrast: map-get($warn, 'contrast');
51
+
5
52
  $background: map-get($theme, background);
6
53
  $foreground: map-get($theme, foreground);
7
54
 
55
+ $get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
56
+
57
+ matcha-card,
8
58
  .matcha-card,
9
59
  .matcha-card-flat {
10
- // background: map-get($background, card);
60
+ &[basic]:not([basic="false"]) {
61
+ box-shadow: 0px 0px 0px 0px inset;
62
+ }
63
+
64
+ &[link]:not([link="false"]) {
65
+ text-transform: initial;
66
+ letter-spacing: 0;
67
+ text-decoration: none;
68
+ padding: 0;
69
+ }
70
+
71
+ &[basic="true"]:not([icon="false"]) {
72
+ border: 0px solid currentColor;
73
+ background: map-get($background, card);
74
+ &:not([color]){
75
+ border-color: map-get($foreground, base);
76
+ background: transparent !important;
77
+ }
78
+ &[color]:not([outline]){
79
+ background: map-get($background, card)!important;
80
+ }
81
+ }
82
+
83
+ &[outline]:not([outline="false"]) {
84
+ box-shadow: 0px 0px 0px 2px inset;
85
+ border: 0px solid currentColor;
86
+ background: transparent !important;
87
+ &:not([color]){
88
+ border-color: map-get($foreground, base);
89
+ color: map-get($foreground, base);
90
+ }
91
+ }
92
+
93
+ &:not([color]) {
94
+ background: map-get($background, card);
95
+ color: map-get($foreground, base);
96
+ }
97
+ // red
98
+ &[color="red"][alpha]:not([alpha="false"]){
99
+ background: rgba(map-get($red, $get-shade), 0.2);
100
+ color: map-get($foreground, base)
101
+ }
102
+ &[color="red"][tint]:not([tint="false"]){
103
+ background: rgba(map-get($red, $get-shade), 0.2);
104
+ color: map-get($red, $get-shade);
105
+ }
106
+ &[color="red"][outline]:not([outline="false"]),
107
+ &[color="red"][link]:not([link="false"]),
108
+ &[color="red"][basic]:not([basic="false"]) {
109
+ color: map-get($red, $get-shade)!important
110
+ }
111
+ &[color="red"]{
112
+ background: map-get($red, $get-shade);
113
+ color: map-get($red-contrast, $get-shade);
114
+ }
115
+
116
+ // pink
117
+ &[color="pink"][alpha]:not([alpha="false"]){
118
+ background: rgba(map-get($pink, $get-shade), 0.2);
119
+ color: map-get($foreground, base)
120
+ }
121
+ &[color="pink"][tint]:not([tint="false"]){
122
+ background: rgba(map-get($pink, $get-shade), 0.2);
123
+ color: map-get($pink, $get-shade);
124
+ }
125
+ &[color="pink"][outline]:not([outline="false"]),
126
+ &[color="pink"][link]:not([link="false"]),
127
+ &[color="pink"][basic]:not([basic="false"]) {
128
+ color: map-get($pink, $get-shade)!important
129
+ }
130
+ &[color="pink"]{
131
+ background: map-get($pink, $get-shade);
132
+ color: map-get($pink-contrast, $get-shade);
133
+ }
134
+
135
+ // purple
136
+ &[color="purple"][alpha]:not([alpha="false"]){
137
+ background: rgba(map-get($purple, $get-shade), 0.2);
138
+ color: map-get($foreground, base)
139
+ }
140
+ &[color="purple"][tint]:not([tint="false"]){
141
+ background: rgba(map-get($purple, $get-shade), 0.2);
142
+ color: map-get($purple, $get-shade);
143
+ }
144
+ &[color="purple"][outline]:not([outline="false"]),
145
+ &[color="purple"][link]:not([link="false"]),
146
+ &[color="purple"][basic]:not([basic="false"]) {
147
+ color: map-get($purple, $get-shade)!important
148
+ }
149
+ &[color="purple"]{
150
+ background: map-get($purple, $get-shade);
151
+ color: map-get($purple-contrast, $get-shade);
152
+ }
153
+
154
+ // deep-purple
155
+ &[color="deep-purple"][alpha]:not([alpha="false"]){
156
+ background: rgba(map-get($deep-purple, $get-shade), 0.2);
157
+ color: map-get($foreground, base)
158
+ }
159
+ &[color="deep-purple"][tint]:not([tint="false"]){
160
+ background: rgba(map-get($deep-purple, $get-shade), 0.2);
161
+ color: map-get($deep-purple, $get-shade);
162
+ }
163
+ &[color="deep-purple"][outline]:not([outline="false"]),
164
+ &[color="deep-purple"][link]:not([link="false"]),
165
+ &[color="deep-purple"][basic]:not([basic="false"]) {
166
+ color: map-get($deep-purple, $get-shade)!important
167
+ }
168
+ &[color="deep-purple"]{
169
+ background: map-get($deep-purple, $get-shade);
170
+ color: map-get($deep-purple-contrast, $get-shade);
171
+ }
172
+
173
+ // indigo
174
+ &[color="indigo"][alpha]:not([alpha="false"]){
175
+ background: rgba(map-get($indigo, $get-shade), 0.2);
176
+ color: map-get($foreground, base)
177
+ }
178
+ &[color="indigo"][tint]:not([tint="false"]){
179
+ background: rgba(map-get($indigo, $get-shade), 0.2);
180
+ color: map-get($indigo, $get-shade);
181
+ }
182
+ &[color="indigo"][outline]:not([outline="false"]),
183
+ &[color="indigo"][link]:not([link="false"]),
184
+ &[color="indigo"][basic]:not([basic="false"]) {
185
+ color: map-get($indigo, $get-shade)!important
186
+ }
187
+ &[color="indigo"]{
188
+ background: map-get($indigo, $get-shade);
189
+ color: map-get($indigo-contrast, $get-shade);
190
+ }
191
+
192
+ // blue
193
+ &[color="blue"][alpha]:not([alpha="false"]){
194
+ background: rgba(map-get($blue, $get-shade), 0.2);
195
+ color: map-get($foreground, base)
196
+ }
197
+ &[color="blue"][tint]:not([tint="false"]){
198
+ background: rgba(map-get($blue, $get-shade), 0.2);
199
+ color: map-get($blue, $get-shade);
200
+ }
201
+ &[color="blue"][outline]:not([outline="false"]),
202
+ &[color="blue"][link]:not([link="false"]),
203
+ &[color="blue"][basic]:not([basic="false"]) {
204
+ color: map-get($blue, $get-shade)!important
205
+ }
206
+ &[color="blue"]{
207
+ background: map-get($blue, $get-shade);
208
+ color: map-get($blue-contrast, $get-shade);
209
+ }
210
+
211
+ // light-blue
212
+ &[color="light-blue"][alpha]:not([alpha="false"]){
213
+ background: rgba(map-get($light-blue, $get-shade), 0.2);
214
+ color: map-get($foreground, base)
215
+ }
216
+ &[color="light-blue"][tint]:not([tint="false"]){
217
+ background: rgba(map-get($light-blue, $get-shade), 0.2);
218
+ color: map-get($light-blue, $get-shade);
219
+ }
220
+ &[color="light-blue"][outline]:not([outline="false"]),
221
+ &[color="light-blue"][link]:not([link="false"]),
222
+ &[color="light-blue"][basic]:not([basic="false"]) {
223
+ color: map-get($light-blue, $get-shade)!important
224
+ }
225
+ &[color="light-blue"]{
226
+ background: map-get($light-blue, $get-shade);
227
+ color: map-get($light-blue-contrast, $get-shade);
228
+ }
229
+
230
+ // cyan
231
+ &[color="cyan"][alpha]:not([alpha="false"]){
232
+ background: rgba(map-get($cyan, $get-shade), 0.2);
233
+ color: map-get($foreground, base)
234
+ }
235
+ &[color="cyan"][tint]:not([tint="false"]){
236
+ background: rgba(map-get($cyan, $get-shade), 0.2);
237
+ color: map-get($cyan, $get-shade);
238
+ }
239
+ &[color="cyan"][outline]:not([outline="false"]),
240
+ &[color="cyan"][link]:not([link="false"]),
241
+ &[color="cyan"][basic]:not([basic="false"]) {
242
+ color: map-get($cyan, $get-shade)!important
243
+ }
244
+ &[color="cyan"]{
245
+ background: map-get($cyan, $get-shade);
246
+ color: map-get($cyan-contrast, $get-shade);
247
+ }
248
+
249
+ // teal
250
+ &[color="teal"][alpha]:not([alpha="false"]){
251
+ background: rgba(map-get($teal, $get-shade), 0.2);
252
+ color: map-get($foreground, base)
253
+ }
254
+ &[color="teal"][tint]:not([tint="false"]){
255
+ background: rgba(map-get($teal, $get-shade), 0.2);
256
+ color: map-get($teal, $get-shade);
257
+ }
258
+ &[color="teal"][outline]:not([outline="false"]),
259
+ &[color="teal"][link]:not([link="false"]),
260
+ &[color="teal"][basic]:not([basic="false"]) {
261
+ color: map-get($teal, $get-shade)!important
262
+ }
263
+ &[color="teal"]{
264
+ background: map-get($teal, $get-shade);
265
+ color: map-get($teal-contrast, $get-shade);
266
+ }
267
+
268
+ // green
269
+ &[color="green"][alpha]:not([alpha="false"]){
270
+ background: rgba(map-get($green, $get-shade), 0.2);
271
+ color: map-get($foreground, base)
272
+ }
273
+ &[color="green"][tint]:not([tint="false"]){
274
+ background: rgba(map-get($green, $get-shade), 0.2);
275
+ color: map-get($green, $get-shade);
276
+ }
277
+ &[color="green"][outline]:not([outline="false"]),
278
+ &[color="green"][link]:not([link="false"]),
279
+ &[color="green"][basic]:not([basic="false"]) {
280
+ color: map-get($green, $get-shade)!important
281
+ }
282
+ &[color="green"]{
283
+ background: map-get($green, $get-shade);
284
+ color: map-get($green-contrast, $get-shade);
285
+ }
286
+
287
+ // light-green
288
+ &[color="light-green"][alpha]:not([alpha="false"]){
289
+ background: rgba(map-get($light-green, $get-shade), 0.2);
290
+ color: map-get($foreground, base)
291
+ }
292
+ &[color="light-green"][tint]:not([tint="false"]){
293
+ background: rgba(map-get($light-green, $get-shade), 0.2);
294
+ color: map-get($light-green, $get-shade);
295
+ }
296
+ &[color="light-green"][outline]:not([outline="false"]),
297
+ &[color="light-green"][link]:not([link="false"]),
298
+ &[color="light-green"][basic]:not([basic="false"]) {
299
+ color: map-get($light-green, $get-shade)!important
300
+ }
301
+ &[color="light-green"]{
302
+ background: map-get($light-green, $get-shade);
303
+ color: map-get($light-green-contrast, $get-shade);
304
+ }
305
+
306
+ // lime
307
+ &[color="lime"][alpha]:not([alpha="false"]){
308
+ background: rgba(map-get($lime, $get-shade), 0.2);
309
+ color: map-get($foreground, base)
310
+ }
311
+ &[color="lime"][tint]:not([tint="false"]){
312
+ background: rgba(map-get($lime, $get-shade), 0.2);
313
+ color: map-get($lime, $get-shade);
314
+ }
315
+ &[color="lime"][outline]:not([outline="false"]),
316
+ &[color="lime"][link]:not([link="false"]),
317
+ &[color="lime"][basic]:not([basic="false"]) {
318
+ color: map-get($lime, $get-shade)!important
319
+ }
320
+ &[color="lime"]{
321
+ background: map-get($lime, $get-shade);
322
+ color: map-get($lime-contrast, $get-shade);
323
+ }
324
+
325
+ // yellow
326
+ &[color="yellow"][alpha]:not([alpha="false"]){
327
+ background: rgba(map-get($yellow, $get-shade), 0.2);
328
+ color: map-get($foreground, base)
329
+ }
330
+ &[color="yellow"][tint]:not([tint="false"]){
331
+ background: rgba(map-get($yellow, $get-shade), 0.2);
332
+ color: map-get($yellow, $get-shade);
333
+ }
334
+ &[color="yellow"][outline]:not([outline="false"]),
335
+ &[color="yellow"][link]:not([link="false"]),
336
+ &[color="yellow"][basic]:not([basic="false"]) {
337
+ color: map-get($yellow, $get-shade)!important
338
+ }
339
+ &[color="yellow"]{
340
+ background: map-get($yellow, $get-shade);
341
+ color: map-get($yellow-contrast, $get-shade);
342
+ }
343
+
344
+ // amber
345
+ &[color="amber"][alpha]:not([alpha="false"]){
346
+ background: rgba(map-get($amber, $get-shade), 0.2);
347
+ color: map-get($foreground, base)
348
+ }
349
+ &[color="amber"][tint]:not([tint="false"]){
350
+ background: rgba(map-get($amber, $get-shade), 0.2);
351
+ color: map-get($amber, $get-shade);
352
+ }
353
+ &[color="amber"][outline]:not([outline="false"]),
354
+ &[color="amber"][link]:not([link="false"]),
355
+ &[color="amber"][basic]:not([basic="false"]) {
356
+ color: map-get($amber, $get-shade)!important
357
+ }
358
+ &[color="amber"]{
359
+ background: map-get($amber, $get-shade);
360
+ color: map-get($amber-contrast, $get-shade);
361
+ }
362
+
363
+ // orange
364
+ &[color="orange"][alpha]:not([alpha="false"]){
365
+ background: rgba(map-get($orange, $get-shade), 0.2);
366
+ color: map-get($foreground, base)
367
+ }
368
+ &[color="orange"][tint]:not([tint="false"]){
369
+ background: rgba(map-get($orange, $get-shade), 0.2);
370
+ color: map-get($orange, $get-shade);
371
+ }
372
+ &[color="orange"][outline]:not([outline="false"]),
373
+ &[color="orange"][link]:not([link="false"]),
374
+ &[color="orange"][basic]:not([basic="false"]) {
375
+ color: map-get($orange, $get-shade)!important
376
+ }
377
+ &[color="orange"]{
378
+ background: map-get($orange, $get-shade);
379
+ color: map-get($orange-contrast, $get-shade);
380
+ }
381
+
382
+ // deep-orange
383
+ &[color="deep-orange"][alpha]:not([alpha="false"]){
384
+ background: rgba(map-get($deep-orange, $get-shade), 0.2);
385
+ color: map-get($foreground, base)
386
+ }
387
+ &[color="deep-orange"][tint]:not([tint="false"]){
388
+ background: rgba(map-get($deep-orange, $get-shade), 0.2);
389
+ color: map-get($deep-orange, $get-shade);
390
+ }
391
+ &[color="deep-orange"][outline]:not([outline="false"]),
392
+ &[color="deep-orange"][link]:not([link="false"]),
393
+ &[color="deep-orange"][basic]:not([basic="false"]) {
394
+ color: map-get($deep-orange, $get-shade)!important
395
+ }
396
+ &[color="deep-orange"]{
397
+ background: map-get($deep-orange, $get-shade);
398
+ color: map-get($deep-orange-contrast, $get-shade);
399
+ }
400
+
401
+ // brown
402
+ &[color="brown"][alpha]:not([alpha="false"]){
403
+ background: rgba(map-get($brown, $get-shade), 0.2);
404
+ color: map-get($foreground, base)
405
+ }
406
+ &[color="brown"][tint]:not([tint="false"]){
407
+ background: rgba(map-get($brown, $get-shade), 0.2);
408
+ color: map-get($brown, $get-shade);
409
+ }
410
+ &[color="brown"][outline]:not([outline="false"]),
411
+ &[color="brown"][link]:not([link="false"]),
412
+ &[color="brown"][basic]:not([basic="false"]) {
413
+ color: map-get($brown, $get-shade)!important
414
+ }
415
+ &[color="brown"]{
416
+ background: map-get($brown, $get-shade);
417
+ color: map-get($brown-contrast, $get-shade);
418
+ }
419
+
420
+ // grey
421
+ &[color="grey"][alpha]:not([alpha="false"]){
422
+ background: rgba(map-get($grey, $get-shade), 0.2);
423
+ color: map-get($foreground, base)
424
+ }
425
+ &[color="grey"][tint]:not([tint="false"]){
426
+ background: rgba(map-get($grey, $get-shade), 0.2);
427
+ color: map-get($grey, $get-shade);
428
+ }
429
+ &[color="grey"][outline]:not([outline="false"]),
430
+ &[color="grey"][link]:not([link="false"]),
431
+ &[color="grey"][basic]:not([basic="false"]) {
432
+ color: map-get($grey, $get-shade)!important
433
+ }
434
+ &[color="grey"]{
435
+ background: map-get($grey, $get-shade);
436
+ color: map-get($grey-contrast, $get-shade);
437
+ }
438
+
439
+ // blue-grey
440
+ &[color="blue-grey"][alpha]:not([alpha="false"]){
441
+ background: rgba(map-get($blue-grey, $get-shade), 0.2);
442
+ color: map-get($foreground, base)
443
+ }
444
+ &[color="blue-grey"][tint]:not([tint="false"]){
445
+ background: rgba(map-get($blue-grey, $get-shade), 0.2);
446
+ color: map-get($blue-grey, $get-shade);
447
+ }
448
+ &[color="blue-grey"][outline]:not([outline="false"]),
449
+ &[color="blue-grey"][link]:not([link="false"]),
450
+ &[color="blue-grey"][basic]:not([basic="false"]) {
451
+ color: map-get($blue-grey, $get-shade)!important
452
+ }
453
+ &[color="blue-grey"]{
454
+ background: map-get($blue-grey, $get-shade);
455
+ color: map-get($blue-grey-contrast, $get-shade);
456
+ }
457
+
458
+ // primary
459
+ &[color="primary"][alpha]:not([alpha="false"]){
460
+ background: rgba(map-get($primary, default), 0.2);
461
+ color: map-get($foreground, base)
462
+ }
463
+ &[color="primary"][tint]:not([tint="false"]){
464
+ background: rgba(map-get($primary, default), 0.2);
465
+ color: map-get($primary, default);
466
+ }
467
+ &[color="primary"][outline]:not([outline="false"]),
468
+ &[color="primary"][link]:not([link="false"]),
469
+ &[color="primary"][basic]:not([basic="false"]) {
470
+ color: map-get($primary, default)!important
471
+ }
472
+ &[color="primary"]{
473
+ background: map-get($primary, default);
474
+ color: map-get($primary, default-contrast);
475
+ }
476
+
477
+ // accent
478
+ &[color="accent"][alpha]:not([alpha="false"]){
479
+ background: rgba(map-get($accent, default), 0.2);
480
+ color: map-get($foreground, base)
481
+ }
482
+ &[color="accent"][tint]:not([tint="false"]){
483
+ background: rgba(map-get($accent, default), 0.2);
484
+ color: map-get($accent, default);
485
+ }
486
+ &[color="accent"][outline]:not([outline="false"]),
487
+ &[color="accent"][link]:not([link="false"]),
488
+ &[color="accent"][basic]:not([basic="false"]) {
489
+ color: map-get($accent, default)!important
490
+ }
491
+ &[color="accent"]{
492
+ background: map-get($accent, default);
493
+ color: map-get($accent, default-contrast);
494
+ }
495
+
496
+ // warn
497
+ &[color="warn"][alpha]:not([alpha="false"]){
498
+ background: rgba(map-get($warn, default), 0.2);
499
+ color: map-get($foreground, base)
500
+ }
501
+ &[color="warn"][tint]:not([tint="false"]){
502
+ background: rgba(map-get($warn, default), 0.2);
503
+ color: map-get($warn, default);
504
+ }
505
+ &[color="warn"][outline]:not([outline="false"]),
506
+ &[color="warn"][link]:not([link="false"]),
507
+ &[color="warn"][basic]:not([basic="false"]) {
508
+ color: map-get($warn, default)!important
509
+ }
510
+ &[color="warn"]{
511
+ background: map-get($warn, default);
512
+ color: map-get($warn, default-contrast);
513
+ }
514
+
515
+ // bg
516
+ &[color="bg"][alpha]:not([alpha="false"]){
517
+ background: rgba(map-get($background, background), 0.2);
518
+ color: map-get($foreground, base)
519
+ }
520
+ &[color="bg"][tint]:not([tint="false"]){
521
+ background: rgba(map-get($background, background), 0.2);
522
+ color: map-get($foreground, base);
523
+ }
524
+ &[color="bg"][outline]:not([outline="false"]),
525
+ &[color="bg"][link]:not([link="false"]),
526
+ &[color="bg"][basic]:not([basic="false"]) {
527
+ color: map-get($foreground, base)!important
528
+ }
529
+ &[color="bg"]{
530
+ background: map-get($background, background);
531
+ color: map-get($foreground, base);
532
+ }
533
+
534
+ // surface
535
+ &[color="surface"][alpha]:not([alpha="false"]){
536
+ background: rgba(map-get($background, card), 0.2);
537
+ color: map-get($foreground, base)
538
+ }
539
+ &[color="surface"][tint]:not([tint="false"]){
540
+ background: rgba(map-get($background, card), 0.2);
541
+ color: map-get($foreground, base);
542
+ }
543
+ &[color="surface"][outline]:not([outline="false"]),
544
+ &[color="surface"][link]:not([link="false"]),
545
+ &[color="surface"][basic]:not([basic="false"]) {
546
+ color: map-get($foreground, base)!important
547
+ }
548
+ &[color="surface"]{
549
+ background: map-get($background, card);
550
+ color: map-get($foreground, base);
551
+ }
552
+
553
+ // fg
554
+ &[color="fg"][alpha]:not([alpha="false"]){
555
+ background: rgba(map-get($foreground, base), 0.2);
556
+ color: map-get($foreground, base)
557
+ }
558
+ &[color="fg"][tint]:not([tint="false"]){
559
+ background: rgba(map-get($foreground, base), 0.2);
560
+ color: map-get($foreground, text);
561
+ }
562
+ &[color="fg"][outline]:not([outline="false"]),
563
+ &[color="fg"][link]:not([link="false"]),
564
+ &[color="fg"][basic]:not([basic="false"]) {
565
+ color: map-get($foreground, base)!important
566
+ }
567
+ &[color="fg"]{
568
+ background: map-get($foreground, base);
569
+ color: map-get($foreground, text-inverse);
570
+ }
571
+
572
+ //basic
573
+ &[color="basic"][alpha]:not([alpha="false"]){
574
+ background: rgba(map-get($foreground, base), 0.2);
575
+ color: map-get($foreground, base)
576
+ }
577
+ &[color="basic"][tint]:not([tint="false"]){
578
+ background: rgba(map-get($foreground, base), 0.2);
579
+ color: map-get($foreground, base);
580
+ }
581
+ &[color="basic"][outline]:not([outline="false"]),
582
+ &[color="basic"][link]:not([link="false"]),
583
+ &[color="basic"][basic]:not([basic="false"]) {
584
+ color: map-get($foreground, base)!important
585
+ }
586
+ &[color="basic"]{
587
+ background: map-get($background, card);
588
+ color: map-get($foreground, base);
589
+ }
590
+ &[color="basic"]{
591
+ background: map-get($background, card);
592
+ &:not([color]){
593
+ color: map-get($foreground, base);
594
+ }
595
+ }
11
596
  }
12
597
  }
13
598
 
14
599
  // -----------------------------------------------------------------------------------------------------
15
600
  // @ Cards
16
601
  // -----------------------------------------------------------------------------------------------------
602
+ matcha-card,
17
603
  .matcha-card,
18
604
  .matcha-card-flat {
19
605
  padding: 16px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "19.26.0",
3
+ "version": "19.28.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {