@igo2/sdg-core 1.0.0-next.60
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/README.md +1 -0
- package/fesm2022/igo2-sdg-core.mjs +186 -0
- package/fesm2022/igo2-sdg-core.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/layout/breakpoint/breakpoint.service.d.ts +12 -0
- package/layout/breakpoint/index.d.ts +1 -0
- package/layout/index.d.ts +1 -0
- package/package.json +38 -0
- package/public-api.d.ts +4 -0
- package/router/index.d.ts +4 -0
- package/router/route.interface.d.ts +8 -0
- package/router/route.utils.d.ts +1 -0
- package/router/router.d.ts +5 -0
- package/router/title-resolver/index.d.ts +2 -0
- package/router/title-resolver/title-resolver.d.ts +8 -0
- package/router/title-resolver/title-resolver.pipe.d.ts +11 -0
- package/src/_index.scss +3 -0
- package/src/layout/_breakpoints.scss +120 -0
- package/src/layout/_index.scss +1 -0
- package/src/layout/layout.scss +5349 -0
- package/src/style/_index.scss +1 -0
- package/src/style/overrides/_index.scss +2 -0
- package/src/style/overrides/igo2-lib/_index-theme.scss +13 -0
- package/src/style/overrides/igo2-lib/_index.scss +6 -0
- package/src/style/overrides/igo2-lib/_search-bar-theme.scss +33 -0
- package/src/style/overrides/igo2-lib/list.scss +24 -0
- package/src/style/overrides/igo2-lib/panel.scss +8 -0
- package/src/style/overrides/igo2-lib/scrollbar.scss +15 -0
- package/src/style/overrides/igo2-lib/search-bar.scss +43 -0
- package/src/style/overrides/material/_button-theme.scss +74 -0
- package/src/style/overrides/material/_index-theme.scss +13 -0
- package/src/style/overrides/material/_index.scss +6 -0
- package/src/style/overrides/material/button.scss +5 -0
- package/src/style/overrides/material/dialog.scss +36 -0
- package/src/style/overrides/material/form-field.scss +5 -0
- package/src/style/overrides/material/input.scss +5 -0
- package/src/theme/_colors.scss +128 -0
- package/src/theme/_index.scss +3 -0
- package/src/theme/_palettes.scss +112 -0
- package/src/theme/_theme.scss +46 -0
- package/src/typography/_index.scss +2 -0
- package/src/typography/typography.scss +156 -0
- package/src/typography/typography.utils.scss +18 -0
- package/translation/index.d.ts +5 -0
- package/translation/translation-mock.provider.d.ts +12 -0
- package/translation/translation.interface.d.ts +1 -0
- package/translation/translation.provider.d.ts +21 -0
- package/translation/translation.service.d.ts +13 -0
- package/translation/translation.utils.d.ts +2 -0
- package/utils/coercion.d.ts +2 -0
- package/utils/index.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward './overrides';
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
// }
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
--mdc-text-button-container-height: 56px;
|
|
23
|
+
--mdc-outlined-button-container-height: 56px;
|
|
24
|
+
--mdc-protected-button-container-height: 56px;
|
|
25
|
+
--mdc-filled-button-container-height: 56px;
|
|
26
|
+
min-width: calc(56px * 2) !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mat-mdc-outlined-button {
|
|
30
|
+
border-width: 2px !important;
|
|
31
|
+
|
|
32
|
+
&[compact] {
|
|
33
|
+
border-width: 1px !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mdc-button[compact] {
|
|
38
|
+
$theme: map.merge(
|
|
39
|
+
$theme,
|
|
40
|
+
(
|
|
41
|
+
density: 0
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
@include mat.button-density($theme);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mdc-icon-button[compact] {
|
|
48
|
+
// Workaround the @include doesn't work for the icon button, the style is overriden
|
|
49
|
+
// $theme: map.merge($theme, (density: -2));
|
|
50
|
+
// @include mat.icon-button-density($theme);
|
|
51
|
+
--mdc-icon-button-state-layer-size: 40px;
|
|
52
|
+
width: var(--mdc-icon-button-state-layer-size);
|
|
53
|
+
height: var(--mdc-icon-button-state-layer-size);
|
|
54
|
+
padding: 8px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin typography($theme) {
|
|
59
|
+
.mdc-button {
|
|
60
|
+
--mdc-text-button-label-text-weight: bold;
|
|
61
|
+
--mdc-outlined-button-label-text-weight: bold;
|
|
62
|
+
--mdc-protected-button-label-text-weight: bold;
|
|
63
|
+
--mdc-filled-button-label-text-weight: bold;
|
|
64
|
+
|
|
65
|
+
$font-size: mat.m2-font-size(typography.$typography, body-1);
|
|
66
|
+
|
|
67
|
+
--mdc-filled-button-label-text-size: $font-size;
|
|
68
|
+
--mdc-text-button-label-text-size: $font-size;
|
|
69
|
+
--mdc-outlined-button-label-text-size: $font-size;
|
|
70
|
+
--mdc-protected-button-label-text-size: $font-size;
|
|
71
|
+
|
|
72
|
+
line-height: mat.m2-line-height(typography.$typography, body-1) !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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);
|
|
@@ -0,0 +1,112 @@
|
|
|
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
|
+
);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
@use '../style/overrides';
|
|
3
|
+
@use './palettes';
|
|
4
|
+
@use '../typography';
|
|
5
|
+
|
|
6
|
+
// https://design.quebec.ca/a-propos-systeme-design
|
|
7
|
+
$theme: mat.m2-define-light-theme(
|
|
8
|
+
(
|
|
9
|
+
color: (
|
|
10
|
+
primary: mat.m2-define-palette(palettes.$primary-palette, 600, 400, 700),
|
|
11
|
+
accent: mat.m2-define-palette(palettes.$accent-palette, 500),
|
|
12
|
+
warn: mat.m2-define-palette(palettes.$warn-palette, 500),
|
|
13
|
+
success: mat.m2-define-palette(palettes.$primary-palette, 900)
|
|
14
|
+
),
|
|
15
|
+
typography: typography.$typography,
|
|
16
|
+
density: 0
|
|
17
|
+
)
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
// Define an alternate dark theme.
|
|
21
|
+
$dark-theme: mat.m2-define-dark-theme(
|
|
22
|
+
(
|
|
23
|
+
color: (
|
|
24
|
+
primary: mat.m2-define-palette(palettes.$primary-palette, 300, 100, 800),
|
|
25
|
+
accent: mat.m2-define-palette(palettes.$accent-palette, 400, 100, 800),
|
|
26
|
+
warn: mat.m2-define-palette(palettes.$warn-palette, 400, 200, 800)
|
|
27
|
+
),
|
|
28
|
+
typography: typography.$typography,
|
|
29
|
+
density: 0
|
|
30
|
+
)
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
@mixin themes($theme) {
|
|
34
|
+
@include overrides.override-igo2-lib-themes($theme);
|
|
35
|
+
@include overrides.override-material-themes($theme);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin colors($theme) {
|
|
39
|
+
@include overrides.override-igo2-lib-colors($theme);
|
|
40
|
+
@include overrides.override-material-colors($theme);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@mixin densities($theme) {
|
|
44
|
+
@include overrides.override-igo2-lib-densities($theme);
|
|
45
|
+
@include overrides.override-material-densities($theme);
|
|
46
|
+
}
|