@matteusan/himig 1.2.1 → 1.2.3
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 +2 -1
- package/ms-utils/_typography-utils.scss +16 -16
- package/package.json +1 -1
package/_index.scss
CHANGED
|
@@ -56,7 +56,6 @@ $vue-mode: $test-mode !default;
|
|
|
56
56
|
$breakpoints: (),
|
|
57
57
|
$extend: (),
|
|
58
58
|
) {
|
|
59
|
-
|
|
60
59
|
$primary: ms-core.prioritize(map.get($theme, 'primary'), $primary);
|
|
61
60
|
$accent: ms-core.prioritize(map.get($theme, 'accent'), $accent);
|
|
62
61
|
$surface: ms-core.prioritize(map.get($theme, 'surface'), $surface);
|
|
@@ -157,6 +156,8 @@ $vue-mode: $test-mode !default;
|
|
|
157
156
|
--ms-shadow-color: rgba(0, 0, 0, 0.25);
|
|
158
157
|
--ms-sprite-size: 32px;
|
|
159
158
|
--ms-transition-time: 0.2s;
|
|
159
|
+
|
|
160
|
+
font-family: ms-core.token-get('family-global');
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
@include ms-core.breakpoint-config(map.merge($_init-breakpoints, $breakpoints));
|
|
@@ -32,38 +32,38 @@ $_presets: (
|
|
|
32
32
|
'supertitle': (
|
|
33
33
|
family: 'supertitle',
|
|
34
34
|
size: 'supertitle',
|
|
35
|
-
weight: '
|
|
36
|
-
line-height: '
|
|
35
|
+
weight: 'supertitle',
|
|
36
|
+
line-height: 'supertitle'
|
|
37
37
|
),
|
|
38
38
|
'title': (
|
|
39
39
|
family: 'title',
|
|
40
40
|
size: 'title',
|
|
41
|
-
weight: '
|
|
42
|
-
line-height: '
|
|
41
|
+
weight: 'title',
|
|
42
|
+
line-height: 'title'
|
|
43
43
|
),
|
|
44
44
|
'subtitle': (
|
|
45
45
|
family: 'subtitle',
|
|
46
46
|
size: 'subtitle',
|
|
47
|
-
weight: '
|
|
48
|
-
line-height: '
|
|
47
|
+
weight: 'subtitle',
|
|
48
|
+
line-height: 'subtitle'
|
|
49
49
|
),
|
|
50
50
|
'body': (
|
|
51
51
|
family: 'body',
|
|
52
52
|
size: 'body',
|
|
53
|
-
weight: '
|
|
54
|
-
line-height: '
|
|
53
|
+
weight: 'body',
|
|
54
|
+
line-height: 'body'
|
|
55
55
|
),
|
|
56
56
|
'mono': (
|
|
57
57
|
family: 'mono',
|
|
58
58
|
size: 'mono',
|
|
59
|
-
weight: '
|
|
60
|
-
line-height: '
|
|
59
|
+
weight: 'mono',
|
|
60
|
+
line-height: 'mono'
|
|
61
61
|
),
|
|
62
62
|
'small': (
|
|
63
63
|
family: 'small',
|
|
64
64
|
size: 'small',
|
|
65
|
-
weight: '
|
|
66
|
-
line-height: '
|
|
65
|
+
weight: 'small',
|
|
66
|
+
line-height: 'small'
|
|
67
67
|
)
|
|
68
68
|
);
|
|
69
69
|
$_sizes: ('xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl');
|
|
@@ -84,8 +84,8 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
84
84
|
.#{$preset} {
|
|
85
85
|
font-family: ms-core.token-get('family-#{map.get($values, 'family')}');
|
|
86
86
|
font-size: ms-core.token-get('size-#{map.get($values, 'size')}');
|
|
87
|
-
font-weight: ms-core.primitive-token-
|
|
88
|
-
line-height: ms-core.primitive-token-
|
|
87
|
+
font-weight: ms-core.token-switch('weight-#{map.get($values, 'weight')}', ms-core.primitive-token-switch('weight.#{map.get($values, 'weight')}', $values));
|
|
88
|
+
line-height: ms-core.token-switch('line-height-#{map.get($values, 'weight')}', ms-core.primitive-token-switch('line-height.#{map.get($values, 'line-height')}', $values));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@each $breakpoint in $_breakpoints {
|
|
@@ -93,8 +93,8 @@ $_line-heights: ('broad', 'normal', 'condensed');
|
|
|
93
93
|
@include ms-core.breakpoint-create($breakpoint) {
|
|
94
94
|
font-family: ms-core.token-get('family-#{map.get($values, 'family')}') !important;
|
|
95
95
|
font-size: ms-core.token-get('size-#{map.get($values, 'size')}') !important;
|
|
96
|
-
font-weight: ms-core.primitive-token-
|
|
97
|
-
line-height: ms-core.primitive-token-
|
|
96
|
+
font-weight: ms-core.token-switch('weight-#{map.get($values, 'weight')}', ms-core.primitive-token-switch('weight.#{map.get($values, 'weight')}', $values));
|
|
97
|
+
line-height: ms-core.token-switch('line-height-#{map.get($values, 'weight')}', ms-core.primitive-token-switch('line-height.#{map.get($values, 'line-height')}', $values));
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
package/package.json
CHANGED