@simple-reporting/base 1.0.22 → 1.0.24

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 (57) hide show
  1. package/dev/index.html +1 -1
  2. package/dev/livingdocs.config.json +6 -6
  3. package/dev/package.json +1 -1
  4. package/dev/src/Dialog.vue +3 -0
  5. package/dev/src/assets/scss/general.scss +1 -0
  6. package/dev/src/assets/scss/pdf.scss +13 -0
  7. package/dev/src/entries/pdf.ts +14 -1
  8. package/dev/srl.config.json +21 -0
  9. package/livingdocs/040.Media/010.table/scss/pdf.scss +20 -0
  10. package/livingdocs/080.CV/010.cv/cv.html +34 -32
  11. package/livingdocs/100.Misc/010.anchor/anchor.html +1 -1
  12. package/livingdocs/100.Misc/020.accordion/accordion.html +7 -5
  13. package/livingdocs/110.PDF/100.pdf-toc-item/scss/general.scss +1 -1
  14. package/package.json +2 -1
  15. package/scripts/beaver.js +14 -18
  16. package/scripts/build/variables.d.ts +6 -0
  17. package/scripts/build/variables.js +6 -0
  18. package/scripts/build.js +56 -16
  19. package/scripts/dotenv.d.ts +1 -0
  20. package/scripts/dotenv.js +8 -0
  21. package/scripts/init.js +1 -1
  22. package/scripts/ldd/mapLdd.js +2 -2
  23. package/scripts/utils.d.ts +1 -0
  24. package/scripts/utils.js +22 -0
  25. package/scss/colors/functions.scss +2 -10
  26. package/scss/colors/mixins.scss +0 -18
  27. package/scss/colors/root.scss +10 -0
  28. package/scss/core-styles.scss +4 -1
  29. package/scss/fonts/root.scss +4 -0
  30. package/scss/grid/functions.scss +8 -6
  31. package/scss/grid/mixins.scss +0 -77
  32. package/scss/grid/root.scss +80 -0
  33. package/scss/helpers/root.scss +4 -0
  34. package/scss/init-root.scss +12 -0
  35. package/scss/meta/root.scss +4 -0
  36. package/scss/spacer/functions.scss +2 -1
  37. package/scss/spacer/mixins.scss +0 -52
  38. package/scss/spacer/root.scss +55 -0
  39. package/scss/system/functions.scss +70 -5
  40. package/scss/system/root.scss +0 -3
  41. package/scss/system/variables.scss +1 -0
  42. package/scss/typography/functions.scss +12 -12
  43. package/scss/typography/mixins.scss +0 -221
  44. package/scss/typography/root.scss +226 -0
  45. package/srl/.srl/App.vue +9 -5
  46. package/srl/.srl/components/Srl/Article/Accordion.vue +106 -0
  47. package/srl/.srl/components/Srl/Article/Dialog/Button.vue +39 -18
  48. package/srl/.srl/components/Srl/Category/Accordion.vue +32 -4
  49. package/srl/.srl/components/Srl/Page/Dialog.vue +17 -19
  50. package/srl/.srl/plugins/initProject.ts +12 -7
  51. package/srl/.srl/utils/html.ts +71 -62
  52. package/srl/.srl/utils/index.ts +28 -1
  53. package/srl/.srl/utils/pageState.ts +61 -0
  54. package/srl/srl/pdf/PDFNotes.ts +71 -0
  55. package/srl/srl/pdf/PDFSetPageNumbers.ts +25 -0
  56. package/srl/srl/pdf.scss +0 -2
  57. /package/srl/srl/{Awesomizr.js → pdf/Awesomizr.js} +0 -0
@@ -4,24 +4,6 @@
4
4
  @use 'functions';
5
5
  @use '../system';
6
6
 
7
- @mixin set($colorName, $value, $media: false) {
8
- @if not map.has-key(variables.$colors, $colorName) {
9
- @error "Invalid color \"#{$colorName}\" specified! Choose one of #{map.keys(variables.$colors)}";
10
- }
11
- @if $media {
12
- --#{variables.$variable-prefix}color-#{"" + $colorName}-#{$media}: #{$value};
13
- } @else {
14
- --#{variables.$variable-prefix}color-#{"" + $colorName}: #{$value};
15
- }
16
- }
17
-
18
- @each $colorName, $colors in variables.$colors {
19
- @include system.add-root-style(
20
- #{variables.$variable-prefix}color-#{'' + $colorName},
21
- map.get($colors, color)
22
- );
23
- }
24
-
25
7
  @mixin core-styles {
26
8
  @at-root {
27
9
  @each $colorName, $colors in variables.$colors {
@@ -0,0 +1,10 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
5
+ @each $colorName, $colors in variables.$colors {
6
+ @include system.add-root-style(
7
+ #{variables.$variable-prefix}color-#{'' + $colorName},
8
+ map.get($colors, color)
9
+ );
10
+ }
@@ -1,6 +1,7 @@
1
1
  @use 'config';
2
2
  @use 'index';
3
3
  @use 'system/root';
4
+ @use "system/variables";
4
5
 
5
6
  @use 'modern-css-reset';
6
7
 
@@ -12,7 +13,9 @@ li {
12
13
  margin: 0;
13
14
  }
14
15
 
15
- @include root.core-styles;
16
+ @if variables.$build != word {
17
+ @include root.core-styles;
18
+ }
16
19
  @include index.core-styles;
17
20
  @include index.system-core-styles;
18
21
  @include index.fonts-core-styles;
@@ -0,0 +1,4 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
@@ -1,31 +1,33 @@
1
1
  @use 'sass:map';
2
2
  @use 'variables';
3
+ @use '../system';
4
+
3
5
 
4
6
  @function get-container-max-width() {
5
- @return var(--#{variables.$variable-prefix}container-max-width, 0);
7
+ @return system.root-style(#{variables.$variable-prefix}container-max-width, 0);
6
8
  }
7
9
 
8
10
  @function get-container-padding() {
9
- @return var(--#{variables.$variable-prefix}container-padding, 0);
11
+ @return system.root-style(#{variables.$variable-prefix}container-padding, 0);
10
12
  }
11
13
 
12
14
  @function get-breakpoint($breakpoint) {
13
15
  @if not map.has-key(variables.$breakpoints, $breakpoint) {
14
16
  @error "Invalid breakpoint for container specified! Choose one of #{map.keys(variables.$breakpoints)}";
15
17
  }
16
- @return var(--#{variables.$variable-prefix}-breakpoint-#{$breakpoint});
18
+ @return system.root-style(#{variables.$variable-prefix}-breakpoint-#{$breakpoint});
17
19
  }
18
20
 
19
21
  @function get-gutter-columns() {
20
- @return var(--#{variables.$variable-prefix}gutter-columns);
22
+ @return system.root-style(#{variables.$variable-prefix}gutter-columns);
21
23
  }
22
24
 
23
25
  @function get-gutter-row-gap() {
24
- @return var(--#{variables.$variable-prefix}gutter-row-gap);
26
+ @return system.root-style(#{variables.$variable-prefix}gutter-row-gap);
25
27
  }
26
28
 
27
29
  @function get-gutter-column-gap() {
28
- @return var(--#{variables.$variable-prefix}gutter-column-gap);
30
+ @return system.root-style(#{variables.$variable-prefix}gutter-column-gap);
29
31
  }
30
32
 
31
33
  @function calculate-pdf-col-span-minus-one-gutter($span) {
@@ -160,83 +160,6 @@
160
160
  }
161
161
  }
162
162
 
163
- @each $breakpoint, $min-width in variables.$breakpoints {
164
- $size-unit: false;
165
- @if $breakpoint == print {
166
- $size-unit: in;
167
- }
168
-
169
- @include system.add-root-style(
170
- #{variables.$variable-prefix}breakpoint-#{$breakpoint},
171
- system.size-unit($min-width, $size-unit)
172
- );
173
-
174
- $container: map.get(variables.$containers, $breakpoint);
175
-
176
- $container-max-width: map.get($container, max-width);
177
- @if not $container-max-width {
178
- $container-max-width: unset;
179
- }
180
-
181
- @include system.add-root-style(
182
- #{variables.$variable-prefix}container-max-width,
183
- system.size-unit($container-max-width, $size-unit),
184
- $breakpoint
185
- );
186
-
187
- $container-padding: map.get($container, padding);
188
- @if not $container-padding {
189
- $container-padding: unset;
190
- }
191
-
192
- @include system.add-root-style(
193
- #{variables.$variable-prefix}container-padding,
194
- system.size-unit($container-padding, $size-unit),
195
- $breakpoint
196
- );
197
-
198
- $gutter: map.get(variables.$gutter, $breakpoint);
199
- @if not $gutter {
200
- $gutter: (
201
- columns: 1,
202
- );
203
- }
204
-
205
- $columns: map.get(variables.$columns, $breakpoint);
206
-
207
- $gap: map.get($gutter, gap);
208
- $row-gap: unset;
209
- $column-gap: unset;
210
- @if $gap {
211
- $row-gap: $gap;
212
- $column-gap: $gap;
213
- } @else {
214
- @if map.has-key($gutter, row-gap) {
215
- $row-gap: map.get($gutter, row-gap);
216
- }
217
- @if map.has-key($gutter, column-gap) {
218
- $column-gap: map.get($gutter, column-gap);
219
- }
220
- }
221
-
222
- @include system.add-root-style(
223
- #{variables.$variable-prefix}gutter-columns,
224
- $columns,
225
- $breakpoint
226
- );
227
- @include system.add-root-style(
228
- #{variables.$variable-prefix}gutter-row-gap,
229
- system.size-unit($row-gap, $size-unit),
230
- $breakpoint
231
- );
232
-
233
- @include system.add-root-style(
234
- #{variables.$variable-prefix}gutter-column-gap,
235
- system.size-unit($column-gap, $size-unit),
236
- $breakpoint
237
- );
238
- }
239
-
240
163
  @mixin pdf-flex-col($span) {
241
164
  width: functions.calculate-pdf-col-span-minus-one-gutter($span);
242
165
  }
@@ -0,0 +1,80 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
5
+ @each $breakpoint, $min-width in variables.$breakpoints {
6
+ $size-unit: false;
7
+ @if $breakpoint == print {
8
+ $size-unit: in;
9
+ }
10
+
11
+ @include system.add-root-style(
12
+ #{variables.$variable-prefix}breakpoint-#{$breakpoint},
13
+ system.size-unit($min-width, $size-unit)
14
+ );
15
+
16
+ $container: map.get(variables.$containers, $breakpoint);
17
+
18
+ $container-max-width: map.get($container, max-width);
19
+ @if not $container-max-width {
20
+ $container-max-width: unset;
21
+ }
22
+
23
+ @include system.add-root-style(
24
+ #{variables.$variable-prefix}container-max-width,
25
+ system.size-unit($container-max-width, $size-unit),
26
+ $breakpoint
27
+ );
28
+
29
+ $container-padding: map.get($container, padding);
30
+ @if not $container-padding {
31
+ $container-padding: unset;
32
+ }
33
+
34
+ @include system.add-root-style(
35
+ #{variables.$variable-prefix}container-padding,
36
+ system.size-unit($container-padding, $size-unit),
37
+ $breakpoint
38
+ );
39
+
40
+ $gutter: map.get(variables.$gutter, $breakpoint);
41
+ @if not $gutter {
42
+ $gutter: (
43
+ columns: 1,
44
+ );
45
+ }
46
+
47
+ $columns: map.get(variables.$columns, $breakpoint);
48
+
49
+ $gap: map.get($gutter, gap);
50
+ $row-gap: unset;
51
+ $column-gap: unset;
52
+ @if $gap {
53
+ $row-gap: $gap;
54
+ $column-gap: $gap;
55
+ } @else {
56
+ @if map.has-key($gutter, row-gap) {
57
+ $row-gap: map.get($gutter, row-gap);
58
+ }
59
+ @if map.has-key($gutter, column-gap) {
60
+ $column-gap: map.get($gutter, column-gap);
61
+ }
62
+ }
63
+
64
+ @include system.add-root-style(
65
+ #{variables.$variable-prefix}gutter-columns,
66
+ $columns,
67
+ $breakpoint
68
+ );
69
+ @include system.add-root-style(
70
+ #{variables.$variable-prefix}gutter-row-gap,
71
+ system.size-unit($row-gap, $size-unit),
72
+ $breakpoint
73
+ );
74
+
75
+ @include system.add-root-style(
76
+ #{variables.$variable-prefix}gutter-column-gap,
77
+ system.size-unit($column-gap, $size-unit),
78
+ $breakpoint
79
+ );
80
+ }
@@ -0,0 +1,4 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
@@ -0,0 +1,12 @@
1
+ @use "./colors/root" as *;
2
+ @use "./fonts/root" as *;
3
+ @use "./grid/root" as *;
4
+ @use "./helpers/root" as *;
5
+ @use "./meta/root" as *;
6
+ @use "./spacer/root" as *;
7
+ @use "./typography/root" as *;
8
+ @use "./system";
9
+
10
+ @each $key, $value in system.$root-styles {
11
+ @include system.add-root-style($key, $value);
12
+ }
@@ -0,0 +1,4 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
@@ -1,9 +1,10 @@
1
1
  @use 'variables';
2
2
  @use 'sass:map';
3
+ @use "../system";
3
4
 
4
5
  @function get($spacer) {
5
6
  @if not map.has-key(variables.$spacer, $spacer) {
6
7
  @error "Invalid column-gap "#{$spacer}" specified! Choose one of #{map.keys(variables.$spacer)}";
7
8
  }
8
- @return var(--#{variables.$variable-prefix}spacer-#{$spacer});
9
+ @return system.root-style(#{variables.$variable-prefix}spacer-#{$spacer});
9
10
  }
@@ -72,58 +72,6 @@
72
72
  column-gap: functions.get($spacer);
73
73
  }
74
74
 
75
- @each $spacer, $spacerValue in variables.$spacer {
76
- $varName: #{variables.$variable-prefix}spacer-#{$spacer};
77
- @include system.add-root-style(
78
- $varName,
79
- system.size-unit(map.get($spacerValue, size))
80
- );
81
-
82
- @if not (map.has-key($spacerValue, media) and map.has-key(map.get($spacerValue, media), print)) {
83
- @include system.add-root-style(
84
- $varName,
85
- system.size-unit(map.get($spacerValue, size)),
86
- print
87
- );
88
- }
89
-
90
- @if map.has-key($spacerValue, media) {
91
- @each $breakpoint, $breakpointValue in map.get($spacerValue, media) {
92
- @if $breakpoint == print {
93
- @include system.add-root-style(
94
- $varName,
95
- system.size-unit(map.get($breakpointValue, size)),
96
- print
97
- );
98
- } @else if $breakpoint == up {
99
- @each $upBreakpoint, $upBreakpointValue in $breakpointValue {
100
- @include system.add-root-style(
101
- $varName,
102
- system.size-unit($upBreakpointValue),
103
- $upBreakpoint,
104
- up
105
- );
106
- }
107
- } @else if $breakpoint == down {
108
- @each $downBreakpoint, $downBreakpointValue in $breakpointValue {
109
- @include system.add-root-style(
110
- $varName,
111
- system.size-unit($downBreakpointValue),
112
- $downBreakpoint,
113
- down
114
- );
115
- }
116
- } @else {
117
- @include system.add-root-style(
118
- $varName,
119
- system.size-unit($breakpointValue),
120
- $breakpoint
121
- );
122
- }
123
- }
124
- }
125
- }
126
-
127
75
  @mixin core-styles {
128
76
  @at-root {
129
77
  @each $spacer, $spacerValue in variables.$spacer {
@@ -0,0 +1,55 @@
1
+ @use "variables";
2
+ @use "../system";
3
+ @use "sass:map";
4
+
5
+ @each $spacer, $spacerValue in variables.$spacer {
6
+ $varName: #{variables.$variable-prefix}spacer-#{$spacer};
7
+ @include system.add-root-style(
8
+ $varName,
9
+ system.size-unit(map.get($spacerValue, size))
10
+ );
11
+
12
+ @if not (map.has-key($spacerValue, media) and map.has-key(map.get($spacerValue, media), print)) {
13
+ @include system.add-root-style(
14
+ $varName,
15
+ system.size-unit(map.get($spacerValue, size)),
16
+ print
17
+ );
18
+ }
19
+
20
+ @if map.has-key($spacerValue, media) {
21
+ @each $breakpoint, $breakpointValue in map.get($spacerValue, media) {
22
+ @if $breakpoint == print {
23
+ @include system.add-root-style(
24
+ $varName,
25
+ system.size-unit(map.get($breakpointValue, size)),
26
+ print
27
+ );
28
+ } @else if $breakpoint == up {
29
+ @each $upBreakpoint, $upBreakpointValue in $breakpointValue {
30
+ @include system.add-root-style(
31
+ $varName,
32
+ system.size-unit($upBreakpointValue),
33
+ $upBreakpoint,
34
+ up
35
+ );
36
+ }
37
+ } @else if $breakpoint == down {
38
+ @each $downBreakpoint, $downBreakpointValue in $breakpointValue {
39
+ @include system.add-root-style(
40
+ $varName,
41
+ system.size-unit($downBreakpointValue),
42
+ $downBreakpoint,
43
+ down
44
+ );
45
+ }
46
+ } @else {
47
+ @include system.add-root-style(
48
+ $varName,
49
+ system.size-unit($breakpointValue),
50
+ $breakpoint
51
+ );
52
+ }
53
+ }
54
+ }
55
+ }
@@ -1,4 +1,5 @@
1
1
  @use 'variables';
2
+ @use "mixins";
2
3
  @use 'sass:map';
3
4
  @use 'sass:list';
4
5
  @use 'sass:math';
@@ -44,6 +45,11 @@
44
45
  @return $fallback;
45
46
  }
46
47
 
48
+ @function unit-to-number($unit) {
49
+ // $unit z.B. "em" oder "pt"
50
+ @return 1#{$unit}; // ergibt 1em / 1pt als Number mit Einheit
51
+ }
52
+
47
53
  @function size-unit($size, $size-unit: false) {
48
54
  @if not $size-unit {
49
55
  $size-unit: variables.$size-unit;
@@ -51,11 +57,21 @@
51
57
  @if meta.type-of($size) == 'number' and math.is-unitless($size) and $size != 0
52
58
  {
53
59
  @if $size-unit == 'rem' {
54
- @return math.div($size, variables.$root-size) + rem;
60
+ @return math.div($size, variables.$root-size) * 1rem;
55
61
  } @else if $size-unit == 'in' {
56
- @return math.div($size, variables.$dpi) + in;
62
+ @return math.div($size, variables.$dpi) * 1in;
57
63
  } @else if $size-unit == 'pt' {
58
- @return ($size * variables.$point) + pt;
64
+ @return ($size * variables.$point) * 1pt;
65
+ } @else if $size-unit == 'px' {
66
+ @return $size * 1px;
67
+ } @else if $size-unit == 'cm' {
68
+ @return math.div($size, variables.$dpi) * 2.54cm;
69
+ } @else if $size-unit == 'mm' {
70
+ @return math.div($size, variables.$dpi) * 25.4mm;
71
+ } @else if $size-unit == 'pc' {
72
+ @return math.div($size, variables.$dpi) * 6pc;
73
+ } @else if $size-unit == 'Q' {
74
+ @return math.div($size, variables.$dpi) * 101.6Q;
59
75
  } @else {
60
76
  @return $size + $size-unit;
61
77
  }
@@ -64,7 +80,7 @@
64
80
  } @else if $size == null {
65
81
  @return unset;
66
82
  } @else {
67
- @return #{$size};
83
+ @return $size;
68
84
  }
69
85
  }
70
86
 
@@ -72,6 +88,55 @@
72
88
  @if meta.type-of($number) == 'number' and not math.is-unitless($number) {
73
89
  @return math.div($number, ($number * 0 + 1));
74
90
  }
75
-
76
91
  @return $number;
77
92
  }
93
+
94
+ @function number-to-unit($number, $unit) {
95
+ @if $unit == 'rem' {
96
+ @return $number * 1rem;
97
+ } @else if $unit == 'in' {
98
+ @return $number * 1in;
99
+ } @else if $unit == 'pt' {
100
+ @return $number * 1pt;
101
+ } @else if $unit == 'px' {
102
+ @return $number * 1px;
103
+ } @else if $unit == 'cm' {
104
+ @return $number * 1cm;
105
+ } @else if $unit == 'mm' {
106
+ @return $number * 1mm;
107
+ } @else if $unit == 'pc' {
108
+ @return $number * 1pc;
109
+ } @else if $unit == 'Q' {
110
+ @return $number * 1Q;
111
+ } @else {
112
+ @return $number + $unit;
113
+ }
114
+ }
115
+
116
+ @function round-if-unit($value) {
117
+ @if meta.type-of($value) == 'number' and not math.is-unitless($value) {
118
+ $unit: math.unit($value);
119
+ @return number-to-unit(math.round(strip-unit($value)), $unit);
120
+ }
121
+ @return $value;
122
+ }
123
+
124
+ @function root-style($varname, $default: unset) {
125
+ @if variables.$build == 'word' {
126
+ $res: map.get(mixins.$stylesOnly, print, $varname);
127
+ @if $res == null {
128
+ $res: map.get(mixins.$stylesUp, print, $varname);
129
+ }
130
+ @if $res == null {
131
+ $res: map.get(mixins.$styles, $varname);
132
+ }
133
+ @if meta.type-of($res) == 'number' and math.unit($res) == 'pt' {
134
+ $res: round-if-unit($res);
135
+ }
136
+ @if $res == null {
137
+ $res: $default;
138
+ }
139
+ @return $res;
140
+ }
141
+ @return var(--#{$varname}, #{$default});
142
+ }
@@ -3,9 +3,6 @@
3
3
  @use '../grid';
4
4
 
5
5
  @mixin core-styles {
6
- @each $key, $value in variables.$root-styles {
7
- @include add-root-style($key, $value);
8
- }
9
6
  @at-root {
10
7
  :root {
11
8
  @each $key, $value in mixins.$styles {
@@ -1,4 +1,5 @@
1
1
  $environment: development !default;
2
+ $build: development !default;
2
3
 
3
4
  $variable-prefix: 'srl-' !default;
4
5
  $class-prefix: 'srl-' !default;
@@ -6,51 +6,51 @@
6
6
  @if not map.has-key(variables.$typography, $typo) {
7
7
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
8
8
  }
9
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-font-family, unset);
9
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-family, unset);
10
10
  }
11
11
 
12
12
  @function get-font-size($typo) {
13
13
  @if not map.has-key(variables.$typography, $typo) {
14
14
  @error "Invalid typo for typo specified! Choose one of #{map.keys(variables.$typography)}";
15
15
  }
16
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-font-size, unset);
16
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-size, unset);
17
17
  }
18
18
 
19
19
  @function get-line-height($typo) {
20
20
  @if not map.has-key(variables.$typography, $typo) {
21
21
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
22
22
  }
23
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-line-height, unset);
23
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-line-height, unset);
24
24
  }
25
25
 
26
26
  @function get-font-style($typo) {
27
27
  @if not map.has-key(variables.$typography, $typo) {
28
28
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
29
29
  }
30
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-font-style, normal);
30
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-style, normal);
31
31
  }
32
32
 
33
33
  @function get-font-weight($typo) {
34
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-font-weight, unset);
34
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-weight, unset);
35
35
  }
36
36
 
37
37
  @function get-font-color($typo) {
38
38
  @if not map.has-key(variables.$typography, $typo) {
39
39
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
40
40
  }
41
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-font-color, unset);
41
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-font-color, unset);
42
42
  }
43
43
 
44
44
  @function get-letter-spacing($typo) {
45
- @return var(
46
- --#{variables.$variable-prefix}typo-#{$typo}-letter-spacing,
45
+ @return system.root-style(
46
+ #{variables.$variable-prefix}typo-#{$typo}-letter-spacing,
47
47
  unset
48
48
  );
49
49
  }
50
50
 
51
51
  @function get-text-transform($typo) {
52
- @return var(
53
- --#{variables.$variable-prefix}typo-#{$typo}-text-transform,
52
+ @return system.root-style(
53
+ #{variables.$variable-prefix}typo-#{$typo}-text-transform,
54
54
  unset
55
55
  );
56
56
  }
@@ -59,12 +59,12 @@
59
59
  @if not map.has-key(variables.$typography, $typo) {
60
60
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
61
61
  }
62
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-margin-top, 0);
62
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-margin-top, 0);
63
63
  }
64
64
 
65
65
  @function get-margin-bottom($typo) {
66
66
  @if not map.has-key(variables.$typography, $typo) {
67
67
  @error "Invalid typo for typography specified! Choose one of #{map.keys(variables.$typography)}";
68
68
  }
69
- @return var(--#{variables.$variable-prefix}typo-#{$typo}-margin-bottom, 0);
69
+ @return system.root-style(#{variables.$variable-prefix}typo-#{$typo}-margin-bottom, 0);
70
70
  }