|
27 | 27 | @return $palette;
|
28 | 28 | }
|
29 | 29 |
|
| 30 | +/// Adds the error colors to the given palette. |
| 31 | +@function _patch-error-palette($palette) { |
| 32 | + @return map.merge( |
| 33 | + $palette, |
| 34 | + ( |
| 35 | + error: ( |
| 36 | + 0: #000000, |
| 37 | + 10: #410002, |
| 38 | + 20: #690005, |
| 39 | + 25: #7e0007, |
| 40 | + 30: #93000a, |
| 41 | + 35: #a80710, |
| 42 | + 40: #ba1a1a, |
| 43 | + 50: #de3730, |
| 44 | + 60: #ff5449, |
| 45 | + 70: #ff897d, |
| 46 | + 80: #ffb4ab, |
| 47 | + 90: #ffdad6, |
| 48 | + 95: #ffedea, |
| 49 | + 98: #fff8f7, |
| 50 | + 99: #fffbff, |
| 51 | + 100: #ffffff, |
| 52 | + ), |
| 53 | + ) |
| 54 | + ); |
| 55 | +} |
| 56 | + |
| 57 | +@function _apply-patches($palette) { |
| 58 | + @return _patch-missing-hues(_patch-error-palette($palette)); |
| 59 | +} |
| 60 | + |
30 | 61 | /// Red color palette to be used as primary or tertiary palette.
|
31 |
| -$red-palette: _patch-missing-hues(( |
| 62 | +$red-palette: _apply-patches(( |
32 | 63 | 0: #000000,
|
33 | 64 | 10: #410000,
|
34 | 65 | 20: #690100,
|
@@ -102,7 +133,7 @@ $red-palette: _patch-missing-hues((
|
102 | 133 | ));
|
103 | 134 |
|
104 | 135 | /// Green color palette to be used as primary or tertiary palette.
|
105 |
| -$green-palette: _patch-missing-hues(( |
| 136 | +$green-palette: _apply-patches(( |
106 | 137 | 0: #000000,
|
107 | 138 | 10: #002200,
|
108 | 139 | 20: #013a00,
|
@@ -176,7 +207,7 @@ $green-palette: _patch-missing-hues((
|
176 | 207 | ));
|
177 | 208 |
|
178 | 209 | /// Blue color palette to be used as primary or tertiary palette.
|
179 |
| -$blue-palette: _patch-missing-hues(( |
| 210 | +$blue-palette: _apply-patches(( |
180 | 211 | 0: #000000,
|
181 | 212 | 10: #00006e,
|
182 | 213 | 20: #0001ac,
|
@@ -250,7 +281,7 @@ $blue-palette: _patch-missing-hues((
|
250 | 281 | ));
|
251 | 282 |
|
252 | 283 | /// Yellow color palette to be used as primary or tertiary palette.
|
253 |
| -$yellow-palette: _patch-missing-hues(( |
| 284 | +$yellow-palette: _apply-patches(( |
254 | 285 | 0: #000000,
|
255 | 286 | 10: #1d1d00,
|
256 | 287 | 20: #323200,
|
@@ -324,7 +355,7 @@ $yellow-palette: _patch-missing-hues((
|
324 | 355 | ));
|
325 | 356 |
|
326 | 357 | /// Cyan color palette to be used as primary or tertiary palette.
|
327 |
| -$cyan-palette: _patch-missing-hues(( |
| 358 | +$cyan-palette: _apply-patches(( |
328 | 359 | 0: #000000,
|
329 | 360 | 10: #002020,
|
330 | 361 | 20: #003737,
|
@@ -398,7 +429,7 @@ $cyan-palette: _patch-missing-hues((
|
398 | 429 | ));
|
399 | 430 |
|
400 | 431 | /// Magenta color palette to be used as primary or tertiary palette.
|
401 |
| -$magenta-palette: _patch-missing-hues(( |
| 432 | +$magenta-palette: _apply-patches(( |
402 | 433 | 0: #000000,
|
403 | 434 | 10: #380038,
|
404 | 435 | 20: #5b005b,
|
@@ -472,7 +503,7 @@ $magenta-palette: _patch-missing-hues((
|
472 | 503 | ));
|
473 | 504 |
|
474 | 505 | /// Orange color palette to be used as primary or tertiary palette.
|
475 |
| -$orange-palette: _patch-missing-hues(( |
| 506 | +$orange-palette: _apply-patches(( |
476 | 507 | 0: #000000,
|
477 | 508 | 10: #311300,
|
478 | 509 | 20: #502400,
|
@@ -546,7 +577,7 @@ $orange-palette: _patch-missing-hues((
|
546 | 577 | ));
|
547 | 578 |
|
548 | 579 | /// Chartreuse color palette to be used as primary or tertiary palette.
|
549 |
| -$chartreuse-palette: _patch-missing-hues(( |
| 580 | +$chartreuse-palette: _apply-patches(( |
550 | 581 | 0: #000000,
|
551 | 582 | 10: #0b2000,
|
552 | 583 | 20: #173800,
|
@@ -620,7 +651,7 @@ $chartreuse-palette: _patch-missing-hues((
|
620 | 651 | ));
|
621 | 652 |
|
622 | 653 | /// Spring Green color palette to be used as primary or tertiary palette.
|
623 |
| -$spring-green-palette: _patch-missing-hues(( |
| 654 | +$spring-green-palette: _apply-patches(( |
624 | 655 | 0: #000000,
|
625 | 656 | 10: #00210b,
|
626 | 657 | 20: #003917,
|
@@ -694,7 +725,7 @@ $spring-green-palette: _patch-missing-hues((
|
694 | 725 | ));
|
695 | 726 |
|
696 | 727 | /// Azure color palette to be used as primary or tertiary palette.
|
697 |
| -$azure-palette: _patch-missing-hues(( |
| 728 | +$azure-palette: _apply-patches(( |
698 | 729 | 0: #000000,
|
699 | 730 | 10: #001b3f,
|
700 | 731 | 20: #002f65,
|
@@ -768,7 +799,7 @@ $azure-palette: _patch-missing-hues((
|
768 | 799 | ));
|
769 | 800 |
|
770 | 801 | /// Violet color palette to be used as primary or tertiary palette.
|
771 |
| -$violet-palette: _patch-missing-hues(( |
| 802 | +$violet-palette: _apply-patches(( |
772 | 803 | 0: #000000,
|
773 | 804 | 10: #270057,
|
774 | 805 | 20: #42008a,
|
@@ -842,7 +873,7 @@ $violet-palette: _patch-missing-hues((
|
842 | 873 | ));
|
843 | 874 |
|
844 | 875 | /// Rose color palette to be used as primary or tertiary palette.
|
845 |
| -$rose-palette: _patch-missing-hues(( |
| 876 | +$rose-palette: _apply-patches(( |
846 | 877 | 0: #000000,
|
847 | 878 | 10: #3f001b,
|
848 | 879 | 20: #65002f,
|
@@ -914,23 +945,3 @@ $rose-palette: _patch-missing-hues((
|
914 | 945 | 100: #ffffff,
|
915 | 946 | ),
|
916 | 947 | ));
|
917 |
| - |
918 |
| -/// Color palette to be used for error colors. |
919 |
| -$private-error-palette: ( |
920 |
| - 0: #000000, |
921 |
| - 10: #410002, |
922 |
| - 20: #690005, |
923 |
| - 25: #7e0007, |
924 |
| - 30: #93000a, |
925 |
| - 35: #a80710, |
926 |
| - 40: #ba1a1a, |
927 |
| - 50: #de3730, |
928 |
| - 60: #ff5449, |
929 |
| - 70: #ff897d, |
930 |
| - 80: #ffb4ab, |
931 |
| - 90: #ffdad6, |
932 |
| - 95: #ffedea, |
933 |
| - 98: #fff8f7, |
934 |
| - 99: #fffbff, |
935 |
| - 100: #ffffff, |
936 |
| -); |
|
0 commit comments