@igo2/sdg-core 1.0.0-next.79 → 1.0.0-next.80

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.
Files changed (51) hide show
  1. package/package.json +2 -2
  2. package/src/_index.scss +2 -1
  3. package/src/layout/_breakpoints.scss +36 -42
  4. package/src/style/_elevation.scss +54 -0
  5. package/src/style/_index.scss +3 -0
  6. package/src/style/_sass-utils.scss +24 -0
  7. package/src/style/_typography-utils.scss +23 -0
  8. package/src/style/_typography.scss +139 -0
  9. package/src/style/overrides/_index.scss +2 -2
  10. package/src/style/overrides/igo2-lib/_index.scss +5 -2
  11. package/src/style/overrides/igo2-lib/_list.scss +22 -0
  12. package/src/style/overrides/igo2-lib/_panel.scss +7 -0
  13. package/src/style/overrides/igo2-lib/_search-bar.scss +70 -0
  14. package/src/style/overrides/material/_button.scss +118 -0
  15. package/src/style/overrides/material/_dialog.scss +37 -0
  16. package/src/style/overrides/material/_divider.scss +11 -0
  17. package/src/style/overrides/material/_form-field.scss +20 -0
  18. package/src/style/overrides/material/_icon.scss +34 -0
  19. package/src/style/overrides/material/_index.scss +12 -1
  20. package/src/style/overrides/material/_input.scss +5 -0
  21. package/src/style/overrides/material/_sidenav.scss +9 -0
  22. package/src/theme/_index.scss +1 -3
  23. package/src/theme/material/_index.scss +1 -0
  24. package/src/theme/material/_theme.scss +241 -0
  25. package/src/tokens/_index.scss +7 -0
  26. package/src/tokens/_sys-colors.scss +99 -0
  27. package/src/tokens/_sys-elevation.scss +17 -0
  28. package/src/tokens/_sys-layout.scss +28 -0
  29. package/src/tokens/_sys-palettes.scss +72 -0
  30. package/src/tokens/_sys-typography.scss +109 -0
  31. package/src/tokens/_system.scss +56 -0
  32. package/src/tokens/_token-utils.scss +79 -0
  33. package/src/style/overrides/igo2-lib/_index-theme.scss +0 -13
  34. package/src/style/overrides/igo2-lib/_search-bar-theme.scss +0 -33
  35. package/src/style/overrides/igo2-lib/list.scss +0 -24
  36. package/src/style/overrides/igo2-lib/panel.scss +0 -8
  37. package/src/style/overrides/igo2-lib/scrollbar.scss +0 -15
  38. package/src/style/overrides/igo2-lib/search-bar.scss +0 -43
  39. package/src/style/overrides/material/_button-theme.scss +0 -81
  40. package/src/style/overrides/material/_index-theme.scss +0 -13
  41. package/src/style/overrides/material/button.scss +0 -5
  42. package/src/style/overrides/material/dialog.scss +0 -36
  43. package/src/style/overrides/material/form-field.scss +0 -5
  44. package/src/style/overrides/material/input.scss +0 -5
  45. package/src/theme/_colors.scss +0 -128
  46. package/src/theme/_palettes.scss +0 -112
  47. package/src/theme/_theme.scss +0 -46
  48. package/src/typography/_index.scss +0 -2
  49. package/src/typography/typography.scss +0 -173
  50. package/src/typography/typography.utils.scss +0 -18
  51. /package/src/layout/{layout.scss → bootstrap-layout.scss} +0 -0
@@ -0,0 +1,56 @@
1
+ @use 'sass:map';
2
+
3
+ @use '../style/overrides';
4
+ @use '../style/elevation';
5
+ @use './sys-colors';
6
+ @use './sys-elevation';
7
+ @use './sys-layout';
8
+ @use './sys-palettes';
9
+ @use './sys-typography';
10
+ @use './token-utils';
11
+
12
+ @mixin theme($withDarkMode: false) {
13
+ @include _system-colors();
14
+ @include _system-typographies();
15
+ @include _system-layout();
16
+ @include _system-level-elevation();
17
+
18
+ @if ($withDarkMode) {
19
+ body.dark-mode {
20
+ @include _system-dark-colors();
21
+ }
22
+ }
23
+
24
+ body {
25
+ background-color: var(--sdg-color-background);
26
+ }
27
+
28
+ @include overrides.igo2-lib-overrides();
29
+ @include overrides.material-overrides();
30
+ }
31
+
32
+ @mixin _system-level-elevation() {
33
+ $elevations: sys-elevation.sys-elevation-values();
34
+ @include token-utils.values($elevations);
35
+ }
36
+
37
+ @mixin _system-colors() {
38
+ $palettes: sys-palettes.sys-palette-values();
39
+ $colors: sys-colors.sys-color-values();
40
+
41
+ @include token-utils.values(map.merge($palettes, $colors));
42
+ }
43
+
44
+ @mixin _system-dark-colors() {
45
+ @include token-utils.values(sys-colors.sys-dark-color-values());
46
+ }
47
+
48
+ @mixin _system-typographies() {
49
+ $typography: sys-typography.sys-typography-values();
50
+ @include token-utils.values($typography);
51
+ }
52
+
53
+ @mixin _system-layout() {
54
+ $values: sys-layout.sys-layout-values();
55
+ @include token-utils.values($values);
56
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Most of the code is inspired or from @angular/material
3
+ * https://github.com/angular/components/tree/main/src/material/core/tokens/_token-utils.scss
4
+ */
5
+
6
+ @use 'sass:map';
7
+ @use '../style/sass-utils';
8
+
9
+ // Creates a CSS variable, including the fallback if provided.
10
+ @function _create-var($name, $fallback: null) {
11
+ @if ($fallback) {
12
+ @return var($name, $fallback);
13
+ } @else {
14
+ @return var($name);
15
+ }
16
+ }
17
+
18
+ // Returns the token slot value.
19
+ // Accepts an optional fallback parameter to include in the CSS variable.
20
+ // If $fallback is `true`, then use the tokens map to get the fallback.
21
+ @function slot($token, $fallbacks, $fallback: null) {
22
+ // Fallbacks are a map of base, color, typography, and density tokens. To simplify
23
+ // lookup, flatten these token groups into a single map.
24
+ $fallbacks-flattened: ();
25
+ @each $tokens in map.values($fallbacks) {
26
+ @each $token, $value in $tokens {
27
+ $fallbacks-flattened: map.set($fallbacks-flattened, $token, $value);
28
+ }
29
+ }
30
+ @if not map.has-key($fallbacks-flattened, $token) {
31
+ @error 'Token #{$token} does not exist. Configured tokens are:' +
32
+ #{map.keys($fallbacks-flattened)};
33
+ }
34
+
35
+ $sys-fallback: map.get($fallbacks-flattened, $token);
36
+ @if (sass-utils.is-css-var-name($sys-fallback)) {
37
+ $sys-fallback: _create-var($sys-fallback, $fallback);
38
+ }
39
+
40
+ @return _create-var(--sdg-#{$token}, $sys-fallback);
41
+ }
42
+
43
+ // Outputs a map of token values as CSS variable definitions.
44
+ @mixin values($tokens) {
45
+ @include sass-utils.current-selector-or-root() {
46
+ @each $key, $value in $tokens {
47
+ @if $value != null {
48
+ --sdg-#{$key}: #{$value};
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ // Flattens a nested map, concatenating keys with '-' and returning a flat map.
55
+ @function flatten-tokens-map($map, $prefix: '') {
56
+ $result: ();
57
+ @each $key, $value in $map {
58
+ $full-key: if($prefix != '', $prefix + '-' + $key, $key);
59
+ @if type-of($value) == 'map' {
60
+ $nested: flatten-tokens-map($value, $full-key);
61
+ @each $nkey, $nvalue in $nested {
62
+ $result: map.merge(
63
+ $result,
64
+ (
65
+ $nkey: $nvalue
66
+ )
67
+ );
68
+ }
69
+ } @else {
70
+ $result: map.merge(
71
+ $result,
72
+ (
73
+ $full-key: $value
74
+ )
75
+ );
76
+ }
77
+ }
78
+ @return $result;
79
+ }
@@ -1,13 +0,0 @@
1
- @use './search-bar-theme' as search-bar;
2
-
3
- @mixin themes($theme) {
4
- @include search-bar.theme($theme);
5
- }
6
-
7
- @mixin colors($theme) {
8
- @include search-bar.color($theme);
9
- }
10
-
11
- @mixin densities($theme) {
12
- @include search-bar.density($theme);
13
- }
@@ -1,33 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme($theme) {
5
- @include color($theme);
6
- @include density($theme);
7
- }
8
-
9
- @mixin color($theme) {
10
- }
11
-
12
- @mixin density($theme) {
13
- $density: mat.m2-get-density-config($theme);
14
-
15
- $theme4: map.merge(
16
- $theme,
17
- (
18
- density: $density - 4
19
- )
20
- );
21
-
22
- $theme2: map.merge(
23
- $theme,
24
- (
25
- density: $density - 2
26
- )
27
- );
28
-
29
- igo-search-bar {
30
- @include mat.form-field-density($theme4);
31
- @include mat.icon-button-density($theme2);
32
- }
33
- }
@@ -1,24 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
- @use '../../../theme/palettes';
4
-
5
- // TODO rework this style to be more generic
6
-
7
- igo-search-results-item {
8
- .mdc-list-item__primary-text {
9
- white-space: normal;
10
- overflow: hidden;
11
- text-overflow: ellipsis;
12
- max-height: unset !important;
13
- line-height: 18px !important;
14
- }
15
- }
16
-
17
- igo-list [igolistitem][color='accent'].igo-list-item-selected > mat-list-item {
18
- background-color: map.get(palettes.$primary-palette, 400);
19
-
20
- h4,
21
- small {
22
- color: map.get(palettes.$primary-palette, contrast, 500) !important;
23
- }
24
- }
@@ -1,8 +0,0 @@
1
- @use 'sass:map';
2
- @use '../../../theme/palettes';
3
-
4
- .igo-panel-header,
5
- .igo-panel-header button,
6
- .igo-panel-title {
7
- color: map.get(palettes.$primary-palette, contrast, 500) !important;
8
- }
@@ -1,15 +0,0 @@
1
- // @use '../base';
2
-
3
- // *::-webkit-scrollbar {
4
- // width: 6px;
5
- // }
6
-
7
- // *::-webkit-scrollbar-track {
8
- // box-shadow: inset 0 0 5px base.$blue-pale;
9
- // border-radius: 10px;
10
- // }
11
-
12
- // *::-webkit-scrollbar-thumb {
13
- // background: base.$blue-piv;
14
- // border-radius: 10px;
15
- // }
@@ -1,43 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
- @use '@angular/material' as mat;
4
- @use '../../../theme/colors';
5
- @use '../../../theme/palettes';
6
-
7
- igo-search-bar {
8
- // Workaroung, OPEN SANS font add a mysterious 1px for the height
9
- .mat-mdc-form-field-infix {
10
- max-height: 40px;
11
- }
12
-
13
- button[mat-icon-button] {
14
- background-color: colors.$blue-piv;
15
-
16
- &:hover {
17
- background-color: color.adjust(colors.$blue-piv, $lightness: 5%);
18
- }
19
- }
20
-
21
- mat-icon {
22
- color: map.get(palettes.$primary-palette, contrast, 500);
23
- }
24
- }
25
-
26
- igo-search-results {
27
- igo-collapsible {
28
- .mdc-list-item__primary-text {
29
- color: colors.$blue-dark;
30
- font-weight: bold;
31
- }
32
- }
33
-
34
- igo-search-results-item {
35
- .mdc-list-item__primary-text {
36
- font-weight: normal;
37
- }
38
- }
39
-
40
- .mdc-list-item--with-leading-icon .mdc-list-item__start {
41
- color: colors.$blue-dark;
42
- }
43
- }
@@ -1,81 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @use '../../../typography';
5
-
6
- @mixin theme($theme) {
7
- @include color($theme);
8
- @include density($theme);
9
- @include typography($theme);
10
- }
11
-
12
- @mixin color($theme) {
13
- $primary: map.get($theme, primary);
14
-
15
- .mat-mdc-outlined-button {
16
- border-color: currentColor !important;
17
- }
18
- }
19
-
20
- @mixin density($theme) {
21
- .mdc-button {
22
- @include mat.button-overrides(
23
- (
24
- filled-container-height: 56px,
25
- outlined-container-height: 56px,
26
- protected-container-height: 56px,
27
- text-container-height: 56px
28
- )
29
- );
30
- min-width: calc(56px * 2) !important;
31
- }
32
-
33
- .mat-mdc-outlined-button {
34
- border-width: 2px !important;
35
-
36
- &[compact] {
37
- border-width: 1px !important;
38
- }
39
- }
40
-
41
- .mdc-button[compact] {
42
- $theme: map.merge(
43
- $theme,
44
- (
45
- density: 0
46
- )
47
- );
48
- @include mat.button-density($theme);
49
- }
50
-
51
- .mdc-icon-button[compact] {
52
- // Workaround the @include doesn't work for the icon button, the style is overriden
53
- // $theme: map.merge($theme, (density: -2));
54
- // @include mat.icon-button-density($theme);
55
- --mdc-icon-button-state-layer-size: 40px;
56
- width: var(--mdc-icon-button-state-layer-size);
57
- height: var(--mdc-icon-button-state-layer-size);
58
- padding: 8px;
59
- }
60
- }
61
-
62
- @mixin typography($theme) {
63
- .mdc-button {
64
- $font-size: mat.m2-font-size(typography.$typography, body-1);
65
-
66
- @include mat.button-overrides(
67
- (
68
- filled-label-text-size: $font-size,
69
- filled-label-text-weight: bold,
70
- outlined-label-text-size: $font-size,
71
- outlined-label-text-weight: bold,
72
- protected-label-text-size: $font-size,
73
- protected-label-text-weight: bold,
74
- text-label-text-size: $font-size,
75
- text-label-text-weight: bold
76
- )
77
- );
78
-
79
- line-height: mat.m2-line-height(typography.$typography, body-1) !important;
80
- }
81
- }
@@ -1,13 +0,0 @@
1
- @use './button-theme' as button;
2
-
3
- @mixin themes($theme) {
4
- @include button.theme($theme);
5
- }
6
-
7
- @mixin colors($theme) {
8
- @include button.color($theme);
9
- }
10
-
11
- @mixin densities($theme) {
12
- @include button.density($theme);
13
- }
@@ -1,5 +0,0 @@
1
- @use '@angular/material' as mat;
2
-
3
- .mat-mdc-button-base {
4
- border-radius: 0 !important;
5
- }
@@ -1,36 +0,0 @@
1
- @use '../../../typography';
2
-
3
- .mdc-dialog {
4
- max-width: 600px;
5
-
6
- &__surface {
7
- border-radius: 0 !important;
8
- }
9
-
10
- &__title {
11
- padding-top: 8px !important; // Workaround, this should be 32px but Material apply a default height for the title.
12
- padding-bottom: 24px !important;
13
-
14
- @include typography.title-level-4;
15
- @include typography.title-border;
16
- }
17
-
18
- &__tile,
19
- &__content,
20
- &__actions {
21
- padding-left: 32px !important;
22
- padding-right: 32px !important;
23
- }
24
-
25
- &__actions {
26
- padding-top: 24px !important;
27
- padding-bottom: 32px !important;
28
- }
29
-
30
- .close-button {
31
- $iconButtonPadding: 8px;
32
- position: absolute;
33
- top: 16px - $iconButtonPadding;
34
- right: 16px - $iconButtonPadding;
35
- }
36
- }
@@ -1,5 +0,0 @@
1
- .mat-mdc-text-field-wrapper,
2
- .mdc-notched-outline__leading,
3
- .mdc-notched-outline__trailing {
4
- border-radius: 0 !important;
5
- }
@@ -1,5 +0,0 @@
1
- @use '../../../theme/colors';
2
-
3
- .mat-mdc-input-element {
4
- color: colors.$grey-medium !important;
5
- }
@@ -1,128 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
-
4
- // https://design.quebec.ca/bases/couleurs
5
- // https://design.quebec.ca/design/bases/theme-sombre
6
- $blue-colors: (
7
- 50: color.adjust(#dae6f0, $lightness: 5%),
8
- 100: #dae6f0,
9
- 150: #c6dbee,
10
- 200: #adcdeb,
11
- 300: #72b2eb,
12
- 350: #4a98d9,
13
- 400: #3b95e1,
14
- 500: #0078cc,
15
- 550: #1472bf,
16
- 600: #095797,
17
- 650: #19406c,
18
- 700: #223654,
19
- 800: #162b47,
20
- 900: color.adjust(#162b47, $lightness: -10%)
21
- );
22
-
23
- $grey-colors: (
24
- 0: #ffffff,
25
- 100: #f1f1f2,
26
- 150: #d7d8dd,
27
- 200: #c5cad2,
28
- 300: #a7acbc,
29
- 350: #8893a2,
30
- 400: #8590a8,
31
- 450: #6b778a,
32
- 500: #6a7688,
33
- 600: #4e5662,
34
- 700: #3b424c,
35
- 850: #1c2025,
36
- 900: #121519,
37
- 950: #000000
38
- );
39
-
40
- $red-colors: (
41
- 50: #ffdbd6,
42
- 200: #f3bcb6,
43
- 300: #e58271,
44
- 350: #f17b6c,
45
- 400: #f26049,
46
- 500: #cb381f,
47
- 550: #bb3a23,
48
- 700: #692519,
49
- 800: #4f180e
50
- );
51
-
52
- $green-colors: (
53
- 100: #d7f0bb,
54
- 200: #b0d493,
55
- 400: #6e9c57,
56
- 500: #4f813d,
57
- 600: #2c4024,
58
- 800: #1e2f17
59
- );
60
-
61
- $yellow-colors: (
62
- 100: #f8e69a,
63
- 400: #e0ad03,
64
- 450: #ac7900,
65
- 600: #ad781c,
66
- 650: #6d4512,
67
- 800: #3f240c
68
- );
69
-
70
- $violet-colors: (
71
- 300: #b3a5d4,
72
- 500: #6b4fa1
73
- );
74
-
75
- $blue-pale: map.get($blue-colors, 100);
76
- $blue-150: map.get($blue-colors, 150);
77
- $blue-200: map.get($blue-colors, 200);
78
- $blue-300: map.get($blue-colors, 300);
79
- $blue-light: map.get($blue-colors, 350);
80
- $blue-400: map.get($blue-colors, 400);
81
- $blue-500: map.get($blue-colors, 500);
82
- $blue-normal: map.get($blue-colors, 550);
83
- $blue-piv: map.get($blue-colors, 600);
84
- $blue-medium: map.get($blue-colors, 650);
85
- $blue-dark: map.get($blue-colors, 700);
86
- $blue-800: map.get($blue-colors, 800);
87
-
88
- $white: map.get($grey-colors, 0);
89
- $grey-pale: map.get($grey-colors, 100);
90
- $grey-150: map.get($grey-colors, 150);
91
- $grey-light: map.get($grey-colors, 200);
92
- $grey-300: map.get($grey-colors, 300);
93
- $grey-normal: map.get($grey-colors, 350);
94
- $grey-400: map.get($grey-colors, 400);
95
- $grey-medium: map.get($grey-colors, 450);
96
- $grey-500: map.get($grey-colors, 500);
97
- $grey-dark: map.get($grey-colors, 600);
98
- $grey-700: map.get($grey-colors, 700);
99
- $grey-850: map.get($grey-colors, 500);
100
- $grey-900: map.get($grey-colors, 900);
101
- $black: map.get($grey-colors, 950);
102
-
103
- $pink-pale: map.get($red-colors, 50);
104
- $red-200: map.get($red-colors, 200);
105
- $pink: map.get($red-colors, 300);
106
- $red-350: map.get($red-colors, 350);
107
- $red-400: map.get($red-colors, 400);
108
- $red-normal: map.get($red-colors, 500);
109
- $red-550: map.get($red-colors, 550);
110
- $red-dark: map.get($red-colors, 700);
111
- $red-800: map.get($red-colors, 800);
112
-
113
- $green-pale: map.get($green-colors, 100);
114
- $green-200: map.get($green-colors, 200);
115
- $green-400: map.get($green-colors, 400);
116
- $green-normal: map.get($green-colors, 500);
117
- $green-dark: map.get($green-colors, 600);
118
- $green-800: map.get($green-colors, 800);
119
-
120
- $yellow-pale: map.get($yellow-colors, 100);
121
- $yellow-normal: map.get($yellow-colors, 400);
122
- $yellow-450: map.get($yellow-colors, 450);
123
- $yellow-dark: map.get($yellow-colors, 600);
124
- $yellow-650: map.get($yellow-colors, 650);
125
- $yellow-800: map.get($yellow-colors, 800);
126
-
127
- $violet-300: map.get($violet-colors, 300);
128
- $violet-normal: map.get($violet-colors, 500);
@@ -1,112 +0,0 @@
1
- @use 'sass:map';
2
- @use 'sass:color';
3
- @use './colors';
4
-
5
- // Design Quebec colors
6
-
7
- // $primary: colors.$blue-piv;
8
- // $accent: colors.$pink;
9
-
10
- $dark-primary-text: colors.$blue-dark;
11
- $light-primary-text: colors.$white;
12
-
13
- $primary-palette: (
14
- 50: map.get(colors.$blue-colors, 50),
15
- 100: map.get(colors.$blue-colors, 100),
16
- 200: map.get(colors.$blue-colors, 200),
17
- 300: map.get(colors.$blue-colors, 300),
18
- 400: map.get(colors.$blue-colors, 400),
19
- 500: map.get(colors.$blue-colors, 500),
20
- 600: map.get(colors.$blue-colors, 600),
21
- 700: map.get(colors.$blue-colors, 700),
22
- 800: map.get(colors.$blue-colors, 800),
23
- 900: map.get(colors.$blue-colors, 900),
24
- A100: map.get(colors.$blue-colors, 500),
25
- A200: color.adjust(map.get(colors.$blue-colors, 500), $lightness: 10%),
26
- A400: map.get(colors.$grey-colors, 200),
27
- A700: map.get(colors.$grey-colors, 100),
28
- contrast: (
29
- 50: $dark-primary-text,
30
- 100: $dark-primary-text,
31
- 200: $dark-primary-text,
32
- 300: $dark-primary-text,
33
- 400: $dark-primary-text,
34
- 500: $light-primary-text,
35
- 600: $light-primary-text,
36
- 700: $light-primary-text,
37
- 800: $light-primary-text,
38
- 900: $light-primary-text,
39
- A100: $dark-primary-text,
40
- A200: $light-primary-text,
41
- A400: $light-primary-text,
42
- A700: $light-primary-text
43
- )
44
- );
45
-
46
- $accent: map.get(colors.$red-colors, 300);
47
-
48
- $accent-palette: (
49
- 50: map.get(colors.$red-colors, 50),
50
- 100: color.adjust($accent, $lightness: 40%),
51
- 200: color.adjust($accent, $lightness: 30%),
52
- 300: color.adjust($accent, $lightness: 20%),
53
- 400: color.adjust($accent, $lightness: 10%),
54
- 500: $accent,
55
- 600: color.adjust($accent, $lightness: -10%),
56
- 700: color.adjust($accent, $lightness: -20%),
57
- 800: color.adjust($accent, $lightness: -30%),
58
- 900: color.adjust($accent, $lightness: -40%),
59
- A100: map.get(colors.$red-colors, 500),
60
- A200: color.adjust(map.get(colors.$red-colors, 500), $lightness: 10%),
61
- A400: map.get(colors.$grey-colors, 200),
62
- A700: map.get(colors.$grey-colors, 100),
63
- contrast: (
64
- 50: $dark-primary-text,
65
- 100: $dark-primary-text,
66
- 200: $dark-primary-text,
67
- 300: $dark-primary-text,
68
- 400: $dark-primary-text,
69
- 500: $light-primary-text,
70
- 600: $light-primary-text,
71
- 700: $light-primary-text,
72
- 800: $light-primary-text,
73
- 900: $light-primary-text,
74
- A100: $dark-primary-text,
75
- A200: $light-primary-text,
76
- A400: $light-primary-text,
77
- A700: $light-primary-text
78
- )
79
- );
80
-
81
- $warn-palette: (
82
- 50: map.get(colors.$red-colors, 50),
83
- 100: color.adjust(map.get(colors.$red-colors, 200), $lightness: 10%),
84
- 200: map.get(colors.$red-colors, 200),
85
- 300: map.get(colors.$red-colors, 300),
86
- 400: map.get(colors.$red-colors, 400),
87
- 500: map.get(colors.$red-colors, 500),
88
- 600: map.get(colors.$red-colors, 550),
89
- 700: map.get(colors.$red-colors, 700),
90
- 800: map.get(colors.$red-colors, 800),
91
- 900: color.adjust(map.get(colors.$red-colors, 800), $lightness: -10%),
92
- A100: map.get(colors.$red-colors, 500),
93
- A200: color.adjust(map.get(colors.$red-colors, 500), $lightness: 10%),
94
- A400: map.get(colors.$grey-colors, 200),
95
- A700: map.get(colors.$grey-colors, 100),
96
- contrast: (
97
- 50: $dark-primary-text,
98
- 100: $dark-primary-text,
99
- 200: $dark-primary-text,
100
- 300: $dark-primary-text,
101
- 400: $dark-primary-text,
102
- 500: $light-primary-text,
103
- 600: $light-primary-text,
104
- 700: $light-primary-text,
105
- 800: $light-primary-text,
106
- 900: $light-primary-text,
107
- A100: $dark-primary-text,
108
- A200: $light-primary-text,
109
- A400: $light-primary-text,
110
- A700: $light-primary-text
111
- )
112
- );