matcha-theme 19.31.0 → 19.33.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.
@@ -95,20 +95,17 @@ a[matcha-button] {
95
95
  &[size="large"],
96
96
  &[size="huge"] {
97
97
  min-width: 24px;
98
- &.stroked {
99
- box-shadow: 0px 0px 0px 2px inset;
100
- }
101
98
  }
102
99
 
103
100
  @include generate-matcha-button-size-classes($helper-breakpoints);
104
101
 
105
102
 
106
103
  &:hover{
107
- filter: brightness(1.05);
104
+ // filter: brightness(1.02);
108
105
  }
109
106
 
110
107
  &:active{
111
- filter: brightness(1.1);
108
+ // filter: brightness(0.98);
112
109
  }
113
110
 
114
111
  &[disabled] {
@@ -190,483 +187,451 @@ a[matcha-button] {
190
187
  }
191
188
 
192
189
  @mixin matcha-button-theme($theme) {
193
- $is-dark: map-get($theme, is-dark);
194
- $palettes: getBaseColorsPalettes();
195
- // colors from base palette
196
- $red: map-get($palettes, red);
197
- $red-contrast: map-get($red, 'contrast');
198
- $pink: map-get($palettes, pink);
199
- $pink-contrast: map-get($pink, 'contrast');
200
- $purple: map-get($palettes, purple);
201
- $purple-contrast: map-get($purple, 'contrast');
202
- $deep-purple: map-get($palettes, deep-purple);
203
- $deep-purple-contrast: map-get($deep-purple, 'contrast');
204
- $indigo: map-get($palettes, indigo);
205
- $indigo-contrast: map-get($indigo, 'contrast');
206
- $blue: map-get($palettes, blue);
207
- $blue-contrast: map-get($blue, 'contrast');
208
- $light-blue: map-get($palettes, light-blue);
209
- $light-blue-contrast: map-get($light-blue, 'contrast');
210
- $cyan: map-get($palettes, cyan);
211
- $cyan-contrast: map-get($cyan, 'contrast');
212
- $teal: map-get($palettes, teal);
213
- $teal-contrast: map-get($teal, 'contrast');
214
- $green: map-get($palettes, green);
215
- $green-contrast: map-get($green, 'contrast');
216
- $light-green: map-get($palettes, light-green);
217
- $light-green-contrast: map-get($light-green, 'contrast');
218
- $lime: map-get($palettes, lime);
219
- $lime-contrast: map-get($lime, 'contrast');
220
- $yellow: map-get($palettes, yellow);
221
- $yellow-contrast: map-get($yellow, 'contrast');
222
- $amber: map-get($palettes, amber);
223
- $amber-contrast: map-get($amber, 'contrast');
224
- $orange: map-get($palettes, orange);
225
- $orange-contrast: map-get($orange, 'contrast');
226
- $deep-orange: map-get($palettes, deep-orange);
227
- $deep-orange-contrast: map-get($deep-orange, 'contrast');
228
- $brown: map-get($palettes, brown);
229
- $brown-contrast: map-get($brown, 'contrast');
230
- $grey: map-get($palettes, grey);
231
- $grey-contrast: map-get($grey, 'contrast');
232
- $blue-grey: map-get($palettes, blue-grey);
233
- $blue-grey-contrast: map-get($blue-grey, 'contrast');
234
-
235
- // colors from theme
236
- $primary: map-get($theme, primary);
237
- $primary-contrast: map-get($primary, 'contrast');
238
- $accent: map-get($theme, accent);
239
- $accent-contrast: map-get($accent, 'contrast');
240
- $warn: map-get($theme, warn);
241
- $warn-contrast: map-get($warn, 'contrast');
242
-
243
- $background: map-get($theme, background);
244
- $foreground: map-get($theme, foreground);
245
-
246
- $get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
247
190
 
248
191
  button[matcha-button],
249
192
  a[matcha-button] {
250
193
  &:not([color]) .ripple {
251
- background: rgba(map-get($foreground, base), 0.2)
194
+ background: getForegroundAlpha($theme)
252
195
  }
253
196
  // red
254
- &[color="red"][outline]:not([outline="false"]) .ripple {
255
- background: rgba(map-get($red, $get-shade), 0.2)
197
+ &[color="red"][outline]:not([outline="false"]) .ripple,
198
+ &[color="red"][basic]:not([basic="false"]) .ripple {
199
+ background: getRedAlpha($theme)
256
200
  }
257
201
  &[color="red"][alpha]:not([alpha="false"]){
258
- background: rgba(map-get($red, $get-shade), 0.2);
259
- color: map-get($red, $get-shade);
202
+ background: getRedAlpha($theme);
203
+ color: getRed($theme);
260
204
  }
261
205
  &[color="red"][outline]:not([outline="false"]),
262
206
  &[color="red"][link]:not([link="false"]),
263
207
  &[color="red"][basic]:not([basic="false"]) {
264
- color: map-get($red, $get-shade)!important
208
+ color: getRed($theme)!important
265
209
  }
266
210
  &[color="red"]{
267
- background: map-get($red, $get-shade);
268
- color: map-get($red-contrast, $get-shade);
211
+ background: getRed($theme);
212
+ color: getRedContrast($theme);
269
213
  }
270
- &[color="red"] .ripple{background: rgba(map-get($red-contrast, $get-shade), 0.2)}
214
+ &[color="red"] .ripple{background: getRedContrastAlpha($theme)}
271
215
 
272
216
  // pink
273
- &[color="pink"][outline]:not([outline="false"]) .ripple {
274
- background: rgba(map-get($pink, $get-shade), 0.2)
217
+ &[color="pink"][outline]:not([outline="false"]) .ripple,
218
+ &[color="pink"][basic]:not([basic="false"]) .ripple {
219
+ background: getPinkAlpha($theme)
275
220
  }
276
221
  &[color="pink"][alpha]:not([alpha="false"]){
277
- background: rgba(map-get($pink, $get-shade), 0.2);
278
- color: map-get($pink, $get-shade);
222
+ background: getPinkAlpha($theme);
223
+ color: getPink($theme);
279
224
  }
280
225
  &[color="pink"][outline]:not([outline="false"]),
281
226
  &[color="pink"][link]:not([link="false"]),
282
227
  &[color="pink"][basic]:not([basic="false"]) {
283
- color: map-get($pink, $get-shade)!important
228
+ color: getPink($theme)!important
284
229
  }
285
230
  &[color="pink"]{
286
- background: map-get($pink, $get-shade);
287
- color: map-get($pink-contrast, $get-shade);
231
+ background: getPink($theme);
232
+ color: getPinkContrast($theme);
288
233
  }
289
- &[color="pink"] .ripple{background: rgba(map-get($pink-contrast, $get-shade), 0.2)}
234
+ &[color="pink"] .ripple{background: getPinkContrastAlpha($theme)}
290
235
 
291
236
  // purple
292
- &[color="purple"][outline]:not([outline="false"]) .ripple {
293
- background: rgba(map-get($purple, $get-shade), 0.2)
237
+ &[color="purple"][outline]:not([outline="false"]) .ripple,
238
+ &[color="purple"][basic]:not([basic="false"]) .ripple {
239
+ background: getPurpleAlpha($theme)
294
240
  }
295
241
  &[color="purple"][alpha]:not([alpha="false"]){
296
- background: rgba(map-get($purple, $get-shade), 0.2);
297
- color: map-get($purple, $get-shade);
242
+ background: getPurpleAlpha($theme);
243
+ color: getPurple($theme);
298
244
  }
299
245
  &[color="purple"][outline]:not([outline="false"]),
300
246
  &[color="purple"][link]:not([link="false"]),
301
247
  &[color="purple"][basic]:not([basic="false"]) {
302
- color: map-get($purple, $get-shade)!important
248
+ color: getPurple($theme)!important
303
249
  }
304
250
  &[color="purple"]{
305
- background: map-get($purple, $get-shade);
306
- color: map-get($purple-contrast, $get-shade);
251
+ background: getPurple($theme);
252
+ color: getPurpleContrast($theme);
307
253
  }
308
- &[color="purple"] .ripple{background: rgba(map-get($purple-contrast, $get-shade), 0.2)}
254
+ &[color="purple"] .ripple{background: getPurpleContrastAlpha($theme)}
309
255
 
310
256
  // deep-purple
311
- &[color="deep-purple"][outline]:not([outline="false"]) .ripple {
312
- background: rgba(map-get($deep-purple, $get-shade), 0.2)
257
+ &[color="deep-purple"][outline]:not([outline="false"]) .ripple,
258
+ &[color="deep-purple"][basic]:not([basic="false"]) .ripple {
259
+ background: getDeepPurpleAlpha($theme)
313
260
  }
314
261
  &[color="deep-purple"][alpha]:not([alpha="false"]){
315
- background: rgba(map-get($deep-purple, $get-shade), 0.2);
316
- color: map-get($deep-purple, $get-shade);
262
+ background: getDeepPurpleAlpha($theme);
263
+ color: getDeepPurple($theme);
317
264
  }
318
265
  &[color="deep-purple"][outline]:not([outline="false"]),
319
266
  &[color="deep-purple"][link]:not([link="false"]),
320
267
  &[color="deep-purple"][basic]:not([basic="false"]) {
321
- color: map-get($deep-purple, $get-shade)!important
268
+ color: getDeepPurple($theme)!important
322
269
  }
323
270
  &[color="deep-purple"]{
324
- background: map-get($deep-purple, $get-shade);
325
- color: map-get($deep-purple-contrast, $get-shade);
271
+ background: getDeepPurple($theme);
272
+ color: getDeepPurpleContrast($theme);
326
273
  }
327
- &[color="deep-purple"] .ripple{background: rgba(map-get($deep-purple-contrast, $get-shade), 0.2)}
274
+ &[color="deep-purple"] .ripple{background: getDeepPurpleContrastAlpha($theme)}
328
275
 
329
276
  // indigo
330
- &[color="indigo"][outline]:not([outline="false"]) .ripple {
331
- background: rgba(map-get($indigo, $get-shade), 0.2)
277
+ &[color="indigo"][outline]:not([outline="false"]) .ripple,
278
+ &[color="indigo"][basic]:not([basic="false"]) .ripple {
279
+ background: getIndigoAlpha($theme)
332
280
  }
333
281
  &[color="indigo"][alpha]:not([alpha="false"]){
334
- background: rgba(map-get($indigo, $get-shade), 0.2);
335
- color: map-get($indigo, $get-shade);
282
+ background: getIndigoAlpha($theme);
283
+ color: getIndigo($theme);
336
284
  }
337
285
  &[color="indigo"][outline]:not([outline="false"]),
338
286
  &[color="indigo"][link]:not([link="false"]),
339
287
  &[color="indigo"][basic]:not([basic="false"]) {
340
- color: map-get($indigo, $get-shade)!important
288
+ color: getIndigo($theme)!important
341
289
  }
342
290
  &[color="indigo"]{
343
- background: map-get($indigo, $get-shade);
344
- color: map-get($indigo-contrast, $get-shade);
291
+ background: getIndigo($theme);
292
+ color: getIndigoContrast($theme);
345
293
  }
346
- &[color="indigo"] .ripple{background: rgba(map-get($indigo-contrast, $get-shade), 0.2)}
294
+ &[color="indigo"] .ripple{background: getIndigoContrastAlpha($theme)}
347
295
 
348
296
  // blue
349
- &[color="blue"][outline]:not([outline="false"]) .ripple {
350
- background: rgba(map-get($blue, $get-shade), 0.2)
297
+ &[color="blue"][outline]:not([outline="false"]) .ripple,
298
+ &[color="blue"][basic]:not([basic="false"]) .ripple {
299
+ background: getBlueAlpha($theme)
351
300
  }
352
301
  &[color="blue"][alpha]:not([alpha="false"]){
353
- background: rgba(map-get($blue, $get-shade), 0.2);
354
- color: map-get($blue, $get-shade);
302
+ background: getBlueAlpha($theme);
303
+ color: getBlue($theme);
355
304
  }
356
305
  &[color="blue"][outline]:not([outline="false"]),
357
306
  &[color="blue"][link]:not([link="false"]),
358
307
  &[color="blue"][basic]:not([basic="false"]) {
359
- color: map-get($blue, $get-shade)!important
308
+ color: getBlue($theme)!important
360
309
  }
361
310
  &[color="blue"]{
362
- background: map-get($blue, $get-shade);
363
- color: map-get($blue-contrast, $get-shade);
311
+ background: getBlue($theme);
312
+ color: getBlueContrast($theme);
364
313
  }
365
- &[color="blue"] .ripple{background: rgba(map-get($blue-contrast, $get-shade), 0.2)}
314
+ &[color="blue"] .ripple{background: getBlueContrastAlpha($theme)}
366
315
 
367
316
  // light-blue
368
- &[color="light-blue"][outline]:not([outline="false"]) .ripple {
369
- background: rgba(map-get($light-blue, $get-shade), 0.2)
317
+ &[color="light-blue"][outline]:not([outline="false"]) .ripple,
318
+ &[color="light-blue"][basic]:not([basic="false"]) .ripple {
319
+ background: getLightBlueAlpha($theme)
370
320
  }
371
321
  &[color="light-blue"][alpha]:not([alpha="false"]){
372
- background: rgba(map-get($light-blue, $get-shade), 0.2);
373
- color: map-get($light-blue, $get-shade);
322
+ background: getLightBlueAlpha($theme);
323
+ color: getLightBlue($theme);
374
324
  }
375
325
  &[color="light-blue"][outline]:not([outline="false"]),
376
326
  &[color="light-blue"][link]:not([link="false"]),
377
327
  &[color="light-blue"][basic]:not([basic="false"]) {
378
- color: map-get($light-blue, $get-shade)!important
328
+ color: getLightBlue($theme)!important
379
329
  }
380
330
  &[color="light-blue"]{
381
- background: map-get($light-blue, $get-shade);
382
- color: map-get($light-blue-contrast, $get-shade);
331
+ background: getLightBlue($theme);
332
+ color: getLightBlueContrast($theme);
383
333
  }
384
- &[color="light-blue"] .ripple{background: rgba(map-get($light-blue-contrast, $get-shade), 0.2)}
334
+ &[color="light-blue"] .ripple{background: getLightBlueContrastAlpha($theme)}
385
335
 
386
336
  // cyan
387
- &[color="cyan"][outline]:not([outline="false"]) .ripple {
388
- background: rgba(map-get($cyan, $get-shade), 0.2)
337
+ &[color="cyan"][outline]:not([outline="false"]) .ripple,
338
+ &[color="cyan"][basic]:not([basic="false"]) .ripple {
339
+ background: getCyanAlpha($theme)
389
340
  }
390
341
  &[color="cyan"][alpha]:not([alpha="false"]){
391
- background: rgba(map-get($cyan, $get-shade), 0.2);
392
- color: map-get($cyan, $get-shade);
342
+ background: getCyanAlpha($theme);
343
+ color: getCyan($theme);
393
344
  }
394
345
  &[color="cyan"][outline]:not([outline="false"]),
395
346
  &[color="cyan"][link]:not([link="false"]),
396
347
  &[color="cyan"][basic]:not([basic="false"]) {
397
- color: map-get($cyan, $get-shade)!important
348
+ color: getCyan($theme)!important
398
349
  }
399
350
  &[color="cyan"]{
400
- background: map-get($cyan, $get-shade);
401
- color: map-get($cyan-contrast, $get-shade);
351
+ background: getCyan($theme);
352
+ color: getCyanContrast($theme);
402
353
  }
403
- &[color="cyan"] .ripple{background: rgba(map-get($cyan-contrast, $get-shade), 0.2)}
354
+ &[color="cyan"] .ripple{background: getCyanContrastAlpha($theme)}
404
355
 
405
356
  // teal
406
- &[color="teal"][outline]:not([outline="false"]) .ripple {
407
- background: rgba(map-get($teal, $get-shade), 0.2)
357
+ &[color="teal"][outline]:not([outline="false"]) .ripple,
358
+ &[color="teal"][basic]:not([basic="false"]) .ripple {
359
+ background: getTealAlpha($theme)
408
360
  }
409
361
  &[color="teal"][alpha]:not([alpha="false"]){
410
- background: rgba(map-get($teal, $get-shade), 0.2);
411
- color: map-get($teal, $get-shade);
362
+ background: getTealAlpha($theme);
363
+ color: getTeal($theme);
412
364
  }
413
365
  &[color="teal"][outline]:not([outline="false"]),
414
366
  &[color="teal"][link]:not([link="false"]),
415
367
  &[color="teal"][basic]:not([basic="false"]) {
416
- color: map-get($teal, $get-shade)!important
368
+ color: getTeal($theme)!important
417
369
  }
418
370
  &[color="teal"]{
419
- background: map-get($teal, $get-shade);
420
- color: map-get($teal-contrast, $get-shade);
371
+ background: getTeal($theme);
372
+ color: getTealContrast($theme);
421
373
  }
422
- &[color="teal"] .ripple{background: rgba(map-get($teal-contrast, $get-shade), 0.2)}
374
+ &[color="teal"] .ripple{background: getTealContrastAlpha($theme)}
423
375
 
424
376
  // green
425
- &[color="green"][outline]:not([outline="false"]) .ripple {
426
- background: rgba(map-get($green, $get-shade), 0.2)
377
+ &[color="green"][outline]:not([outline="false"]) .ripple,
378
+ &[color="green"][basic]:not([basic="false"]) .ripple {
379
+ background: getGreenAlpha($theme)
427
380
  }
428
381
  &[color="green"][alpha]:not([alpha="false"]){
429
- background: rgba(map-get($green, $get-shade), 0.2);
430
- color: map-get($green, $get-shade);
382
+ background: getGreenAlpha($theme);
383
+ color: getGreen($theme);
431
384
  }
432
385
  &[color="green"][outline]:not([outline="false"]),
433
386
  &[color="green"][link]:not([link="false"]),
434
387
  &[color="green"][basic]:not([basic="false"]) {
435
- color: map-get($green, $get-shade)!important
388
+ color: getGreen($theme)!important
436
389
  }
437
390
  &[color="green"]{
438
- background: map-get($green, $get-shade);
439
- color: map-get($green-contrast, $get-shade);
391
+ background: getGreen($theme);
392
+ color: getGreenContrast($theme);
440
393
  }
441
- &[color="green"] .ripple{background: rgba(map-get($green-contrast, $get-shade), 0.2)}
394
+ &[color="green"] .ripple{background: getGreenContrastAlpha($theme)}
442
395
 
443
396
  // light-green
444
- &[color="light-green"][outline]:not([outline="false"]) .ripple {
445
- background: rgba(map-get($light-green, $get-shade), 0.2)
397
+ &[color="light-green"][outline]:not([outline="false"]) .ripple,
398
+ &[color="light-green"][basic]:not([basic="false"]) .ripple {
399
+ background: getLightGreenAlpha($theme)
446
400
  }
447
401
  &[color="light-green"][alpha]:not([alpha="false"]){
448
- background: rgba(map-get($light-green, $get-shade), 0.2);
449
- color: map-get($light-green, $get-shade);
402
+ background: getLightGreenAlpha($theme);
403
+ color: getLightGreen($theme);
450
404
  }
451
405
  &[color="light-green"][outline]:not([outline="false"]),
452
406
  &[color="light-green"][link]:not([link="false"]),
453
407
  &[color="light-green"][basic]:not([basic="false"]) {
454
- color: map-get($light-green, $get-shade)!important
408
+ color: getLightGreen($theme)!important
455
409
  }
456
410
  &[color="light-green"]{
457
- background: map-get($light-green, $get-shade);
458
- color: map-get($light-green-contrast, $get-shade);
411
+ background: getLightGreen($theme);
412
+ color: getLightGreenContrast($theme);
459
413
  }
460
- &[color="light-green"] .ripple{background: rgba(map-get($light-green-contrast, $get-shade), 0.2)}
414
+ &[color="light-green"] .ripple{background: getLightGreenContrastAlpha($theme)}
461
415
 
462
416
  // lime
463
- &[color="lime"][outline]:not([outline="false"]) .ripple {
464
- background: rgba(map-get($lime, $get-shade), 0.2)
417
+ &[color="lime"][outline]:not([outline="false"]) .ripple,
418
+ &[color="lime"][basic]:not([basic="false"]) .ripple {
419
+ background: getLimeAlpha($theme)
465
420
  }
466
421
  &[color="lime"][alpha]:not([alpha="false"]){
467
- background: rgba(map-get($lime, $get-shade), 0.2);
468
- color: map-get($lime, $get-shade);
422
+ background: getLimeAlpha($theme);
423
+ color: getLime($theme);
469
424
  }
470
425
  &[color="lime"][outline]:not([outline="false"]),
471
426
  &[color="lime"][link]:not([link="false"]),
472
427
  &[color="lime"][basic]:not([basic="false"]) {
473
- color: map-get($lime, $get-shade)!important
428
+ color: getLime($theme)!important
474
429
  }
475
430
  &[color="lime"]{
476
- background: map-get($lime, $get-shade);
477
- color: map-get($lime-contrast, $get-shade);
431
+ background: getLime($theme);
432
+ color: getLimeContrast($theme);
478
433
  }
479
- &[color="lime"] .ripple{background: rgba(map-get($lime-contrast, $get-shade), 0.2)}
434
+ &[color="lime"] .ripple{background: getLimeContrastAlpha($theme)}
480
435
 
481
436
  // yellow
482
- &[color="yellow"][outline]:not([outline="false"]) .ripple {
483
- background: rgba(map-get($yellow, $get-shade), 0.2)
437
+ &[color="yellow"][outline]:not([outline="false"]) .ripple,
438
+ &[color="yellow"][basic]:not([basic="false"]) .ripple {
439
+ background: getYellowAlpha($theme)
484
440
  }
485
441
  &[color="yellow"][alpha]:not([alpha="false"]){
486
- background: rgba(map-get($yellow, $get-shade), 0.2);
487
- color: map-get($yellow, $get-shade);
442
+ background: getYellowAlpha($theme);
443
+ color: getYellow($theme);
488
444
  }
489
445
  &[color="yellow"][outline]:not([outline="false"]),
490
446
  &[color="yellow"][link]:not([link="false"]),
491
447
  &[color="yellow"][basic]:not([basic="false"]) {
492
- color: map-get($yellow, $get-shade)!important
448
+ color: getYellow($theme)!important
493
449
  }
494
450
  &[color="yellow"]{
495
- background: map-get($yellow, $get-shade);
496
- color: map-get($yellow-contrast, $get-shade);
451
+ background: getYellow($theme);
452
+ color: getYellowContrast($theme);
497
453
  }
498
- &[color="yellow"] .ripple{background: rgba(map-get($yellow-contrast, $get-shade), 0.2)}
454
+ &[color="yellow"] .ripple{background: getYellowContrastAlpha($theme)}
499
455
 
500
456
  // amber
501
- &[color="amber"][outline]:not([outline="false"]) .ripple {
502
- background: rgba(map-get($amber, $get-shade), 0.2)
457
+ &[color="amber"][outline]:not([outline="false"]) .ripple,
458
+ &[color="amber"][basic]:not([basic="false"]) .ripple {
459
+ background: getAmberAlpha($theme)
503
460
  }
504
461
  &[color="amber"][alpha]:not([alpha="false"]){
505
- background: rgba(map-get($amber, $get-shade), 0.2);
506
- color: map-get($amber, $get-shade);
462
+ background: getAmberAlpha($theme);
463
+ color: getAmber($theme);
507
464
  }
508
465
  &[color="amber"][outline]:not([outline="false"]),
509
466
  &[color="amber"][link]:not([link="false"]),
510
467
  &[color="amber"][basic]:not([basic="false"]) {
511
- color: map-get($amber, $get-shade)!important
468
+ color: getAmber($theme)!important
512
469
  }
513
470
  &[color="amber"]{
514
- background: map-get($amber, $get-shade);
515
- color: map-get($amber-contrast, $get-shade);
471
+ background: getAmber($theme);
472
+ color: getAmberContrast($theme);
516
473
  }
517
- &[color="amber"] .ripple{background: rgba(map-get($amber-contrast, $get-shade), 0.2)}
474
+ &[color="amber"] .ripple{background: getAmberContrastAlpha($theme)}
518
475
 
519
476
  // orange
520
- &[color="orange"][outline]:not([outline="false"]) .ripple {
521
- background: rgba(map-get($orange, $get-shade), 0.2)
477
+ &[color="orange"][outline]:not([outline="false"]) .ripple,
478
+ &[color="orange"][basic]:not([basic="false"]) .ripple {
479
+ background: getOrangeAlpha($theme)
522
480
  }
523
481
  &[color="orange"][alpha]:not([alpha="false"]){
524
- background: rgba(map-get($orange, $get-shade), 0.2);
525
- color: map-get($orange, $get-shade);
482
+ background: getOrangeAlpha($theme);
483
+ color: getOrange($theme);
526
484
  }
527
485
  &[color="orange"][outline]:not([outline="false"]),
528
486
  &[color="orange"][link]:not([link="false"]),
529
487
  &[color="orange"][basic]:not([basic="false"]) {
530
- color: map-get($orange, $get-shade)!important
488
+ color: getOrange($theme)!important
531
489
  }
532
490
  &[color="orange"]{
533
- background: map-get($orange, $get-shade);
534
- color: map-get($orange-contrast, $get-shade);
491
+ background: getOrange($theme);
492
+ color: getOrangeContrast($theme);
535
493
  }
536
- &[color="orange"] .ripple{background: rgba(map-get($orange-contrast, $get-shade), 0.2)}
494
+ &[color="orange"] .ripple{background: getOrangeContrastAlpha($theme)}
537
495
 
538
496
  // deep-orange
539
- &[color="deep-orange"][outline]:not([outline="false"]) .ripple {
540
- background: rgba(map-get($deep-orange, $get-shade), 0.2)
497
+ &[color="deep-orange"][outline]:not([outline="false"]) .ripple,
498
+ &[color="deep-orange"][basic]:not([basic="false"]) .ripple {
499
+ background: getDeepOrangeAlpha($theme)
541
500
  }
542
501
  &[color="deep-orange"][alpha]:not([alpha="false"]){
543
- background: rgba(map-get($deep-orange, $get-shade), 0.2);
544
- color: map-get($deep-orange, $get-shade);
502
+ background: getDeepOrangeAlpha($theme);
503
+ color: getDeepOrange($theme);
545
504
  }
546
505
  &[color="deep-orange"][outline]:not([outline="false"]),
547
506
  &[color="deep-orange"][link]:not([link="false"]),
548
507
  &[color="deep-orange"][basic]:not([basic="false"]) {
549
- color: map-get($deep-orange, $get-shade)!important
508
+ color: getDeepOrange($theme)!important
550
509
  }
551
510
  &[color="deep-orange"]{
552
- background: map-get($deep-orange, $get-shade);
553
- color: map-get($deep-orange-contrast, $get-shade);
511
+ background: getDeepOrange($theme);
512
+ color: getDeepOrangeContrast($theme);
554
513
  }
555
- &[color="deep-orange"] .ripple{background: rgba(map-get($deep-orange-contrast, $get-shade), 0.2)}
514
+ &[color="deep-orange"] .ripple{background: getDeepOrangeContrastAlpha($theme)}
556
515
 
557
516
  // brown
558
- &[color="brown"][outline]:not([outline="false"]) .ripple {
559
- background: rgba(map-get($brown, $get-shade), 0.2)
517
+ &[color="brown"][outline]:not([outline="false"]) .ripple,
518
+ &[color="brown"][basic]:not([basic="false"]) .ripple {
519
+ background: getBrownAlpha($theme)
560
520
  }
561
521
  &[color="brown"][alpha]:not([alpha="false"]){
562
- background: rgba(map-get($brown, $get-shade), 0.2);
563
- color: map-get($brown, $get-shade);
522
+ background: getBrownAlpha($theme);
523
+ color: getBrown($theme);
564
524
  }
565
525
  &[color="brown"][outline]:not([outline="false"]),
566
526
  &[color="brown"][link]:not([link="false"]),
567
527
  &[color="brown"][basic]:not([basic="false"]) {
568
- color: map-get($brown, $get-shade)!important
528
+ color: getBrown($theme)!important
569
529
  }
570
530
  &[color="brown"]{
571
- background: map-get($brown, $get-shade);
572
- color: map-get($brown-contrast, $get-shade);
531
+ background: getBrown($theme);
532
+ color: getBrownContrast($theme);
573
533
  }
574
- &[color="brown"] .ripple{background: rgba(map-get($brown-contrast, $get-shade), 0.2)}
534
+ &[color="brown"] .ripple{background: getBrownContrastAlpha($theme)}
575
535
 
576
536
  // grey
577
- &[color="grey"][outline]:not([outline="false"]) .ripple {
578
- background: rgba(map-get($grey, $get-shade), 0.2)
537
+ &[color="grey"][outline]:not([outline="false"]) .ripple,
538
+ &[color="grey"][basic]:not([basic="false"]) .ripple {
539
+ background: getGreyAlpha($theme)
579
540
  }
580
541
  &[color="grey"][alpha]:not([alpha="false"]){
581
- background: rgba(map-get($grey, $get-shade), 0.2);
582
- color: map-get($grey, $get-shade);
542
+ background: getGreyAlpha($theme);
543
+ color: getGrey($theme);
583
544
  }
584
545
  &[color="grey"][outline]:not([outline="false"]),
585
546
  &[color="grey"][link]:not([link="false"]),
586
547
  &[color="grey"][basic]:not([basic="false"]) {
587
- color: map-get($grey, $get-shade)!important
548
+ color: getGrey($theme)!important
588
549
  }
589
550
  &[color="grey"]{
590
- background: map-get($grey, $get-shade);
591
- color: map-get($grey-contrast, $get-shade);
551
+ background: getGrey($theme);
552
+ color: getGreyContrast($theme);
592
553
  }
593
- &[color="grey"] .ripple{background: rgba(map-get($grey-contrast, $get-shade), 0.2)}
554
+ &[color="grey"] .ripple{background: getGreyContrastAlpha($theme)}
594
555
 
595
556
  // blue-grey
596
- &[color="blue-grey"][outline]:not([outline="false"]) .ripple {
597
- background: rgba(map-get($blue-grey, $get-shade), 0.2)
557
+ &[color="blue-grey"][outline]:not([outline="false"]) .ripple,
558
+ &[color="blue-grey"][basic]:not([basic="false"]) .ripple {
559
+ background: getBlueGreyAlpha($theme)
598
560
  }
599
561
  &[color="blue-grey"][alpha]:not([alpha="false"]){
600
- background: rgba(map-get($blue-grey, $get-shade), 0.2);
601
- color: map-get($blue-grey, $get-shade);
562
+ background: getBlueGreyAlpha($theme);
563
+ color: getBlueGrey($theme);
602
564
  }
603
565
  &[color="blue-grey"][outline]:not([outline="false"]),
604
566
  &[color="blue-grey"][link]:not([link="false"]),
605
567
  &[color="blue-grey"][basic]:not([basic="false"]) {
606
- color: map-get($blue-grey, $get-shade)!important
568
+ color: getBlueGrey($theme)!important
607
569
  }
608
570
  &[color="blue-grey"]{
609
- background: map-get($blue-grey, $get-shade);
610
- color: map-get($blue-grey-contrast, $get-shade);
571
+ background: getBlueGrey($theme);
572
+ color: getBlueGreyContrast($theme);
611
573
  }
612
- &[color="blue-grey"] .ripple{background: rgba(map-get($blue-grey-contrast, $get-shade), 0.2)}
574
+ &[color="blue-grey"] .ripple{background: getBlueGreyContrastAlpha($theme)}
613
575
 
614
576
  // primary
615
- &[color="primary"][outline]:not([outline="false"]) .ripple {
616
- background: rgba(map-get($primary, default), 0.2)
577
+ &[color="primary"][outline]:not([outline="false"]) .ripple,
578
+ &[color="primary"][basic]:not([basic="false"]) .ripple {
579
+ background: getPrimaryAlpha($theme)
617
580
  }
618
581
  &[color="primary"][alpha]:not([alpha="false"]){
619
- background: rgba(map-get($primary, default), 0.2);
620
- color: map-get($primary, default);
582
+ background: getPrimaryAlpha($theme);
583
+ color: getPrimary($theme);
621
584
  }
622
585
  &[color="primary"][outline]:not([outline="false"]),
623
586
  &[color="primary"][link]:not([link="false"]),
624
587
  &[color="primary"][basic]:not([basic="false"]) {
625
- color: map-get($primary, default)!important
588
+ color: getPrimary($theme)!important
626
589
  }
627
590
  &[color="primary"]{
628
- background: map-get($primary, default);
629
- color: map-get($primary, default-contrast);
591
+ background: getPrimary($theme);
592
+ color: getPrimaryContrast($theme);
630
593
  }
631
- &[color="primary"] .ripple{background: rgba(map-get($primary, default-contrast), 0.2)}
594
+ &[color="primary"] .ripple{background: getPrimaryContrastAlpha($theme)}
632
595
 
633
596
  // accent
634
- &[color="accent"][outline]:not([outline="false"]) .ripple {
635
- background: rgba(map-get($accent, default), 0.2)
597
+ &[color="accent"][outline]:not([outline="false"]) .ripple,
598
+ &[color="accent"][basic]:not([basic="false"]) .ripple {
599
+ background: getAccentAlpha($theme)
636
600
  }
637
601
  &[color="accent"][alpha]:not([alpha="false"]){
638
- background: rgba(map-get($accent, default), 0.2);
639
- color: map-get($accent, default);
602
+ background: getAccentAlpha($theme);
603
+ color: getAccent($theme);
640
604
  }
641
605
  &[color="accent"][outline]:not([outline="false"]),
642
606
  &[color="accent"][link]:not([link="false"]),
643
607
  &[color="accent"][basic]:not([basic="false"]) {
644
- color: map-get($accent, default)!important
608
+ color: getAccent($theme)!important
645
609
  }
646
610
  &[color="accent"]{
647
- background: map-get($accent, default);
648
- color: map-get($accent, default-contrast);
611
+ background: getAccent($theme);
612
+ color: getAccentContrast($theme);
649
613
  }
650
- &[color="accent"] .ripple{background: rgba(map-get($accent, default-contrast), 0.2)}
614
+ &[color="accent"] .ripple{background: getAccentContrastAlpha($theme)}
651
615
 
652
616
  // warn
653
- &[color="warn"][outline]:not([outline="false"]) .ripple {
654
- background: rgba(map-get($warn, default), 0.2)
617
+ &[color="warn"][outline]:not([outline="false"]) .ripple,
618
+ &[color="warn"][basic]:not([basic="false"]) .ripple {
619
+ background: getWarnAlpha($theme)
655
620
  }
656
621
  &[color="warn"][alpha]:not([alpha="false"]){
657
- background: rgba(map-get($warn, default), 0.2);
658
- color: map-get($warn, default);
622
+ background: getWarnAlpha($theme);
623
+ color: getWarn($theme);
659
624
  }
660
625
  &[color="warn"][outline]:not([outline="false"]),
661
626
  &[color="warn"][link]:not([link="false"]),
662
627
  &[color="warn"][basic]:not([basic="false"]) {
663
- color: map-get($warn, default)!important
628
+ color: getWarn($theme)!important
664
629
  }
665
630
  &[color="warn"]{
666
- background: map-get($warn, default);
667
- color: map-get($warn, default-contrast);
631
+ background: getWarn($theme);
632
+ color: getWarnContrast($theme);
668
633
  }
669
- &[color="warn"] .ripple{background: rgba(map-get($warn, default-contrast), 0.2)}
634
+ &[color="warn"] .ripple{background: getWarnContrastAlpha($theme)}
670
635
 
671
636
  }
672
637
 
@@ -674,50 +639,32 @@ a[matcha-button] {
674
639
  a[matcha-button] {
675
640
  border: 0px solid currentColor;
676
641
 
677
- &[size="tiny"],
678
- &[size="small"],
679
- &[size="medium"],
680
- &[size="large"],
681
- &[size="huge"] {
682
-
683
- &.stroked {
684
-
685
- &.color-label {
686
- box-shadow: 0px 0px 0px 2px inset map-get($foreground, label);
687
- color: map-get($foreground, label);
688
- }
689
-
690
- &.color-placeholder {
691
- box-shadow: 0px 0px 0px 2px inset map-get($foreground, placeholder);
692
- color: map-get($foreground, placeholder);
693
- }
694
- }
695
- }
696
-
697
642
  &[disabled] {
698
- background-color: map-get($background, disabled);
699
- color: map-get($foreground, disabled-icon) !important;
700
- border-color: map-get($foreground, disabled);
643
+ background-color: getDisabled($theme);
644
+ color: getDisabledContrast($theme) !important;
645
+ border-color: getDisabled($theme);
701
646
  }
702
647
 
703
648
  &[outline]:not([outline="false"]) {
704
649
  border: 0px solid currentColor;
705
650
  background: transparent !important;
706
651
  &:not([color]){
707
- border-color: map-get($foreground, base);
708
- color: map-get($foreground, base);
652
+ border-color: getForeground($theme);
653
+ color: getForeground($theme);
709
654
  }
710
655
  &[disabled] {
711
- box-shadow: 0 0 0 2px map-get($foreground, disabled-icon);
712
- color: map-get($foreground, disabled-icon) !important;
656
+ box-shadow: 0 0 0 2px getDisabledContrast($theme);
657
+ color: getDisabledContrast($theme) !important;
713
658
  }
714
659
  }
715
660
 
716
661
  &[basic]:not([basic="false"]){
717
- background: map-get($background, card);
718
-
662
+ background: getSurface($theme);
663
+ &:not([color]){
664
+ color: getForeground($theme);
665
+ }
719
666
  &[disabled] {
720
- color: map-get($foreground, disabled-icon) !important;
667
+ color: getDisabledContrast($theme) !important;
721
668
  }
722
669
  &[alpha]:not([alpha="false"]){
723
670
  background:transparent;
@@ -725,15 +672,20 @@ a[matcha-button] {
725
672
  }
726
673
 
727
674
  &[alpha]:not([alpha="false"]){
675
+ &:not([color]){
676
+ background: rgba(getForeground($theme), 0.2);
677
+ border-color: getForeground($theme);
678
+ color: getForeground($theme);
679
+ }
728
680
  &[disabled] {
729
- background: rgba(map-get($background, disabled), 0.2);
681
+ background: rgba(getDisabled($theme), 0.2);
730
682
  }
731
683
  }
732
684
 
733
685
  &[link]:not([link="false"]) {
734
686
  background-color: transparent;
735
687
  &:not([color]){
736
- color: map-get($foreground, label);
688
+ color: getForeground($theme);
737
689
  }
738
690
  }
739
691
  }