@onemrvapublic/design-system-theme 18.2.4-develop.6 → 18.2.4-develop.7
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/index.scss +8 -6
- package/package.json +1 -1
- package/utilities/_fonts.scss +4 -4
package/index.scss
CHANGED
|
@@ -136,16 +136,18 @@
|
|
|
136
136
|
@include mat.core();
|
|
137
137
|
@include mat.core-theme(variables.$onemrva-theme);
|
|
138
138
|
@include mat.core-base(variables.$onemrva-theme);
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
// TODO: This should be the way to do it but it does not seem to work correctly when used via npm import
|
|
140
|
+
//@include mat.typography-hierarchy(
|
|
141
|
+
// variables.$onemrva-theme
|
|
142
|
+
//);
|
|
142
143
|
}
|
|
143
144
|
|
|
144
145
|
// Base for Web components
|
|
145
|
-
@mixin base() {
|
|
146
|
-
@include
|
|
147
|
-
@include fonts.theme(variables.$onemrva-theme);
|
|
146
|
+
@mixin base($production: true) {
|
|
147
|
+
@include reset();
|
|
148
|
+
@include fonts.theme(variables.$onemrva-theme, $production);
|
|
148
149
|
@include links.theme(variables.$onemrva-theme);
|
|
150
|
+
@include core();
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
// Load everything (size does not matter)
|
package/package.json
CHANGED
package/utilities/_fonts.scss
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
@use '../components/µ';
|
|
4
4
|
|
|
5
5
|
@mixin theme($onemrva-theme, $production: true) {
|
|
6
|
+
color: µ.grayscale($onemrva-theme, 900);
|
|
7
|
+
$typography: map.get($onemrva-theme, 'typography');
|
|
8
|
+
@include mat.m2-typography-level($typography, 'body-1');
|
|
9
|
+
|
|
6
10
|
@if ($production) {
|
|
7
11
|
@at-root {
|
|
8
12
|
@import url('https://cdn.services.rvaonem.fgov.be/font/poppins/import.css');
|
|
@@ -17,10 +21,6 @@
|
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
|
-
$typography: map.get($onemrva-theme, 'typography');
|
|
21
|
-
@include mat.m2-typography-level($typography, 'body-1');
|
|
22
|
-
color: µ.grayscale($onemrva-theme, 900);
|
|
23
|
-
|
|
24
24
|
.mat-small {
|
|
25
25
|
@include mat.m2-typography-level($typography, 'body-2');
|
|
26
26
|
}
|