matcha-theme 19.30.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.
- package/abstracts/_colors.scss +344 -375
- package/abstracts/_functions.scss +567 -0
- package/abstracts/_typography.scss +2 -0
- package/components/matcha-buttons.scss +220 -268
- package/components/matcha-checkbox.scss +391 -0
- package/components/matcha-form-field.scss +10 -1
- package/components/matcha-ripple.scss +7 -0
- package/main.scss +4 -0
- package/package.json +1 -1
|
@@ -98,6 +98,573 @@
|
|
|
98
98
|
@return $palettes;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
@function getShade($theme) {
|
|
102
|
+
$is-dark: map-get($theme, is-dark);
|
|
103
|
+
$get-shade: if($is-dark, 100, 500); // Define $red-shade com base no valor de $is-dark
|
|
104
|
+
@return $get-shade;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Background
|
|
108
|
+
@function getBackground($theme){
|
|
109
|
+
$background: map-get($theme, background);
|
|
110
|
+
$background: map-get($background, background);
|
|
111
|
+
@return $background;
|
|
112
|
+
}
|
|
113
|
+
@function getBackgroundAlpha($theme){
|
|
114
|
+
$background: map-get($theme, background);
|
|
115
|
+
$background-alpha: rgba(map-get($background, background), 0.5);
|
|
116
|
+
@return $background-alpha;
|
|
117
|
+
}
|
|
118
|
+
@function getBackgroundInverse($theme){
|
|
119
|
+
$background: map-get($theme, background);
|
|
120
|
+
$background-inverse: map-get($background, background-inverse);
|
|
121
|
+
@return $background-inverse;
|
|
122
|
+
}
|
|
123
|
+
@function getBackgroundAlphaInverse($theme){
|
|
124
|
+
$background: map-get($theme, background);
|
|
125
|
+
$background-inverse-alpha: rgba(map-get($background, background-inverse), 0.5);
|
|
126
|
+
@return $background-inverse-alpha;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Surface
|
|
130
|
+
@function getSurface($theme){
|
|
131
|
+
$background: map-get($theme, background);
|
|
132
|
+
$surface: map-get($background, card);
|
|
133
|
+
@return $surface;
|
|
134
|
+
}
|
|
135
|
+
@function getSurfaceAlpha($theme){
|
|
136
|
+
$background: map-get($theme, background);
|
|
137
|
+
$surface-alpha: rgba(map-get($background, card), 0.5);
|
|
138
|
+
@return $surface-alpha;
|
|
139
|
+
}
|
|
140
|
+
@function getSurfaceInverse($theme){
|
|
141
|
+
$background: map-get($theme, background);
|
|
142
|
+
$surface-inverse: map-get($background, card-inverse);
|
|
143
|
+
@return $surface-inverse;
|
|
144
|
+
}
|
|
145
|
+
@function getSurfaceAlphaInverse($theme){
|
|
146
|
+
$background: map-get($theme, background);
|
|
147
|
+
$surface-alpha-inverse: rgba(map-get($background, card-inverse), 0.5);
|
|
148
|
+
@return $surface-alpha-inverse;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// Foreground
|
|
153
|
+
@function getForeground($theme){
|
|
154
|
+
$foreground: map-get($theme, foreground);
|
|
155
|
+
$foreground: map-get($foreground, text);
|
|
156
|
+
@return $foreground;
|
|
157
|
+
}
|
|
158
|
+
@function getForegroundInverse($theme){
|
|
159
|
+
$foreground: map-get($theme, foreground);
|
|
160
|
+
$foreground-inverse: map-get($foreground, text-inverse);
|
|
161
|
+
@return $foreground-inverse;
|
|
162
|
+
}
|
|
163
|
+
@function getForegroundAlpha($theme){
|
|
164
|
+
$foreground: map-get($theme, foreground);
|
|
165
|
+
$foreground-alpha: rgba(map-get($foreground, text), 0.5);
|
|
166
|
+
@return $foreground-alpha;
|
|
167
|
+
}
|
|
168
|
+
@function getForegroundAlphaInverse($theme){
|
|
169
|
+
$foreground: map-get($theme, foreground);
|
|
170
|
+
$foreground-alpha-inverse: rgba(map-get($foreground, text-inverse), 0.5);
|
|
171
|
+
@return $foreground-alpha-inverse;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Disabled
|
|
175
|
+
@function getDisabled($theme){
|
|
176
|
+
$background: map-get($theme, background);
|
|
177
|
+
$disabled: map-get($background, disabled);
|
|
178
|
+
@return $disabled;
|
|
179
|
+
}
|
|
180
|
+
@function getDisabledContrast($theme){
|
|
181
|
+
$foreground: map-get($theme, foreground);
|
|
182
|
+
$disabled-contrast: map-get($foreground, disabled);
|
|
183
|
+
@return $disabled-contrast;
|
|
184
|
+
}
|
|
185
|
+
@function getDisabledAlpha($theme){
|
|
186
|
+
$background: map-get($theme, background);
|
|
187
|
+
$disabled-alpha: rgba(map-get($background, disabled), 0.5);
|
|
188
|
+
@return $disabled-alpha;
|
|
189
|
+
}
|
|
190
|
+
@function getDisabledContrastAlpha($theme){
|
|
191
|
+
$foreground: map-get($theme, foreground);
|
|
192
|
+
$disabled-contrast-alpha: rgba(map-get($foreground, disabled), 0.5);
|
|
193
|
+
@return $disabled-contrast-alpha;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
197
|
+
// Colors
|
|
198
|
+
// --------------------------------------------------------------------------------------------------------------------
|
|
199
|
+
// Red
|
|
200
|
+
@function getRed($theme) {
|
|
201
|
+
$red-color: map-get($red, getShade($theme));
|
|
202
|
+
@return $red-color;
|
|
203
|
+
}
|
|
204
|
+
@function getRedContrast($theme) {
|
|
205
|
+
$red-contrast-palette: map-get($red, 'contrast');
|
|
206
|
+
$red-contrast: map-get($red-contrast-palette, getShade($theme));
|
|
207
|
+
@return $red-contrast;
|
|
208
|
+
}
|
|
209
|
+
@function getRedAlpha($theme) {
|
|
210
|
+
$red-color: getRed($theme);
|
|
211
|
+
$red-color-alpha: rgba($red-color, 0.2);
|
|
212
|
+
@return $red-color-alpha;
|
|
213
|
+
}
|
|
214
|
+
@function getRedContrastAlpha($theme) {
|
|
215
|
+
$red-contrast: getRedContrast($theme);
|
|
216
|
+
$red-contrast-alpha: rgba($red-contrast, 0.2);
|
|
217
|
+
@return $red-contrast-alpha;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Pink
|
|
221
|
+
@function getPink($theme) {
|
|
222
|
+
$pink-color: map-get($pink, getShade($theme));
|
|
223
|
+
@return $pink-color;
|
|
224
|
+
}
|
|
225
|
+
@function getPinkContrast($theme) {
|
|
226
|
+
$pink-contrast-palette: map-get($pink, 'contrast');
|
|
227
|
+
$pink-contrast: map-get($pink-contrast-palette, getShade($theme));
|
|
228
|
+
@return $pink-contrast;
|
|
229
|
+
}
|
|
230
|
+
@function getPinkAlpha($theme) {
|
|
231
|
+
$pink-color: getPink($theme);
|
|
232
|
+
$pink-color-alpha: rgba($pink-color, 0.2);
|
|
233
|
+
@return $pink-color-alpha;
|
|
234
|
+
}
|
|
235
|
+
@function getPinkContrastAlpha($theme) {
|
|
236
|
+
$pink-contrast: getPinkContrast($theme);
|
|
237
|
+
$pink-contrast-alpha: rgba($pink-contrast, 0.2);
|
|
238
|
+
@return $pink-contrast-alpha;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Purple
|
|
242
|
+
@function getPurple($theme) {
|
|
243
|
+
$purple-color: map-get($purple, getShade($theme));
|
|
244
|
+
@return $purple-color;
|
|
245
|
+
}
|
|
246
|
+
@function getPurpleContrast($theme) {
|
|
247
|
+
$purple-contrast-palette: map-get($purple, 'contrast');
|
|
248
|
+
$purple-contrast: map-get($purple-contrast-palette, getShade($theme));
|
|
249
|
+
@return $purple-contrast;
|
|
250
|
+
}
|
|
251
|
+
@function getPurpleAlpha($theme) {
|
|
252
|
+
$purple-color: getPurple($theme);
|
|
253
|
+
$purple-color-alpha: rgba($purple-color, 0.2);
|
|
254
|
+
@return $purple-color-alpha;
|
|
255
|
+
}
|
|
256
|
+
@function getPurpleContrastAlpha($theme) {
|
|
257
|
+
$purple-contrast: getPurpleContrast($theme);
|
|
258
|
+
$purple-contrast-alpha: rgba($purple-contrast, 0.2);
|
|
259
|
+
@return $purple-contrast-alpha;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Deep Purple
|
|
263
|
+
@function getDeepPurple($theme) {
|
|
264
|
+
$deep-purple-color: map-get($deep-purple, getShade($theme));
|
|
265
|
+
@return $deep-purple-color;
|
|
266
|
+
}
|
|
267
|
+
@function getDeepPurpleContrast($theme) {
|
|
268
|
+
$deep-purple-contrast-palette: map-get($deep-purple, 'contrast');
|
|
269
|
+
$deep-purple-contrast: map-get($deep-purple-contrast-palette, getShade($theme));
|
|
270
|
+
@return $deep-purple-contrast;
|
|
271
|
+
}
|
|
272
|
+
@function getDeepPurpleAlpha($theme) {
|
|
273
|
+
$deep-purple-color: getDeepPurple($theme);
|
|
274
|
+
$deep-purple-color-alpha: rgba($deep-purple-color, 0.2);
|
|
275
|
+
@return $deep-purple-color-alpha;
|
|
276
|
+
}
|
|
277
|
+
@function getDeepPurpleContrastAlpha($theme) {
|
|
278
|
+
$deep-purple-contrast: getDeepPurpleContrast($theme);
|
|
279
|
+
$deep-purple-contrast-alpha: rgba($deep-purple-contrast, 0.2);
|
|
280
|
+
@return $deep-purple-contrast-alpha;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
// Indigo
|
|
284
|
+
@function getIndigo($theme) {
|
|
285
|
+
$indigo-color: map-get($indigo, getShade($theme));
|
|
286
|
+
@return $indigo-color;
|
|
287
|
+
}
|
|
288
|
+
@function getIndigoContrast($theme) {
|
|
289
|
+
$indigo-contrast-palette: map-get($indigo, 'contrast');
|
|
290
|
+
$indigo-contrast: map-get($indigo-contrast-palette, getShade($theme));
|
|
291
|
+
@return $indigo-contrast;
|
|
292
|
+
}
|
|
293
|
+
@function getIndigoAlpha($theme) {
|
|
294
|
+
$indigo-color: getIndigo($theme);
|
|
295
|
+
$indigo-color-alpha: rgba($indigo-color, 0.2);
|
|
296
|
+
@return $indigo-color-alpha;
|
|
297
|
+
}
|
|
298
|
+
@function getIndigoContrastAlpha($theme) {
|
|
299
|
+
$indigo-contrast: getIndigoContrast($theme);
|
|
300
|
+
$indigo-contrast-alpha: rgba($indigo-contrast, 0.2);
|
|
301
|
+
@return $indigo-contrast-alpha;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// Blue
|
|
305
|
+
@function getBlue($theme) {
|
|
306
|
+
$blue-color: map-get($blue, getShade($theme));
|
|
307
|
+
@return $blue-color;
|
|
308
|
+
}
|
|
309
|
+
@function getBlueContrast($theme) {
|
|
310
|
+
$blue-contrast-palette: map-get($blue, 'contrast');
|
|
311
|
+
$blue-contrast: map-get($blue-contrast-palette, getShade($theme));
|
|
312
|
+
@return $blue-contrast;
|
|
313
|
+
}
|
|
314
|
+
@function getBlueAlpha($theme) {
|
|
315
|
+
$blue-color: getBlue($theme);
|
|
316
|
+
$blue-color-alpha: rgba($blue-color, 0.2);
|
|
317
|
+
@return $blue-color-alpha;
|
|
318
|
+
}
|
|
319
|
+
@function getBlueContrastAlpha($theme) {
|
|
320
|
+
$blue-contrast: getBlueContrast($theme);
|
|
321
|
+
$blue-contrast-alpha: rgba($blue-contrast, 0.2);
|
|
322
|
+
@return $blue-contrast-alpha;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// Light Blue
|
|
326
|
+
@function getLightBlue($theme) {
|
|
327
|
+
$light-blue-color: map-get($light-blue, getShade($theme));
|
|
328
|
+
@return $light-blue-color;
|
|
329
|
+
}
|
|
330
|
+
@function getLightBlueContrast($theme) {
|
|
331
|
+
$light-blue-contrast-palette: map-get($light-blue, 'contrast');
|
|
332
|
+
$light-blue-contrast: map-get($light-blue-contrast-palette, getShade($theme));
|
|
333
|
+
@return $light-blue-contrast;
|
|
334
|
+
}
|
|
335
|
+
@function getLightBlueAlpha($theme) {
|
|
336
|
+
$light-blue-color: getLightBlue($theme);
|
|
337
|
+
$light-blue-color-alpha: rgba($light-blue-color, 0.2);
|
|
338
|
+
@return $light-blue-color-alpha;
|
|
339
|
+
}
|
|
340
|
+
@function getLightBlueContrastAlpha($theme) {
|
|
341
|
+
$light-blue-contrast: getLightBlueContrast($theme);
|
|
342
|
+
$light-blue-contrast-alpha: rgba($light-blue-contrast, 0.2);
|
|
343
|
+
@return $light-blue-contrast-alpha;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// Cyan
|
|
347
|
+
@function getCyan($theme) {
|
|
348
|
+
$cyan-color: map-get($cyan, getShade($theme));
|
|
349
|
+
@return $cyan-color;
|
|
350
|
+
}
|
|
351
|
+
@function getCyanContrast($theme) {
|
|
352
|
+
$cyan-contrast-palette: map-get($cyan, 'contrast');
|
|
353
|
+
$cyan-contrast: map-get($cyan-contrast-palette, getShade($theme));
|
|
354
|
+
@return $cyan-contrast;
|
|
355
|
+
}
|
|
356
|
+
@function getCyanAlpha($theme) {
|
|
357
|
+
$cyan-color: getCyan($theme);
|
|
358
|
+
$cyan-color-alpha: rgba($cyan-color, 0.2);
|
|
359
|
+
@return $cyan-color-alpha;
|
|
360
|
+
}
|
|
361
|
+
@function getCyanContrastAlpha($theme) {
|
|
362
|
+
$cyan-contrast: getCyanContrast($theme);
|
|
363
|
+
$cyan-contrast-alpha: rgba($cyan-contrast, 0.2);
|
|
364
|
+
@return $cyan-contrast-alpha;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// Teal
|
|
368
|
+
@function getTeal($theme) {
|
|
369
|
+
$teal-color: map-get($teal, getShade($theme));
|
|
370
|
+
@return $teal-color;
|
|
371
|
+
}
|
|
372
|
+
@function getTealContrast($theme) {
|
|
373
|
+
$teal-contrast-palette: map-get($teal, 'contrast');
|
|
374
|
+
$teal-contrast: map-get($teal-contrast-palette, getShade($theme));
|
|
375
|
+
@return $teal-contrast;
|
|
376
|
+
}
|
|
377
|
+
@function getTealAlpha($theme) {
|
|
378
|
+
$teal-color: getTeal($theme);
|
|
379
|
+
$teal-color-alpha: rgba($teal-color, 0.2);
|
|
380
|
+
@return $teal-color-alpha;
|
|
381
|
+
}
|
|
382
|
+
@function getTealContrastAlpha($theme) {
|
|
383
|
+
$teal-contrast: getTealContrast($theme);
|
|
384
|
+
$teal-contrast-alpha: rgba($teal-contrast, 0.2);
|
|
385
|
+
@return $teal-contrast-alpha;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// Green
|
|
389
|
+
@function getGreen($theme) {
|
|
390
|
+
$green-color: map-get($green, getShade($theme));
|
|
391
|
+
@return $green-color;
|
|
392
|
+
}
|
|
393
|
+
@function getGreenContrast($theme) {
|
|
394
|
+
$green-contrast-palette: map-get($green, 'contrast');
|
|
395
|
+
$green-contrast: map-get($green-contrast-palette, getShade($theme));
|
|
396
|
+
@return $green-contrast;
|
|
397
|
+
}
|
|
398
|
+
@function getGreenAlpha($theme) {
|
|
399
|
+
$green-color: getGreen($theme);
|
|
400
|
+
$green-color-alpha: rgba($green-color, 0.2);
|
|
401
|
+
@return $green-color-alpha;
|
|
402
|
+
}
|
|
403
|
+
@function getGreenContrastAlpha($theme) {
|
|
404
|
+
$green-contrast: getGreenContrast($theme);
|
|
405
|
+
$green-contrast-alpha: rgba($green-contrast, 0.2);
|
|
406
|
+
@return $green-contrast-alpha;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// Light Green
|
|
410
|
+
@function getLightGreen($theme) {
|
|
411
|
+
$light-green-color: map-get($light-green, getShade($theme));
|
|
412
|
+
@return $light-green-color;
|
|
413
|
+
}
|
|
414
|
+
@function getLightGreenContrast($theme) {
|
|
415
|
+
$light-green-contrast-palette: map-get($light-green, 'contrast');
|
|
416
|
+
$light-green-contrast: map-get($light-green-contrast-palette, getShade($theme));
|
|
417
|
+
@return $light-green-contrast;
|
|
418
|
+
}
|
|
419
|
+
@function getLightGreenAlpha($theme) {
|
|
420
|
+
$light-green-color: getLightGreen($theme);
|
|
421
|
+
$light-green-color-alpha: rgba($light-green-color, 0.2);
|
|
422
|
+
@return $light-green-color-alpha;
|
|
423
|
+
}
|
|
424
|
+
@function getLightGreenContrastAlpha($theme) {
|
|
425
|
+
$light-green-contrast: getLightGreenContrast($theme);
|
|
426
|
+
$light-green-contrast-alpha: rgba($light-green-contrast, 0.2);
|
|
427
|
+
@return $light-green-contrast-alpha;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
// Lime
|
|
431
|
+
@function getLime($theme) {
|
|
432
|
+
$lime-color: map-get($lime, getShade($theme));
|
|
433
|
+
@return $lime-color;
|
|
434
|
+
}
|
|
435
|
+
@function getLimeContrast($theme) {
|
|
436
|
+
$lime-contrast-palette: map-get($lime, 'contrast');
|
|
437
|
+
$lime-contrast: map-get($lime-contrast-palette, getShade($theme));
|
|
438
|
+
@return $lime-contrast;
|
|
439
|
+
}
|
|
440
|
+
@function getLimeAlpha($theme) {
|
|
441
|
+
$lime-color: getLime($theme);
|
|
442
|
+
$lime-color-alpha: rgba($lime-color, 0.2);
|
|
443
|
+
@return $lime-color-alpha;
|
|
444
|
+
}
|
|
445
|
+
@function getLimeContrastAlpha($theme) {
|
|
446
|
+
$lime-contrast: getLimeContrast($theme);
|
|
447
|
+
$lime-contrast-alpha: rgba($lime-contrast, 0.2);
|
|
448
|
+
@return $lime-contrast-alpha;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// Yellow
|
|
452
|
+
@function getYellow($theme) {
|
|
453
|
+
$yellow-color: map-get($yellow, getShade($theme));
|
|
454
|
+
@return $yellow-color;
|
|
455
|
+
}
|
|
456
|
+
@function getYellowContrast($theme) {
|
|
457
|
+
$yellow-contrast-palette: map-get($yellow, 'contrast');
|
|
458
|
+
$yellow-contrast: map-get($yellow-contrast-palette, getShade($theme));
|
|
459
|
+
@return $yellow-contrast;
|
|
460
|
+
}
|
|
461
|
+
@function getYellowAlpha($theme) {
|
|
462
|
+
$yellow-color: getYellow($theme);
|
|
463
|
+
$yellow-color-alpha: rgba($yellow-color, 0.2);
|
|
464
|
+
@return $yellow-color-alpha;
|
|
465
|
+
}
|
|
466
|
+
@function getYellowContrastAlpha($theme) {
|
|
467
|
+
$yellow-contrast: getYellowContrast($theme);
|
|
468
|
+
$yellow-contrast-alpha: rgba($yellow-contrast, 0.2);
|
|
469
|
+
@return $yellow-contrast-alpha;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// Amber
|
|
473
|
+
@function getAmber($theme) {
|
|
474
|
+
$amber-color: map-get($amber, getShade($theme));
|
|
475
|
+
@return $amber-color;
|
|
476
|
+
}
|
|
477
|
+
@function getAmberContrast($theme) {
|
|
478
|
+
$amber-contrast-palette: map-get($amber, 'contrast');
|
|
479
|
+
$amber-contrast: map-get($amber-contrast-palette, getShade($theme));
|
|
480
|
+
@return $amber-contrast;
|
|
481
|
+
}
|
|
482
|
+
@function getAmberAlpha($theme) {
|
|
483
|
+
$amber-color: getAmber($theme);
|
|
484
|
+
$amber-color-alpha: rgba($amber-color, 0.2);
|
|
485
|
+
@return $amber-color-alpha;
|
|
486
|
+
}
|
|
487
|
+
@function getAmberContrastAlpha($theme) {
|
|
488
|
+
$amber-contrast: getAmberContrast($theme);
|
|
489
|
+
$amber-contrast-alpha: rgba($amber-contrast, 0.2);
|
|
490
|
+
@return $amber-contrast-alpha;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// Orange
|
|
494
|
+
@function getOrange($theme) {
|
|
495
|
+
$orange-color: map-get($orange, getShade($theme));
|
|
496
|
+
@return $orange-color;
|
|
497
|
+
}
|
|
498
|
+
@function getOrangeContrast($theme) {
|
|
499
|
+
$orange-contrast-palette: map-get($orange, 'contrast');
|
|
500
|
+
$orange-contrast: map-get($orange-contrast-palette, getShade($theme));
|
|
501
|
+
@return $orange-contrast;
|
|
502
|
+
}
|
|
503
|
+
@function getOrangeAlpha($theme) {
|
|
504
|
+
$orange-color: getOrange($theme);
|
|
505
|
+
$orange-color-alpha: rgba($orange-color, 0.2);
|
|
506
|
+
@return $orange-color-alpha;
|
|
507
|
+
}
|
|
508
|
+
@function getOrangeContrastAlpha($theme) {
|
|
509
|
+
$orange-contrast: getOrangeContrast($theme);
|
|
510
|
+
$orange-contrast-alpha: rgba($orange-contrast, 0.2);
|
|
511
|
+
@return $orange-contrast-alpha;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// Deep Orange
|
|
515
|
+
@function getDeepOrange($theme) {
|
|
516
|
+
$deep-orange-color: map-get($deep-orange, getShade($theme));
|
|
517
|
+
@return $deep-orange-color;
|
|
518
|
+
}
|
|
519
|
+
@function getDeepOrangeContrast($theme) {
|
|
520
|
+
$deep-orange-contrast-palette: map-get($deep-orange, 'contrast');
|
|
521
|
+
$deep-orange-contrast: map-get($deep-orange-contrast-palette, getShade($theme));
|
|
522
|
+
@return $deep-orange-contrast;
|
|
523
|
+
}
|
|
524
|
+
@function getDeepOrangeAlpha($theme) {
|
|
525
|
+
$deep-orange-color: getDeepOrange($theme);
|
|
526
|
+
$deep-orange-color-alpha: rgba($deep-orange-color, 0.2);
|
|
527
|
+
@return $deep-orange-color-alpha;
|
|
528
|
+
}
|
|
529
|
+
@function getDeepOrangeContrastAlpha($theme) {
|
|
530
|
+
$deep-orange-contrast: getDeepOrangeContrast($theme);
|
|
531
|
+
$deep-orange-contrast-alpha: rgba($deep-orange-contrast, 0.2);
|
|
532
|
+
@return $deep-orange-contrast-alpha;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// Brown
|
|
536
|
+
@function getBrown($theme) {
|
|
537
|
+
$brown-color: map-get($brown, getShade($theme));
|
|
538
|
+
@return $brown-color;
|
|
539
|
+
}
|
|
540
|
+
@function getBrownContrast($theme) {
|
|
541
|
+
$brown-contrast-palette: map-get($brown, 'contrast');
|
|
542
|
+
$brown-contrast: map-get($brown-contrast-palette, getShade($theme));
|
|
543
|
+
@return $brown-contrast;
|
|
544
|
+
}
|
|
545
|
+
@function getBrownAlpha($theme) {
|
|
546
|
+
$brown-color: getBrown($theme);
|
|
547
|
+
$brown-color-alpha: rgba($brown-color, 0.2);
|
|
548
|
+
@return $brown-color-alpha;
|
|
549
|
+
}
|
|
550
|
+
@function getBrownContrastAlpha($theme) {
|
|
551
|
+
$brown-contrast: getBrownContrast($theme);
|
|
552
|
+
$brown-contrast-alpha: rgba($brown-contrast, 0.2);
|
|
553
|
+
@return $brown-contrast-alpha;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
// Grey
|
|
557
|
+
@function getGrey($theme) {
|
|
558
|
+
$grey-color: map-get($grey, getShade($theme));
|
|
559
|
+
@return $grey-color;
|
|
560
|
+
}
|
|
561
|
+
@function getGreyContrast($theme) {
|
|
562
|
+
$grey-contrast-palette: map-get($grey, 'contrast');
|
|
563
|
+
$grey-contrast: map-get($grey-contrast-palette, getShade($theme));
|
|
564
|
+
@return $grey-contrast;
|
|
565
|
+
}
|
|
566
|
+
@function getGreyAlpha($theme) {
|
|
567
|
+
$grey-color: getGrey($theme);
|
|
568
|
+
$grey-color-alpha: rgba($grey-color, 0.2);
|
|
569
|
+
@return $grey-color-alpha;
|
|
570
|
+
}
|
|
571
|
+
@function getGreyContrastAlpha($theme) {
|
|
572
|
+
$grey-contrast: getGreyContrast($theme);
|
|
573
|
+
$grey-contrast-alpha: rgba($grey-contrast, 0.2);
|
|
574
|
+
@return $grey-contrast-alpha;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// Blue Grey
|
|
578
|
+
@function getBlueGrey($theme) {
|
|
579
|
+
$blue-grey-color: map-get($blue-grey, getShade($theme));
|
|
580
|
+
@return $blue-grey-color;
|
|
581
|
+
}
|
|
582
|
+
@function getBlueGreyContrast($theme) {
|
|
583
|
+
$blue-grey-contrast-palette: map-get($blue-grey, 'contrast');
|
|
584
|
+
$blue-grey-contrast: map-get($blue-grey-contrast-palette, getShade($theme));
|
|
585
|
+
@return $blue-grey-contrast;
|
|
586
|
+
}
|
|
587
|
+
@function getBlueGreyAlpha($theme) {
|
|
588
|
+
$blue-grey-color: getBlueGrey($theme);
|
|
589
|
+
$blue-grey-color-alpha: rgba($blue-grey-color, 0.2);
|
|
590
|
+
@return $blue-grey-color-alpha;
|
|
591
|
+
}
|
|
592
|
+
@function getBlueGreyContrastAlpha($theme) {
|
|
593
|
+
$blue-grey-contrast: getBlueGreyContrast($theme);
|
|
594
|
+
$blue-grey-contrast-alpha: rgba($blue-grey-contrast, 0.2);
|
|
595
|
+
@return $blue-grey-contrast-alpha;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
// Primary
|
|
599
|
+
@function getPrimary($theme) {
|
|
600
|
+
$primary: map-get($theme, primary);
|
|
601
|
+
$primary-color: map-get($primary, default);
|
|
602
|
+
@return $primary-color;
|
|
603
|
+
}
|
|
604
|
+
@function getPrimaryContrast($theme) {
|
|
605
|
+
$primary: map-get($theme, primary);
|
|
606
|
+
$primary-contrast: map-get($primary, default-contrast);
|
|
607
|
+
@return $primary-contrast;
|
|
608
|
+
}
|
|
609
|
+
@function getPrimaryAlpha($theme) {
|
|
610
|
+
$primary-color: getPrimary($theme);
|
|
611
|
+
$primary-color-alpha: rgba($primary-color, 0.2);
|
|
612
|
+
@return $primary-color-alpha;
|
|
613
|
+
}
|
|
614
|
+
@function getPrimaryContrastAlpha($theme) {
|
|
615
|
+
$primary-contrast: getPrimaryContrast($theme);
|
|
616
|
+
$primary-contrast-alpha: rgba($primary-contrast, 0.2);
|
|
617
|
+
@return $primary-contrast-alpha;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// Accent
|
|
621
|
+
@function getAccent($theme) {
|
|
622
|
+
$accent: map-get($theme, accent);
|
|
623
|
+
$accent-color: map-get($accent, default);
|
|
624
|
+
@return $accent-color;
|
|
625
|
+
}
|
|
626
|
+
@function getAccentContrast($theme) {
|
|
627
|
+
$accent: map-get($theme, accent);
|
|
628
|
+
$accent-contrast: map-get($accent, default-contrast);
|
|
629
|
+
@return $accent-contrast;
|
|
630
|
+
}
|
|
631
|
+
@function getAccentAlpha($theme) {
|
|
632
|
+
$accent-color: getAccent($theme);
|
|
633
|
+
$accent-color-alpha: rgba($accent-color, 0.2);
|
|
634
|
+
@return $accent-color-alpha;
|
|
635
|
+
}
|
|
636
|
+
@function getAccentContrastAlpha($theme) {
|
|
637
|
+
$accent-contrast: getAccentContrast($theme);
|
|
638
|
+
$accent-contrast-alpha: rgba($accent-contrast, 0.2);
|
|
639
|
+
@return $accent-contrast-alpha;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
// Warn
|
|
643
|
+
@function getWarn($theme) {
|
|
644
|
+
$warn: map-get($theme, warn);
|
|
645
|
+
$warn-color: map-get($warn, default);
|
|
646
|
+
@return $warn-color;
|
|
647
|
+
}
|
|
648
|
+
@function getWarnContrast($theme) {
|
|
649
|
+
$warn: map-get($theme, warn);
|
|
650
|
+
$warn-contrast: map-get($warn, default-contrast);
|
|
651
|
+
@return $warn-contrast;
|
|
652
|
+
}
|
|
653
|
+
@function getWarnAlpha($theme) {
|
|
654
|
+
$warn-color: getWarn($theme);
|
|
655
|
+
$warn-color-alpha: rgba($warn-color, 0.2);
|
|
656
|
+
@return $warn-color-alpha;
|
|
657
|
+
}
|
|
658
|
+
@function getWarnContrastAlpha($theme) {
|
|
659
|
+
$warn-contrast: getWarnContrast($theme);
|
|
660
|
+
$warn-contrast-alpha: rgba($warn-contrast, 0.2);
|
|
661
|
+
@return $warn-contrast-alpha;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
|
|
101
668
|
// Gets a color from a theme palette (the output of mat-palette).
|
|
102
669
|
// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
|
|
103
670
|
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
|