matcha-theme 19.31.0 → 19.35.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.
@@ -133,13 +133,31 @@ $index: 0;
133
133
  // -------------------------------------------------------------------------------------------------------------------
134
134
  // @ Dynamic color classes generator
135
135
  // -------------------------------------------------------------------------------------------------------------------
136
-
137
136
  @mixin colors-classes-dynamic($theme) {
137
+ $background: map-get($theme, background);
138
+ $foreground: map-get($theme, foreground);
139
+
138
140
  $is-dark: map-get($theme, is-dark);
139
- $palettes: getBaseColorsPalettes();
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
+
140
151
  // colors from base palette
141
- $red: map-get($palettes, red);
142
- $red-contrast: map-get($red, 'contrast');
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
+
143
161
  $pink: map-get($palettes, pink);
144
162
  $pink-contrast: map-get($pink, 'contrast');
145
163
  $purple: map-get($palettes, purple);
@@ -177,16 +195,7 @@ $index: 0;
177
195
  $blue-grey: map-get($palettes, blue-grey);
178
196
  $blue-grey-contrast: map-get($blue-grey, 'contrast');
179
197
 
180
- // colors from theme
181
- $primary: map-get($theme, primary);
182
- $primary-contrast: map-get($primary, 'contrast');
183
- $accent: map-get($theme, accent);
184
- $accent-contrast: map-get($accent, 'contrast');
185
- $warn: map-get($theme, warn);
186
- $warn-contrast: map-get($warn, 'contrast');
187
-
188
- $background: map-get($theme, background);
189
- $foreground: map-get($theme, foreground);
198
+ @include colors-classes-static($theme);
190
199
 
191
200
  .color-unset{
192
201
  color: map-get($foreground, text );
@@ -195,385 +204,386 @@ $index: 0;
195
204
  }
196
205
  }
197
206
 
198
- $get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
199
-
200
- .background-red-alpha {background: rgba(map-get($red, $get-shade), 0.2)}
201
- .red .ripple{background: rgba(map-get($red-contrast, $get-shade), 0.2)}
202
- .background-red{background: map-get($red, $get-shade)}
203
- .border-color-red{border-color: map-get($red, $get-shade)}
204
- .color-red{color: map-get($red, $get-shade)!important}
205
- .fill-red{fill: map-get($red, $get-shade)}
206
- .stroke-red{stroke: map-get($red, $get-shade)}
207
- .color-red-alpha{color: rgba(map-get($red, $get-shade),0.2)!important}
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}
208
215
  .red-alpha{
209
- background: rgba(map-get($red, $get-shade),0.2);
210
- color: map-get($red-contrast, $get-shade);
216
+ background: getRedAlpha($theme);
217
+ color: getRedContrast($theme);
211
218
  }
212
219
  .red{
213
- background: map-get($red, $get-shade);
214
- color: map-get($red-contrast, $get-shade);
215
- }
216
- .background-pink-alpha {background: rgba(map-get($pink, $get-shade), 0.2)}
217
- .pink .ripple{background: rgba(map-get($pink-contrast, $get-shade), 0.2)}
218
- .background-pink{background: map-get($pink, $get-shade)}
219
- .border-color-pink{border-color: map-get($pink, $get-shade)}
220
- .color-pink{color: map-get($pink, $get-shade)!important}
221
- .fill-pink{fill: map-get($pink, $get-shade)}
222
- .stroke-pink{stroke: map-get($pink, $get-shade)}
223
- .color-pink-alpha{color: rgba(map-get($pink, $get-shade),0.2)!important}
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}
224
231
  .pink-alpha{
225
- background: rgba(map-get($pink, $get-shade),0.2);
226
- color: map-get($pink-contrast, $get-shade);
232
+ background: getPinkAlpha($theme);
233
+ color: getPinkContrast($theme);
227
234
  }
228
235
  .pink{
229
- background: map-get($pink, $get-shade);
230
- color: map-get($pink-contrast, $get-shade);
231
- }
232
- .background-purple-alpha {background: rgba(map-get($purple, $get-shade), 0.2)}
233
- .purple .ripple{background: rgba(map-get($purple-contrast, $get-shade), 0.2)}
234
- .background-purple{background: map-get($purple, $get-shade)}
235
- .border-color-purple{border-color: map-get($purple, $get-shade)}
236
- .color-purple{color: map-get($purple, $get-shade)!important}
237
- .fill-purple{fill: map-get($purple, $get-shade)}
238
- .stroke-purple{stroke: map-get($purple, $get-shade)}
239
- .color-purple-alpha{color: rgba(map-get($purple, $get-shade),0.2)!important}
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}
240
247
  .purple-alpha{
241
- background: rgba(map-get($purple, $get-shade),0.2);
242
- color: map-get($purple-contrast, $get-shade);
248
+ background: getPurpleAlpha($theme);
249
+ color: getPurpleContrast($theme);
243
250
  }
244
251
  .purple{
245
- background: map-get($purple, $get-shade);
246
- color: map-get($purple-contrast, $get-shade);
247
- }
248
- .background-deep-purple-alpha {background: rgba(map-get($deep-purple, $get-shade), 0.2)}
249
- .deep-purple .ripple{background: rgba(map-get($deep-purple-contrast, $get-shade), 0.2)}
250
- .background-deep-purple{background: map-get($deep-purple, $get-shade)}
251
- .border-color-deep-purple{border-color: map-get($deep-purple, $get-shade)}
252
- .color-deep-purple{color: map-get($deep-purple, $get-shade)!important}
253
- .fill-deep-purple{fill: map-get($deep-purple, $get-shade)}
254
- .stroke-deep-purple{stroke: map-get($deep-purple, $get-shade)}
255
- .color-deep-purple-alpha{color: rgba(map-get($deep-purple, $get-shade),0.2)!important}
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}
256
263
  .deep-purple-alpha{
257
- background: rgba(map-get($deep-purple, $get-shade),0.2);
258
- color: map-get($deep-purple-contrast, $get-shade);
264
+ background: getDeepPurpleAlpha($theme);
265
+ color: getDeepPurpleContrast($theme);
259
266
  }
260
267
  .deep-purple{
261
- background: map-get($deep-purple, $get-shade);
262
- color: map-get($deep-purple-contrast, $get-shade);
263
- }
264
- .background-indigo-alpha {background: rgba(map-get($indigo, $get-shade), 0.2)}
265
- .indigo .ripple{background: rgba(map-get($indigo-contrast, $get-shade), 0.2)}
266
- .background-indigo{background: map-get($indigo, $get-shade)}
267
- .border-color-indigo{border-color: map-get($indigo, $get-shade)}
268
- .color-indigo{color: map-get($indigo, $get-shade)!important}
269
- .fill-indigo{fill: map-get($indigo, $get-shade)}
270
- .stroke-indigo{stroke: map-get($indigo, $get-shade)}
271
- .color-indigo-alpha{color: rgba(map-get($indigo, $get-shade),0.2)!important}
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}
272
279
  .indigo-alpha{
273
- background: rgba(map-get($indigo, $get-shade),0.2);
274
- color: map-get($indigo-contrast, $get-shade);
280
+ background: getIndigoAlpha($theme);
281
+ color: getIndigoContrast($theme);
275
282
  }
276
283
  .indigo{
277
- background: map-get($indigo, $get-shade);
278
- color: map-get($indigo-contrast, $get-shade);
279
- }
280
- .background-blue-alpha {background: rgba(map-get($blue, $get-shade), 0.2)}
281
- .blue .ripple{background: rgba(map-get($blue-contrast, $get-shade), 0.2)}
282
- .background-blue{background: map-get($blue, $get-shade)}
283
- .border-color-blue{border-color: map-get($blue, $get-shade)}
284
- .color-blue{color: map-get($blue, $get-shade)!important}
285
- .fill-blue{fill: map-get($blue, $get-shade)}
286
- .stroke-blue{stroke: map-get($blue, $get-shade)}
287
- .color-blue-alpha{color: rgba(map-get($blue, $get-shade),0.2)!important}
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}
288
295
  .blue-alpha{
289
- background: rgba(map-get($blue, $get-shade),0.2);
290
- color: map-get($blue-contrast, $get-shade);
296
+ background: getBlueAlpha($theme);
297
+ color: getBlueContrast($theme);
291
298
  }
292
299
  .blue{
293
- background: map-get($blue, $get-shade);
294
- color: map-get($blue-contrast, $get-shade);
295
- }
296
- .background-light-blue-alpha {background: rgba(map-get($light-blue, $get-shade), 0.2)}
297
- .light-blue .ripple{background: rgba(map-get($light-blue-contrast, $get-shade), 0.2)}
298
- .background-light-blue{background: map-get($light-blue, $get-shade)}
299
- .border-color-light-blue{border-color: map-get($light-blue, $get-shade)}
300
- .color-light-blue{color: map-get($light-blue, $get-shade)!important}
301
- .fill-light-blue{fill: map-get($light-blue, $get-shade)}
302
- .stroke-light-blue{stroke: map-get($light-blue, $get-shade)}
303
- .color-light-blue-alpha{color: rgba(map-get($light-blue, $get-shade),0.2)!important}
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}
304
311
  .light-blue-alpha{
305
- background: rgba(map-get($light-blue, $get-shade),0.2);
306
- color: map-get($light-blue-contrast, $get-shade);
312
+ background: getLightBlueAlpha($theme);
313
+ color: getLightBlueContrast($theme);
307
314
  }
308
315
  .light-blue{
309
- background: map-get($light-blue, $get-shade);
310
- color: map-get($light-blue-contrast, $get-shade);
311
- }
312
- .background-cyan-alpha {background: rgba(map-get($cyan, $get-shade), 0.2)}
313
- .cyan .ripple{background: rgba(map-get($cyan-contrast, $get-shade), 0.2)}
314
- .background-cyan{background: map-get($cyan, $get-shade)}
315
- .border-color-cyan{border-color: map-get($cyan, $get-shade)}
316
- .color-cyan{color: map-get($cyan, $get-shade)!important}
317
- .fill-cyan{fill: map-get($cyan, $get-shade)}
318
- .stroke-cyan{stroke: map-get($cyan, $get-shade)}
319
- .color-cyan-alpha{color: rgba(map-get($cyan, $get-shade),0.2)!important}
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}
320
327
  .cyan-alpha{
321
- background: rgba(map-get($cyan, $get-shade),0.2);
322
- color: map-get($cyan-contrast, $get-shade);
328
+ background: getCyanAlpha($theme);
329
+ color: getCyanContrast($theme);
323
330
  }
324
331
  .cyan{
325
- background: map-get($cyan, $get-shade);
326
- color: map-get($cyan-contrast, $get-shade);
327
- }
328
- .background-teal-alpha {background: rgba(map-get($teal, $get-shade), 0.2)}
329
- .teal .ripple{background: rgba(map-get($teal-contrast, $get-shade), 0.2)}
330
- .background-teal{background: map-get($teal, $get-shade)}
331
- .border-color-teal{border-color: map-get($teal, $get-shade)}
332
- .color-teal{color: map-get($teal, $get-shade)!important}
333
- .fill-teal{fill: map-get($teal, $get-shade)}
334
- .stroke-teal{stroke: map-get($teal, $get-shade)}
335
- .color-teal-alpha{color: rgba(map-get($teal, $get-shade),0.2)!important}
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}
336
343
  .teal-alpha{
337
- background: rgba(map-get($teal, $get-shade),0.2);
338
- color: map-get($teal-contrast, $get-shade);
344
+ background: getTealAlpha($theme);
345
+ color: getTealContrast($theme);
339
346
  }
340
347
  .teal{
341
- background: map-get($teal, $get-shade);
342
- color: map-get($teal-contrast, $get-shade);
343
- }
344
- .background-green-alpha {background: rgba(map-get($green, $get-shade), 0.2)}
345
- .green .ripple{background: rgba(map-get($green-contrast, $get-shade), 0.2)}
346
- .background-green{background: map-get($green, $get-shade)}
347
- .border-color-green{border-color: map-get($green, $get-shade)}
348
- .color-green{color: map-get($green, $get-shade)!important}
349
- .fill-green{fill: map-get($green, $get-shade)}
350
- .stroke-green{stroke: map-get($green, $get-shade)}
351
- .color-green-alpha{color: rgba(map-get($green, $get-shade),0.2)!important}
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}
352
359
  .green-alpha{
353
- background: rgba(map-get($green, $get-shade),0.2);
354
- color: map-get($green-contrast, $get-shade);
360
+ background: getGreenAlpha($theme);
361
+ color: getGreenContrast($theme);
355
362
  }
356
363
  .green{
357
- background: map-get($green, $get-shade);
358
- color: map-get($green-contrast, $get-shade);
359
- }
360
- .background-light-green-alpha {background: rgba(map-get($light-green, $get-shade), 0.2)}
361
- .light-green .ripple{background: rgba(map-get($light-green-contrast, $get-shade), 0.2)}
362
- .background-light-green{background: map-get($light-green, $get-shade)}
363
- .border-color-light-green{border-color: map-get($light-green, $get-shade)}
364
- .color-light-green{color: map-get($light-green, $get-shade)!important}
365
- .fill-light-green{fill: map-get($light-green, $get-shade)}
366
- .stroke-light-green{stroke: map-get($light-green, $get-shade)}
367
- .color-light-green-alpha{color: rgba(map-get($light-green, $get-shade),0.2)!important}
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}
368
375
  .light-green-alpha{
369
- background: rgba(map-get($light-green, $get-shade),0.2);
370
- color: map-get($light-green-contrast, $get-shade);
376
+ background: getLightGreenAlpha($theme);
377
+ color: getLightGreenContrast($theme);
371
378
  }
372
379
  .light-green{
373
- background: map-get($light-green, $get-shade);
374
- color: map-get($light-green-contrast, $get-shade);
375
- }
376
- .background-lime-alpha {background: rgba(map-get($lime, $get-shade), 0.2)}
377
- .lime .ripple{background: rgba(map-get($lime-contrast, $get-shade), 0.2)}
378
- .background-lime{background: map-get($lime, $get-shade)}
379
- .border-color-lime{border-color: map-get($lime, $get-shade)}
380
- .color-lime{color: map-get($lime, $get-shade)!important}
381
- .fill-lime{fill: map-get($lime, $get-shade)}
382
- .stroke-lime{stroke: map-get($lime, $get-shade)}
383
- .color-lime-alpha{color: rgba(map-get($lime, $get-shade),0.2)!important}
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}
384
391
  .lime-alpha{
385
- background: rgba(map-get($lime, $get-shade),0.2);
386
- color: map-get($lime-contrast, $get-shade);
392
+ background: getLimeAlpha($theme);
393
+ color: getLimeContrast($theme);
387
394
  }
388
395
  .lime{
389
- background: map-get($lime, $get-shade);
390
- color: map-get($lime-contrast, $get-shade);
391
- }
392
- .background-yellow-alpha {background: rgba(map-get($yellow, $get-shade), 0.2)}
393
- .yellow .ripple{background: rgba(map-get($yellow-contrast, $get-shade), 0.2)}
394
- .background-yellow{background: map-get($yellow, $get-shade)}
395
- .border-color-yellow{border-color: map-get($yellow, $get-shade)}
396
- .color-yellow{color: map-get($yellow, $get-shade)!important}
397
- .fill-yellow{fill: map-get($yellow, $get-shade)}
398
- .stroke-yellow{stroke: map-get($yellow, $get-shade)}
399
- .color-yellow-alpha{color: rgba(map-get($yellow, $get-shade),0.2)!important}
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}
400
407
  .yellow-alpha{
401
- background: rgba(map-get($yellow, $get-shade),0.2);
402
- color: map-get($yellow-contrast, $get-shade);
408
+ background: getYellowAlpha($theme);
409
+ color: getYellowContrast($theme);
403
410
  }
404
411
  .yellow{
405
- background: map-get($yellow, $get-shade);
406
- color: map-get($yellow-contrast, $get-shade);
407
- }
408
- .background-amber-alpha {background: rgba(map-get($amber, $get-shade), 0.2)}
409
- .amber .ripple{background: rgba(map-get($amber-contrast, $get-shade), 0.2)}
410
- .background-amber{background: map-get($amber, $get-shade)}
411
- .border-color-amber{border-color: map-get($amber, $get-shade)}
412
- .color-amber{color: map-get($amber, $get-shade)!important}
413
- .fill-amber{fill: map-get($amber, $get-shade)}
414
- .stroke-amber{stroke: map-get($amber, $get-shade)}
415
- .color-amber-alpha{color: rgba(map-get($amber, $get-shade),0.2)!important}
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}
416
423
  .amber-alpha{
417
- background: rgba(map-get($amber, $get-shade),0.2);
418
- color: map-get($amber-contrast, $get-shade);
424
+ background: getAmberAlpha($theme);
425
+ color: getAmberContrast($theme);
419
426
  }
420
427
  .amber{
421
- background: map-get($amber, $get-shade);
422
- color: map-get($amber-contrast, $get-shade);
423
- }
424
- .background-orange-alpha {background: rgba(map-get($orange, $get-shade), 0.2)}
425
- .orange .ripple{background: rgba(map-get($orange-contrast, $get-shade), 0.2)}
426
- .background-orange{background: map-get($orange, $get-shade)}
427
- .border-color-orange{border-color: map-get($orange, $get-shade)}
428
- .color-orange{color: map-get($orange, $get-shade)!important}
429
- .fill-orange{fill: map-get($orange, $get-shade)}
430
- .stroke-orange{stroke: map-get($orange, $get-shade)}
431
- .color-orange-alpha{color: rgba(map-get($orange, $get-shade),0.2)!important}
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}
432
439
  .orange-alpha{
433
- background: rgba(map-get($orange, $get-shade),0.2);
434
- color: map-get($orange-contrast, $get-shade);
440
+ background: getOrangeAlpha($theme);
441
+ color: getOrangeContrast($theme);
435
442
  }
436
443
  .orange{
437
- background: map-get($orange, $get-shade);
438
- color: map-get($orange-contrast, $get-shade);
439
- }
440
- .background-deep-orange-alpha {background: rgba(map-get($deep-orange, $get-shade), 0.2)}
441
- .deep-orange .ripple{background: rgba(map-get($deep-orange-contrast, $get-shade), 0.2)}
442
- .background-deep-orange{background: map-get($deep-orange, $get-shade)}
443
- .border-color-deep-orange{border-color: map-get($deep-orange, $get-shade)}
444
- .color-deep-orange{color: map-get($deep-orange, $get-shade)!important}
445
- .fill-deep-orange{fill: map-get($deep-orange, $get-shade)}
446
- .stroke-deep-orange{stroke: map-get($deep-orange, $get-shade)}
447
- .color-deep-orange-alpha{color: rgba(map-get($deep-orange, $get-shade),0.2)!important}
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}
448
455
  .deep-orange-alpha{
449
- background: rgba(map-get($deep-orange, $get-shade),0.2);
450
- color: map-get($deep-orange-contrast, $get-shade);
456
+ background: getDeepOrangeAlpha($theme);
457
+ color: getDeepOrangeContrast($theme);
451
458
  }
452
459
  .deep-orange{
453
- background: map-get($deep-orange, $get-shade);
454
- color: map-get($deep-orange-contrast, $get-shade);
455
- }
456
- .background-brown-alpha {background: rgba(map-get($brown, $get-shade), 0.2)}
457
- .brown .ripple{background: rgba(map-get($brown-contrast, $get-shade), 0.2)}
458
- .background-brown{background: map-get($brown, $get-shade)}
459
- .border-color-brown{border-color: map-get($brown, $get-shade)}
460
- .color-brown{color: map-get($brown, $get-shade)!important}
461
- .fill-brown{fill: map-get($brown, $get-shade)}
462
- .stroke-brown{stroke: map-get($brown, $get-shade)}
463
- .color-brown-alpha{color: rgba(map-get($brown, $get-shade),0.2)!important}
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}
464
471
  .brown-alpha{
465
- background: rgba(map-get($brown, $get-shade),0.2);
466
- color: map-get($brown-contrast, $get-shade);
472
+ background: getBrownAlpha($theme);
473
+ color: getBrownContrast($theme);
467
474
  }
468
475
  .brown{
469
- background: map-get($brown, $get-shade);
470
- color: map-get($brown-contrast, $get-shade);
471
- }
472
- .background-grey-alpha {background: rgba(map-get($grey, $get-shade), 0.2)}
473
- .grey .ripple{background: rgba(map-get($grey-contrast, $get-shade), 0.2)}
474
- .background-grey{background: map-get($grey, $get-shade)}
475
- .border-color-grey{border-color: map-get($grey, $get-shade)}
476
- .color-grey{color: map-get($grey, $get-shade)!important}
477
- .fill-grey{fill: map-get($grey, $get-shade)}
478
- .stroke-grey{stroke: map-get($grey, $get-shade)}
479
- .color-grey-alpha{color: rgba(map-get($grey, $get-shade),0.2)!important}
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}
480
487
  .grey-alpha{
481
- background: rgba(map-get($grey, $get-shade),0.2);
482
- color: map-get($grey-contrast, $get-shade);
488
+ background: getGreyAlpha($theme);
489
+ color: getGreyContrast($theme);
483
490
  }
484
491
  .grey{
485
- background: map-get($grey, $get-shade);
486
- color: map-get($grey-contrast, $get-shade);
487
- }
488
- .background-blue-grey-alpha {background: rgba(map-get($blue-grey, $get-shade), 0.2)}
489
- .blue-grey .ripple{background: rgba(map-get($blue-grey-contrast, $get-shade), 0.2)}
490
- .background-blue-grey{background: map-get($blue-grey, $get-shade)}
491
- .border-color-blue-grey{border-color: map-get($blue-grey, $get-shade)}
492
- .color-blue-grey{color: map-get($blue-grey, $get-shade)!important}
493
- .fill-blue-grey{fill: map-get($blue-grey, $get-shade)}
494
- .stroke-blue-grey{stroke: map-get($blue-grey, $get-shade)}
495
- .color-blue-grey-alpha{color: rgba(map-get($blue-grey, $get-shade),0.2)!important}
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}
496
503
  .blue-grey-alpha{
497
- background: rgba(map-get($blue-grey, $get-shade),0.2);
498
- color: map-get($blue-grey-contrast, $get-shade);
504
+ background: getBlueGreyAlpha($theme);
505
+ color: getBlueGreyContrast($theme);
499
506
  }
500
507
  .blue-grey{
501
- background: map-get($blue-grey, $get-shade);
502
- color: map-get($blue-grey-contrast, $get-shade);
503
- }
504
-
505
- .background-primary-alpha {background: rgba(map-get($primary, default), 0.2)}
506
- .primary .ripple{background: rgba(map-get($primary, default-contrast), 0.2)}
507
- .background-primary{background: map-get($primary, default)}
508
- .border-color-primary{border-color: map-get($primary, default)}
509
- .color-primary{color: map-get($primary, default)!important}
510
- .fill-primary{fill: map-get($primary, default)}
511
- .stroke-primary{stroke: map-get($primary, default)}
512
- .color-primary-alpha{color: rgba(map-get($primary, default),0.2)!important}
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}
513
520
  .primary-alpha{
514
- background: rgba(map-get($primary, default),0.2);
515
- color: map-get($primary, default-contrast);
521
+ background: getPrimaryAlpha($theme);
522
+ color: getPrimaryContrast($theme);
516
523
  }
517
524
  .primary{
518
- background: map-get($primary, default);
519
- color: map-get($primary, default-contrast);
520
- }
521
-
522
- .background-accent-alpha {background: rgba(map-get($accent, default), 0.2)}
523
- .accent .ripple{background: rgba(map-get($accent, default-contrast), 0.2)}
524
- .background-accent{background: map-get($accent, default)}
525
- .border-color-accent{border-color: map-get($accent, default)}
526
- .color-accent{color: map-get($accent, default)!important}
527
- .fill-accent{fill: map-get($accent, default)}
528
- .stroke-accent{stroke: map-get($accent, default)}
529
- .color-accent-alpha{color: rgba(map-get($accent, default),0.2)!important}
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}
530
537
  .accent-alpha{
531
- background: rgba(map-get($accent, default),0.2);
532
- color: map-get($accent, default-contrast);
538
+ background: getAccentAlpha($theme);
539
+ color: getAccentContrast($theme);
533
540
  }
534
541
  .accent{
535
- background: map-get($accent, default);
536
- color: map-get($accent, default-contrast);
537
- }
538
-
539
- .background-warn-alpha {background: rgba(map-get($warn, default), 0.2)}
540
- .warn .ripple{background: rgba(map-get($warn, default-contrast), 0.2)}
541
- .background-warn{background: map-get($warn, default)}
542
- .border-color-warn{border-color: map-get($warn, default)}
543
- .color-warn{color: map-get($warn, default)!important}
544
- .fill-warn{fill: map-get($warn, default)}
545
- .stroke-warn{stroke: map-get($warn, default)}
546
- .color-warn-alpha{color: rgba(map-get($warn, default),0.2)!important}
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}
547
554
  .warn-alpha{
548
- background: rgba(map-get($warn, default),0.2);
549
- color: map-get($warn, default-contrast);
555
+ background: getWarnAlpha($theme);
556
+ color: getWarnContrast($theme);
550
557
  }
551
558
  .warn{
552
- background: map-get($warn, default);
553
- color: map-get($warn, default-contrast);
554
- }
555
-
556
- .background-basic-alpha {background: rgba(map-get($foreground, base), 0.2)}
557
- .basic .ripple{background: rgba(map-get($foreground, base), 0.2)}
558
- .background-basic{background: map-get($background, card)}
559
- .border-color-basic{border-color: map-get($foreground, base)}
560
- .color-basic{color: map-get($foreground, base)!important}
561
- .fill-basic{fill: map-get($background, card)}
562
- .stroke-basic{stroke: map-get($foreground, base)}
563
- .color-basic-alpha{color: rgba(map-get($foreground, base),0.2)!important}
559
+ background: getWarn($theme);
560
+ color: getWarnContrast($theme);
561
+ }
562
+
563
+ .background-basic-alpha {background: getForegroundAlpha($theme)}
564
+ .basic .ripple{background: getForegroundAlpha($theme)}
565
+ .background-basic{background: getSurface($theme)}
566
+ .border-color-basic{border-color:getForeground($theme)}
567
+ .color-basic{color: getForeground($theme)!important}
568
+ .fill-basic{fill: getSurface($theme)}
569
+ .stroke-basic{stroke: getForeground($theme)}
570
+ .color-basic-alpha{color: getForegroundAlpha($theme)!important}
564
571
  .basic-alpha{
565
- background: rgba(map-get($foreground, base), 0.2);
566
- color: map-get($foreground, base);
572
+ background: getForegroundAlpha($theme);
573
+ color: getForeground($theme);
567
574
  }
568
575
  .basic{
569
- background: map-get($background, card);
570
- color: map-get($foreground, base);
576
+ background: getSurface($theme);
577
+ color: getForeground($theme);
571
578
  }
572
579
 
573
580
  .color-unset {
574
581
  color: unset;
575
582
  }
576
583
 
584
+ .background-transparent {
585
+ background: transparent;
586
+ }
577
587
 
578
588
  $attributes: (
579
589
  color: $foreground,
@@ -583,106 +593,65 @@ $index: 0;
583
593
  stroke: $background
584
594
  );
585
595
 
586
- .base-surface {
587
- background: map-get($background, card);
588
- color: map-get($foreground, text);
589
- &-alpha {
590
- background: rgba(map-get($background, card), 0.5) !important;
591
- }
592
- }
593
- .base-fg {
594
- background: map-get($foreground, text);
595
- color: map-get($foreground, text-inverse);
596
- &-alpha {
597
- background: rgba(map-get($foreground, text), 0.2) !important;
598
- }
599
- }
600
- .base-bg {
601
- background: map-get($background, background);
602
- color: map-get($foreground, text);
603
- &-alpha {
604
- background: map-get($background, background-alpha) !important;
605
- }
606
- }
607
-
608
- .background-transparent {
609
- background: transparent;
610
- }
611
-
612
596
  @each $attribute, $colorLevel in $attributes {
613
597
  @if ($attribute != "color") {
614
598
  .#{$attribute}-bg {
615
- #{$attribute}: map-get($background, background) !important;
599
+ #{$attribute}: getBackground($theme) !important;
616
600
  }
617
601
  .#{$attribute}-bg-alpha {
618
- #{$attribute}: map-get($background, background-alpha) !important;
602
+ #{$attribute}: getBackgroundAlpha($theme) !important;
619
603
  }
620
604
  .#{$attribute}-bg-inverse {
621
- #{$attribute}: map-get($background, background-inverse) !important;
605
+ #{$attribute}: getBackgroundInverse($theme) !important;
622
606
  }
623
607
  .#{$attribute}-bg-alpha-inverse {
624
- #{$attribute}: map-get($background, background-alpha-inverse) !important;
608
+ #{$attribute}: getBackgroundAlphaInverse($theme) !important;
625
609
  }
626
610
  .#{$attribute}-surface-inverse {
627
- #{$attribute}: map-get($background, card-inverse) !important;
611
+ #{$attribute}: getSurfaceInverse($theme) !important;
628
612
  }
629
613
  .#{$attribute}-surface-alpha-inverse {
630
- #{$attribute}: map-get($background, card-alpha-inverse) !important;
614
+ #{$attribute}: getSurfaceAlphaInverse($theme) !important;
631
615
  }
632
616
  }
633
- .#{$attribute}-error {
634
- #{$attribute}: map-get($background, error) !important;
635
- }
636
- .#{$attribute}-info {
637
- #{$attribute}: map-get($background, info) !important;
638
- }
639
- .#{$attribute}-success {
640
- #{$attribute}: map-get($background, success) !important;
641
- }
642
- .#{$attribute}-warning {
643
- #{$attribute}: map-get($background, warning) !important;
644
- }
617
+
645
618
  .#{$attribute}-fg,
646
619
  .#{$attribute}-base,
647
620
  .#{$attribute}-text {
648
- #{$attribute}: map-get($foreground, text) !important;
621
+ #{$attribute}: getForeground($theme) !important;
649
622
  }
650
623
 
651
624
  .#{$attribute}-fg-inverse,
652
625
  .#{$attribute}-base-inverse,
653
626
  .#{$attribute}-text-inverse {
654
- #{$attribute}: map-get($foreground, text-inverse) !important;
627
+ #{$attribute}: getForegroundInverse($theme) !important;
655
628
  }
656
629
 
657
630
  .#{$attribute}-surface {
658
- #{$attribute}: map-get($background, card) !important;
631
+ #{$attribute}: getSurface($theme) !important;
659
632
  }
660
633
 
661
634
  .#{$attribute}-surface-alpha {
662
- #{$attribute}: map-get($background, card-alpha) !important;
635
+ #{$attribute}: getSurfaceAlpha($theme) !important;
663
636
  }
664
637
 
665
638
  .#{$attribute}-placeholder {
666
- #{$attribute}: map-get($foreground, placeholder) !important;
639
+ #{$attribute}: getGrey($theme) !important;
667
640
  &-alpha {
668
- background: rgba(map-get($foreground, placeholder), 0.2) !important;
641
+ background: rgba(getGrey($theme), 0.2) !important;
669
642
  }
670
643
  }
671
644
 
672
645
  .#{$attribute}-label {
673
- #{$attribute}: map-get($foreground, label) !important;
646
+ #{$attribute}: getBlueGrey($theme) !important;
674
647
  }
675
648
 
676
649
  .#{$attribute}-disabled {
677
- #{$attribute}: map-get($background, disabled) !important;
650
+ #{$attribute}: getDisabled($theme) !important;
678
651
  }
679
652
 
680
653
  .#{$attribute}-disabled-icon {
681
- #{$attribute}: map-get($foreground, disabled-icon) !important;
682
- }
683
-
684
- .#{$attribute}-selected {
685
- #{$attribute}: map-get($background, selected-button) !important;
654
+ #{$attribute}: getDisabledContrast($theme) !important;
686
655
  }
687
656
  }
688
657
  }