matcha-theme 19.56.0 → 19.58.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.
@@ -134,66 +134,37 @@ $index: 0;
134
134
  // @ Dynamic color classes generator
135
135
  // -------------------------------------------------------------------------------------------------------------------
136
136
  @mixin colors-classes-dynamic($theme) {
137
+ $accent: map-get($theme, accent);
138
+ $warn: map-get($theme, warn);
139
+ $primary: map-get($theme, primary);
137
140
  $background: map-get($theme, background);
138
141
  $foreground: map-get($theme, foreground);
139
142
 
140
- $is-dark: map-get($theme, is-dark);
141
- $get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
142
-
143
- // colors from theme
144
- $primary: map-get($theme, primary);
145
- $primary-contrast: map-get($primary, 'contrast');
146
- $accent: map-get($theme, accent);
147
- $accent-contrast: map-get($accent, 'contrast');
148
- $warn: map-get($theme, warn);
149
- $warn-contrast: map-get($warn, 'contrast');
150
-
151
- // colors from base palette
152
- $palettes: getBaseColorsPalettes();
153
-
154
- $red-palette: map-get($palettes, red);
155
- $red-contrast-palette: map-get($red-palette, 'contrast');
156
- $red-color: map-get($red-palette, $get-shade);
157
- $red-color-alpha: rgba($red-color, 0.2);
158
- $red-contrast: map-get($red-contrast-palette, $get-shade);
159
- $red-contrast-alpha: rgba($red-contrast, 0.2);
160
-
161
- $pink: map-get($palettes, pink);
162
- $pink-contrast: map-get($pink, 'contrast');
163
- $purple: map-get($palettes, purple);
164
- $purple-contrast: map-get($purple, 'contrast');
165
- $deep-purple: map-get($palettes, deep-purple);
166
- $deep-purple-contrast: map-get($deep-purple, 'contrast');
167
- $indigo: map-get($palettes, indigo);
168
- $indigo-contrast: map-get($indigo, 'contrast');
169
- $blue: map-get($palettes, blue);
170
- $blue-contrast: map-get($blue, 'contrast');
171
- $light-blue: map-get($palettes, light-blue);
172
- $light-blue-contrast: map-get($light-blue, 'contrast');
173
- $cyan: map-get($palettes, cyan);
174
- $cyan-contrast: map-get($cyan, 'contrast');
175
- $teal: map-get($palettes, teal);
176
- $teal-contrast: map-get($teal, 'contrast');
177
- $green: map-get($palettes, green);
178
- $green-contrast: map-get($green, 'contrast');
179
- $light-green: map-get($palettes, light-green);
180
- $light-green-contrast: map-get($light-green, 'contrast');
181
- $lime: map-get($palettes, lime);
182
- $lime-contrast: map-get($lime, 'contrast');
183
- $yellow: map-get($palettes, yellow);
184
- $yellow-contrast: map-get($yellow, 'contrast');
185
- $amber: map-get($palettes, amber);
186
- $amber-contrast: map-get($amber, 'contrast');
187
- $orange: map-get($palettes, orange);
188
- $orange-contrast: map-get($orange, 'contrast');
189
- $deep-orange: map-get($palettes, deep-orange);
190
- $deep-orange-contrast: map-get($deep-orange, 'contrast');
191
- $brown: map-get($palettes, brown);
192
- $brown-contrast: map-get($brown, 'contrast');
193
- $grey: map-get($palettes, grey);
194
- $grey-contrast: map-get($grey, 'contrast');
195
- $blue-grey: map-get($palettes, blue-grey);
196
- $blue-grey-contrast: map-get($blue-grey, 'contrast');
143
+ $color-functions: (
144
+ red: getRed,
145
+ pink: getPink,
146
+ purple: getPurple,
147
+ deep-purple: getDeepPurple,
148
+ indigo: getIndigo,
149
+ blue: getBlue,
150
+ light-blue: getLightBlue,
151
+ cyan: getCyan,
152
+ teal: getTeal,
153
+ green: getGreen,
154
+ light-green: getLightGreen,
155
+ lime: getLime,
156
+ yellow: getYellow,
157
+ amber: getAmber,
158
+ orange: getOrange,
159
+ deep-orange: getDeepOrange,
160
+ brown: getBrown,
161
+ grey: getGrey,
162
+ blue-grey: getBlueGrey,
163
+ primary: getPrimary,
164
+ accent: getAccent,
165
+ warn: getWarn,
166
+ disabled: getDisabled,
167
+ );
197
168
 
198
169
  @include colors-classes-static($theme);
199
170
 
@@ -203,361 +174,23 @@ $index: 0;
203
174
  background: map-get($foreground, text );
204
175
  }
205
176
  }
206
-
207
- .background-red-alpha {background: getRedAlpha($theme)}
208
- .red .ripple{background: getRedAlpha($theme)}
209
- .background-red{background: getRed($theme)}
210
- .border-color-red{border-color: getRed($theme)}
211
- .color-red{color: getRed($theme)!important}
212
- .fill-red{fill: getRed($theme)}
213
- .stroke-red{stroke: getRed($theme)}
214
- .color-red-alpha{color: getRedAlpha($theme)!important}
215
- .red-alpha{
216
- background: getRedAlpha($theme);
217
- color: getRedContrast($theme);
218
- }
219
- .red{
220
- background: getRed($theme);
221
- color: getRedContrast($theme);
222
- }
223
- .background-pink-alpha {background: getPinkAlpha($theme)}
224
- .pink .ripple{background: getPinkAlpha($theme)}
225
- .background-pink{background: getPink($theme)}
226
- .border-color-pink{border-color: getPink($theme)}
227
- .color-pink{color: getPink($theme)!important}
228
- .fill-pink{fill: getPink($theme)}
229
- .stroke-pink{stroke: getPink($theme)}
230
- .color-pink-alpha{color: getPinkAlpha($theme)!important}
231
- .pink-alpha{
232
- background: getPinkAlpha($theme);
233
- color: getPinkContrast($theme);
234
- }
235
- .pink{
236
- background: getPink($theme);
237
- color: getPinkContrast($theme);
238
- }
239
- .background-purple-alpha {background: getPurpleAlpha($theme)}
240
- .purple .ripple{background: getPurpleAlpha($theme)}
241
- .background-purple{background: getPurple($theme)}
242
- .border-color-purple{border-color: getPurple($theme)}
243
- .color-purple{color: getPurple($theme)!important}
244
- .fill-purple{fill: getPurple($theme)}
245
- .stroke-purple{stroke: getPurple($theme)}
246
- .color-purple-alpha{color: getPurpleAlpha($theme)!important}
247
- .purple-alpha{
248
- background: getPurpleAlpha($theme);
249
- color: getPurpleContrast($theme);
250
- }
251
- .purple{
252
- background: getPurple($theme);
253
- color: getPurpleContrast($theme);
254
- }
255
- .background-deep-purple-alpha {background: getDeepPurpleAlpha($theme)}
256
- .deep-purple .ripple{background: getDeepPurpleAlpha($theme)}
257
- .background-deep-purple{background: getDeepPurple($theme)}
258
- .border-color-deep-purple{border-color: getDeepPurple($theme)}
259
- .color-deep-purple{color: getDeepPurple($theme)!important}
260
- .fill-deep-purple{fill: getDeepPurple($theme)}
261
- .stroke-deep-purple{stroke: getDeepPurple($theme)}
262
- .color-deep-purple-alpha{color: getDeepPurpleAlpha($theme)!important}
263
- .deep-purple-alpha{
264
- background: getDeepPurpleAlpha($theme);
265
- color: getDeepPurpleContrast($theme);
266
- }
267
- .deep-purple{
268
- background: getDeepPurple($theme);
269
- color: getDeepPurpleContrast($theme);
270
- }
271
- .background-indigo-alpha {background: getIndigoAlpha($theme)}
272
- .indigo .ripple{background: getIndigoAlpha($theme)}
273
- .background-indigo{background: getIndigo($theme)}
274
- .border-color-indigo{border-color: getIndigo($theme)}
275
- .color-indigo{color: getIndigo($theme)!important}
276
- .fill-indigo{fill: getIndigo($theme)}
277
- .stroke-indigo{stroke: getIndigo($theme)}
278
- .color-indigo-alpha{color: getIndigoAlpha($theme)!important}
279
- .indigo-alpha{
280
- background: getIndigoAlpha($theme);
281
- color: getIndigoContrast($theme);
282
- }
283
- .indigo{
284
- background: getIndigo($theme);
285
- color: getIndigoContrast($theme);
286
- }
287
- .background-blue-alpha {background: getBlueAlpha($theme)}
288
- .blue .ripple{background: getBlueAlpha($theme)}
289
- .background-blue{background: getBlue($theme)}
290
- .border-color-blue{border-color: getBlue($theme)}
291
- .color-blue{color: getBlue($theme)!important}
292
- .fill-blue{fill: getBlue($theme)}
293
- .stroke-blue{stroke: getBlue($theme)}
294
- .color-blue-alpha{color: getBlueAlpha($theme)!important}
295
- .blue-alpha{
296
- background: getBlueAlpha($theme);
297
- color: getBlueContrast($theme);
298
- }
299
- .blue{
300
- background: getBlue($theme);
301
- color: getBlueContrast($theme);
302
- }
303
- .background-light-blue-alpha {background: getLightBlueAlpha($theme)}
304
- .light-blue .ripple{background: getLightBlueAlpha($theme)}
305
- .background-light-blue{background: getLightBlue($theme)}
306
- .border-color-light-blue{border-color: getLightBlue($theme)}
307
- .color-light-blue{color: getLightBlue($theme)!important}
308
- .fill-light-blue{fill: getLightBlue($theme)}
309
- .stroke-light-blue{stroke: getLightBlue($theme)}
310
- .color-light-blue-alpha{color: getLightBlueAlpha($theme)!important}
311
- .light-blue-alpha{
312
- background: getLightBlueAlpha($theme);
313
- color: getLightBlueContrast($theme);
314
- }
315
- .light-blue{
316
- background: getLightBlue($theme);
317
- color: getLightBlueContrast($theme);
318
- }
319
- .background-cyan-alpha {background: getCyanAlpha($theme)}
320
- .cyan .ripple{background: getCyanAlpha($theme)}
321
- .background-cyan{background: getCyan($theme)}
322
- .border-color-cyan{border-color: getCyan($theme)}
323
- .color-cyan{color: getCyan($theme)!important}
324
- .fill-cyan{fill: getCyan($theme)}
325
- .stroke-cyan{stroke: getCyan($theme)}
326
- .color-cyan-alpha{color: getCyanAlpha($theme)!important}
327
- .cyan-alpha{
328
- background: getCyanAlpha($theme);
329
- color: getCyanContrast($theme);
330
- }
331
- .cyan{
332
- background: getCyan($theme);
333
- color: getCyanContrast($theme);
334
- }
335
- .background-teal-alpha {background: getTealAlpha($theme)}
336
- .teal .ripple{background: getTealAlpha($theme)}
337
- .background-teal{background: getTeal($theme)}
338
- .border-color-teal{border-color: getTeal($theme)}
339
- .color-teal{color: getTeal($theme)!important}
340
- .fill-teal{fill: getTeal($theme)}
341
- .stroke-teal{stroke: getTeal($theme)}
342
- .color-teal-alpha{color: getTealAlpha($theme)!important}
343
- .teal-alpha{
344
- background: getTealAlpha($theme);
345
- color: getTealContrast($theme);
346
- }
347
- .teal{
348
- background: getTeal($theme);
349
- color: getTealContrast($theme);
350
- }
351
- .background-green-alpha {background: getGreenAlpha($theme)}
352
- .green .ripple{background: getGreenAlpha($theme)}
353
- .background-green{background: getGreen($theme)}
354
- .border-color-green{border-color: getGreen($theme)}
355
- .color-green{color: getGreen($theme)!important}
356
- .fill-green{fill: getGreen($theme)}
357
- .stroke-green{stroke: getGreen($theme)}
358
- .color-green-alpha{color: getGreenAlpha($theme)!important}
359
- .green-alpha{
360
- background: getGreenAlpha($theme);
361
- color: getGreenContrast($theme);
362
- }
363
- .green{
364
- background: getGreen($theme);
365
- color: getGreenContrast($theme);
366
- }
367
- .background-light-green-alpha {background: getLightGreenAlpha($theme)}
368
- .light-green .ripple{background: getLightGreenAlpha($theme)}
369
- .background-light-green{background: getLightGreen($theme)}
370
- .border-color-light-green{border-color: getLightGreen($theme)}
371
- .color-light-green{color: getLightGreen($theme)!important}
372
- .fill-light-green{fill: getLightGreen($theme)}
373
- .stroke-light-green{stroke: getLightGreen($theme)}
374
- .color-light-green-alpha{color: getLightGreenAlpha($theme)!important}
375
- .light-green-alpha{
376
- background: getLightGreenAlpha($theme);
377
- color: getLightGreenContrast($theme);
378
- }
379
- .light-green{
380
- background: getLightGreen($theme);
381
- color: getLightGreenContrast($theme);
382
- }
383
- .background-lime-alpha {background: getLimeAlpha($theme)}
384
- .lime .ripple{background: getLimeAlpha($theme)}
385
- .background-lime{background: getLime($theme)}
386
- .border-color-lime{border-color: getLime($theme)}
387
- .color-lime{color: getLime($theme)!important}
388
- .fill-lime{fill: getLime($theme)}
389
- .stroke-lime{stroke: getLime($theme)}
390
- .color-lime-alpha{color: getLimeAlpha($theme)!important}
391
- .lime-alpha{
392
- background: getLimeAlpha($theme);
393
- color: getLimeContrast($theme);
394
- }
395
- .lime{
396
- background: getLime($theme);
397
- color: getLimeContrast($theme);
398
- }
399
- .background-yellow-alpha {background: getYellowAlpha($theme)}
400
- .yellow .ripple{background: getYellowAlpha($theme)}
401
- .background-yellow{background: getYellow($theme)}
402
- .border-color-yellow{border-color: getYellow($theme)}
403
- .color-yellow{color: getYellow($theme)!important}
404
- .fill-yellow{fill: getYellow($theme)}
405
- .stroke-yellow{stroke: getYellow($theme)}
406
- .color-yellow-alpha{color: getYellowAlpha($theme)!important}
407
- .yellow-alpha{
408
- background: getYellowAlpha($theme);
409
- color: getYellowContrast($theme);
410
- }
411
- .yellow{
412
- background: getYellow($theme);
413
- color: getYellowContrast($theme);
414
- }
415
- .background-amber-alpha {background: getAmberAlpha($theme)}
416
- .amber .ripple{background: getAmberAlpha($theme)}
417
- .background-amber{background: getAmber($theme)}
418
- .border-color-amber{border-color: getAmber($theme)}
419
- .color-amber{color: getAmber($theme)!important}
420
- .fill-amber{fill: getAmber($theme)}
421
- .stroke-amber{stroke: getAmber($theme)}
422
- .color-amber-alpha{color: getAmberAlpha($theme)!important}
423
- .amber-alpha{
424
- background: getAmberAlpha($theme);
425
- color: getAmberContrast($theme);
426
- }
427
- .amber{
428
- background: getAmber($theme);
429
- color: getAmberContrast($theme);
430
- }
431
- .background-orange-alpha {background: getOrangeAlpha($theme)}
432
- .orange .ripple{background: getOrangeAlpha($theme)}
433
- .background-orange{background: getOrange($theme)}
434
- .border-color-orange{border-color: getOrange($theme)}
435
- .color-orange{color: getOrange($theme)!important}
436
- .fill-orange{fill: getOrange($theme)}
437
- .stroke-orange{stroke: getOrange($theme)}
438
- .color-orange-alpha{color: getOrangeAlpha($theme)!important}
439
- .orange-alpha{
440
- background: getOrangeAlpha($theme);
441
- color: getOrangeContrast($theme);
442
- }
443
- .orange{
444
- background: getOrange($theme);
445
- color: getOrangeContrast($theme);
446
- }
447
- .background-deep-orange-alpha {background: getDeepOrangeAlpha($theme)}
448
- .deep-orange .ripple{background: getDeepOrangeAlpha($theme)}
449
- .background-deep-orange{background: getDeepOrange($theme)}
450
- .border-color-deep-orange{border-color: getDeepOrange($theme)}
451
- .color-deep-orange{color: getDeepOrange($theme)!important}
452
- .fill-deep-orange{fill: getDeepOrange($theme)}
453
- .stroke-deep-orange{stroke: getDeepOrange($theme)}
454
- .color-deep-orange-alpha{color: getDeepOrangeAlpha($theme)!important}
455
- .deep-orange-alpha{
456
- background: getDeepOrangeAlpha($theme);
457
- color: getDeepOrangeContrast($theme);
458
- }
459
- .deep-orange{
460
- background: getDeepOrange($theme);
461
- color: getDeepOrangeContrast($theme);
462
- }
463
- .background-brown-alpha {background: getBrownAlpha($theme)}
464
- .brown .ripple{background: getBrownAlpha($theme)}
465
- .background-brown{background: getBrown($theme)}
466
- .border-color-brown{border-color: getBrown($theme)}
467
- .color-brown{color: getBrown($theme)!important}
468
- .fill-brown{fill: getBrown($theme)}
469
- .stroke-brown{stroke: getBrown($theme)}
470
- .color-brown-alpha{color: getBrownAlpha($theme)!important}
471
- .brown-alpha{
472
- background: getBrownAlpha($theme);
473
- color: getBrownContrast($theme);
474
- }
475
- .brown{
476
- background: getBrown($theme);
477
- color: getBrownContrast($theme);
478
- }
479
- .background-grey-alpha {background: getGreyAlpha($theme)}
480
- .grey .ripple{background: getGreyAlpha($theme)}
481
- .background-grey{background: getGrey($theme)}
482
- .border-color-grey{border-color: getGrey($theme)}
483
- .color-grey{color: getGrey($theme)!important}
484
- .fill-grey{fill: getGrey($theme)}
485
- .stroke-grey{stroke: getGrey($theme)}
486
- .color-grey-alpha{color: getGreyAlpha($theme)!important}
487
- .grey-alpha{
488
- background: getGreyAlpha($theme);
489
- color: getGreyContrast($theme);
490
- }
491
- .grey{
492
- background: getGrey($theme);
493
- color: getGreyContrast($theme);
494
- }
495
- .background-blue-grey-alpha {background: getBlueGreyAlpha($theme)}
496
- .blue-grey .ripple{background: getBlueGreyAlpha($theme)}
497
- .background-blue-grey{background: getBlueGrey($theme)}
498
- .border-color-blue-grey{border-color: getBlueGrey($theme)}
499
- .color-blue-grey{color: getBlueGrey($theme)!important}
500
- .fill-blue-grey{fill: getBlueGrey($theme)}
501
- .stroke-blue-grey{stroke: getBlueGrey($theme)}
502
- .color-blue-grey-alpha{color: getBlueGreyAlpha($theme)!important}
503
- .blue-grey-alpha{
504
- background: getBlueGreyAlpha($theme);
505
- color: getBlueGreyContrast($theme);
506
- }
507
- .blue-grey{
508
- background: getBlueGrey($theme);
509
- color: getBlueGreyContrast($theme);
510
- }
511
-
512
- .background-primary-alpha {background: getPrimaryAlpha($theme)}
513
- .primary .ripple{background: getPrimaryContrastAlpha($theme)}
514
- .background-primary{background: getPrimary($theme)}
515
- .border-color-primary{border-color: getPrimary($theme)}
516
- .color-primary{color: getPrimary($theme)!important}
517
- .fill-primary{fill: getPrimary($theme)}
518
- .stroke-primary{stroke: getPrimary($theme)}
519
- .color-primary-alpha{color: getPrimaryAlpha($theme)!important}
520
- .primary-alpha{
521
- background: getPrimaryAlpha($theme);
522
- color: getPrimaryContrast($theme);
523
- }
524
- .primary{
525
- background: getPrimary($theme);
526
- color: getPrimaryContrast($theme);
527
- }
528
-
529
- .background-accent-alpha {background: getAccentAlpha($theme)}
530
- .accent .ripple{background: getAccentContrastAlpha($theme)}
531
- .background-accent{background: getAccent($theme)}
532
- .border-color-accent{border-color: getAccent($theme)}
533
- .color-accent{color: getAccent($theme)!important}
534
- .fill-accent{fill: getAccent($theme)}
535
- .stroke-accent{stroke: getAccent($theme)}
536
- .color-accent-alpha{color: getAccentAlpha($theme)!important}
537
- .accent-alpha{
538
- background: getAccentAlpha($theme);
539
- color: getAccentContrast($theme);
540
- }
541
- .accent{
542
- background: getAccent($theme);
543
- color: getAccentContrast($theme);
544
- }
545
-
546
- .background-warn-alpha {background: getWarnAlpha($theme)}
547
- .warn .ripple{background: getWarnContrastAlpha($theme)}
548
- .background-warn{background: getWarn($theme)}
549
- .border-color-warn{border-color: getWarn($theme)}
550
- .color-warn{color: getWarn($theme)!important}
551
- .fill-warn{fill: getWarn($theme)}
552
- .stroke-warn{stroke: getWarn($theme)}
553
- .color-warn-alpha{color: getWarnAlpha($theme)!important}
554
- .warn-alpha{
555
- background: getWarnAlpha($theme);
556
- color: getWarnContrast($theme);
557
- }
558
- .warn{
559
- background: getWarn($theme);
560
- color: getWarnContrast($theme);
177
+ @each $colorName, $colorFn in $color-functions {
178
+ .background-#{$colorName}-alpha {background: call(#{$colorFn}Alpha, $theme)}
179
+ .#{$colorName} .ripple{background: call(#{$colorFn}Alpha, $theme)}
180
+ .background-#{$colorName}{background: call(#{$colorFn}, $theme)}
181
+ .border-color-#{$colorName}{border-color: call(#{$colorFn}, $theme)}
182
+ .color-#{$colorName}{color: call(#{$colorFn}, $theme)!important}
183
+ .fill-#{$colorName}{fill: call(#{$colorFn}, $theme)}
184
+ .stroke-#{$colorName}{stroke: call(#{$colorFn}, $theme)}
185
+ .color-#{$colorName}-alpha{color: call(#{$colorFn}Alpha, $theme)!important}
186
+ .#{$colorName}-alpha{
187
+ background: call(#{$colorFn}Alpha, $theme);
188
+ color: call(#{$colorFn}, $theme);
189
+ }
190
+ .#{$colorName}{
191
+ background: call(#{$colorFn}, $theme);
192
+ color: call(#{$colorFn}Contrast, $theme);
193
+ }
561
194
  }
562
195
 
563
196
  .background-basic-alpha {background: getForegroundAlpha($theme)}
@@ -585,15 +218,9 @@ $index: 0;
585
218
  background: transparent;
586
219
  }
587
220
 
588
- $attributes: (
589
- color: $foreground,
590
- border-color: $foreground,
591
- background: $background,
592
- fill: $background,
593
- stroke: $background
221
+ $attributes: (color, border-color, background, fill, stroke
594
222
  );
595
-
596
- @each $attribute, $colorLevel in $attributes {
223
+ @each $attribute in $attributes {
597
224
  @if ($attribute != "color") {
598
225
  .#{$attribute}-bg {
599
226
  #{$attribute}: getBackground($theme) !important;