@helsenorge/designsystem-react 13.0.0-workspaces-beta.1 → 13.0.0-workspaces-beta.2
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/lib/CHANGELOG.md +2 -0
- package/lib/components/Toast/styles.module.scss.d.ts +15 -0
- package/package.json +16 -4
- package/scss/_body.scss +11 -0
- package/scss/_breakpoints.scss +29 -0
- package/scss/_figma-tokens.scss +68 -0
- package/scss/_font-mixins.scss +262 -0
- package/scss/_font-settings.scss +8 -0
- package/scss/_fonts.scss +155 -0
- package/scss/_grid.scss +6 -0
- package/scss/_icon.scss +8 -0
- package/scss/_input.scss +139 -0
- package/scss/_palette.scss +146 -0
- package/scss/_print.scss +219 -0
- package/scss/_reset.scss +13 -0
- package/scss/_screen-reader.scss +63 -0
- package/scss/_spacers.scss +42 -0
- package/scss/bootstrap/LICENSE +22 -0
- package/scss/bootstrap/scss/_functions.scss +210 -0
- package/scss/bootstrap/scss/_grid.scss +73 -0
- package/scss/bootstrap/scss/_variables.scss +990 -0
- package/scss/bootstrap/scss/bootstrap-grid.scss +30 -0
- package/scss/bootstrap/scss/mixins/_breakpoints.scss +131 -0
- package/scss/bootstrap/scss/mixins/_deprecate.scss +11 -0
- package/scss/bootstrap/scss/mixins/_grid-framework.scss +89 -0
- package/scss/bootstrap/scss/mixins/_grid.scss +76 -0
- package/scss/bootstrap/scss/utilities/_display.scss +30 -0
- package/scss/bootstrap/scss/utilities/_flex.scss +120 -0
- package/scss/bootstrap/scss/utilities/_spacing.scss +80 -0
- package/scss/bootstrap/scss/vendor/_rfs.scss +233 -0
- package/scss/helsenorge.scss +10 -0
- package/scss/layout.module.scss +14 -0
- package/scss/layout.module.scss.d.ts +9 -0
- package/scss/supernova/index.css +4 -0
- package/scss/supernova/styles/colors.css +258 -0
- package/scss/supernova/styles/spacers.css +24 -0
- package/scss/supernova/styles/typography.css +110 -0
- package/scss/typography.module.scss +182 -0
- package/scss/typography.module.scss.d.ts +38 -0
- package/scss/typography.stories.tsx +203 -0
package/lib/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Styles = {
|
|
2
|
+
toast: string;
|
|
3
|
+
toast__description: string;
|
|
4
|
+
toast__icon: string;
|
|
5
|
+
'toast__icon--check': string;
|
|
6
|
+
'toast__icon--close': string;
|
|
7
|
+
'toast__text-container': string;
|
|
8
|
+
toast__title: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export type ClassNames = keyof Styles;
|
|
12
|
+
|
|
13
|
+
declare const styles: Styles;
|
|
14
|
+
|
|
15
|
+
export default styles;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@helsenorge/designsystem-react",
|
|
3
3
|
"sideEffects": false,
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "13.0.0-workspaces-beta.
|
|
5
|
+
"version": "13.0.0-workspaces-beta.2",
|
|
6
6
|
"description": "The official design system for Helsenorge built with React.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
"types": "./lib/components/Illustrations/*.d.ts",
|
|
39
39
|
"import": "./lib/components/Illustrations/*.js"
|
|
40
40
|
},
|
|
41
|
+
"./components/*/*": {
|
|
42
|
+
"types": "./lib/components/*/*.d.ts",
|
|
43
|
+
"import": "./lib/components/*/index.js"
|
|
44
|
+
},
|
|
41
45
|
"./components/*": {
|
|
42
46
|
"types": "./lib/components/*/index.d.ts",
|
|
43
47
|
"import": "./lib/components/*/index.js"
|
|
@@ -58,14 +62,22 @@
|
|
|
58
62
|
"types": "./lib/utils/*.d.ts",
|
|
59
63
|
"import": "./lib/utils/*.js"
|
|
60
64
|
},
|
|
61
|
-
"./
|
|
65
|
+
"./__mocks__/*": {
|
|
66
|
+
"types": "./lib/__mocks__/*.d.ts",
|
|
67
|
+
"import": "./lib/__mocks__/*.js"
|
|
68
|
+
},
|
|
69
|
+
"./scss/*": "./scss/*",
|
|
70
|
+
"./lib/scss/*": "./lib/scss/*",
|
|
62
71
|
"./fonts/*": "./lib/fonts/*"
|
|
63
72
|
},
|
|
64
73
|
"scripts": {
|
|
65
74
|
"start": "storybook dev",
|
|
66
|
-
"prebuild": "npm-run-all clean generate:iconnames generate:illustrationnames generate:cssdefinitions",
|
|
75
|
+
"prebuild": "npm-run-all link-scss clean generate:iconnames generate:illustrationnames generate:cssdefinitions",
|
|
67
76
|
"build": "vite build",
|
|
68
|
-
"postbuild": "
|
|
77
|
+
"postbuild": "npm run link-scss",
|
|
78
|
+
"link-scss": "node __scripts__/link-root-scss.mjs",
|
|
79
|
+
"prepack": "rimraf scss && copyfiles -u 1 'lib/scss/**/*' .",
|
|
80
|
+
"postpack": "npm run link-scss",
|
|
69
81
|
"build-storybook": "storybook build -o dist",
|
|
70
82
|
"clean": "rimraf lib",
|
|
71
83
|
"generate:iconnames": "node __scripts__/generateIconNames.mjs",
|
package/scss/_body.scss
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'spacers' as spacers;
|
|
3
|
+
|
|
4
|
+
$grid-gutter-width: map.get(spacers.$spacers, 5);
|
|
5
|
+
$grid-columns: 12;
|
|
6
|
+
$grid-breakpoints: (
|
|
7
|
+
xxs: 0,
|
|
8
|
+
xs: 360px,
|
|
9
|
+
sm: 564px,
|
|
10
|
+
md: 768px,
|
|
11
|
+
lg: 1088px,
|
|
12
|
+
xl: 1450px,
|
|
13
|
+
);
|
|
14
|
+
$grid-max-breakpoints: (
|
|
15
|
+
xs: map.get($grid-breakpoints, sm) - 0.02,
|
|
16
|
+
sm: map.get($grid-breakpoints, md) - 0.02,
|
|
17
|
+
md: map.get($grid-breakpoints, lg) - 0.02,
|
|
18
|
+
);
|
|
19
|
+
$container-max-widths: (
|
|
20
|
+
sm: 528px,
|
|
21
|
+
md: 612px,
|
|
22
|
+
lg: 1056px,
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
@mixin tiny-screens-media-query {
|
|
26
|
+
@media (width <= 319px), (height <= 308px) {
|
|
27
|
+
@content;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Do not edit directly
|
|
2
|
+
// Generated on Wed, 05 Oct 2022 11:38:01 GMT
|
|
3
|
+
|
|
4
|
+
$palette-white: #fff;
|
|
5
|
+
$palette-black: #000;
|
|
6
|
+
$palette-plum900: #3c1471;
|
|
7
|
+
$palette-plum800: #4c1b8c;
|
|
8
|
+
$palette-plum700: #5b22a6;
|
|
9
|
+
$palette-plum600: #6a2abf;
|
|
10
|
+
$palette-plum500: #7a33d7;
|
|
11
|
+
$palette-plum400: #9153e2;
|
|
12
|
+
$palette-plum300: #a875eb;
|
|
13
|
+
$palette-plum200: #bf98f3;
|
|
14
|
+
$palette-plum100: #d7bdf9;
|
|
15
|
+
$palette-plum50: #efe4fd;
|
|
16
|
+
$palette-neutral900: #2b2c2b;
|
|
17
|
+
$palette-neutral800: #474745;
|
|
18
|
+
$palette-neutral700: #62625f;
|
|
19
|
+
$palette-neutral600: #7d7c79;
|
|
20
|
+
$palette-neutral500: #989693;
|
|
21
|
+
$palette-neutral400: #aaa8a6;
|
|
22
|
+
$palette-neutral300: #bdbab9;
|
|
23
|
+
$palette-neutral200: #d6d4d3;
|
|
24
|
+
$palette-neutral100: #eae7e7;
|
|
25
|
+
$palette-neutral50: #f5f3f3;
|
|
26
|
+
$palette-kiwi900: #078141;
|
|
27
|
+
$palette-kiwi800: #099150;
|
|
28
|
+
$palette-kiwi700: #0ca161;
|
|
29
|
+
$palette-kiwi600: #10b172;
|
|
30
|
+
$palette-kiwi500: #33be84;
|
|
31
|
+
$palette-kiwi400: #56ca96;
|
|
32
|
+
$palette-kiwi300: #79d6aa;
|
|
33
|
+
$palette-kiwi200: #9de2bf;
|
|
34
|
+
$palette-kiwi100: #c2edd6;
|
|
35
|
+
$palette-kiwi50: #e6f8ee;
|
|
36
|
+
$palette-cherry900: #7e1c0e;
|
|
37
|
+
$palette-cherry800: #912112;
|
|
38
|
+
$palette-cherry700: #a31f0e;
|
|
39
|
+
$palette-cherry600: #b62e1c;
|
|
40
|
+
$palette-cherry500: #c83521;
|
|
41
|
+
$palette-cherry400: #d56147;
|
|
42
|
+
$palette-cherry300: #e39376;
|
|
43
|
+
$palette-cherry200: #eec0a5;
|
|
44
|
+
$palette-cherry100: #f7e1d2;
|
|
45
|
+
$palette-cherry50: #fff2ea;
|
|
46
|
+
$palette-blueberry900: #084350;
|
|
47
|
+
$palette-blueberry800: #06596c;
|
|
48
|
+
$palette-blueberry700: #08667c;
|
|
49
|
+
$palette-blueberry600: #126f87;
|
|
50
|
+
$palette-blueberry500: #188097;
|
|
51
|
+
$palette-blueberry400: #58aabb;
|
|
52
|
+
$palette-blueberry300: #7abecc;
|
|
53
|
+
$palette-blueberry200: #afdae3;
|
|
54
|
+
$palette-blueberry100: #cae7ed;
|
|
55
|
+
$palette-blueberry50: #e4f7f9;
|
|
56
|
+
$palette-banana900: #764f00;
|
|
57
|
+
$palette-banana800: #916500;
|
|
58
|
+
$palette-banana700: #ab7c00;
|
|
59
|
+
$palette-banana600: #c59302;
|
|
60
|
+
$palette-banana500: #ddab06;
|
|
61
|
+
$palette-banana400: #ebc840;
|
|
62
|
+
$palette-banana300: #f1d460;
|
|
63
|
+
$palette-banana200: #f5e080;
|
|
64
|
+
$palette-banana100: #f9ea9f;
|
|
65
|
+
$palette-banana50: #fcf2bf;
|
|
66
|
+
$font-main: $palette-white;
|
|
67
|
+
$backgrounds-destructive: $palette-cherry600;
|
|
68
|
+
$backgrounds-main: $palette-blueberry600;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './spacers' as spacers;
|
|
3
|
+
@use './breakpoints' as breakpoints;
|
|
4
|
+
|
|
5
|
+
@mixin title-feature {
|
|
6
|
+
font-size: 2.375rem;
|
|
7
|
+
line-height: 2.875rem;
|
|
8
|
+
font-weight: 600;
|
|
9
|
+
|
|
10
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
11
|
+
font-size: 4rem;
|
|
12
|
+
line-height: 5rem;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin title1 {
|
|
17
|
+
font-size: 2rem;
|
|
18
|
+
line-height: 2.375rem;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
|
|
21
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
22
|
+
font-size: 3rem;
|
|
23
|
+
line-height: 3.625rem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@mixin title2 {
|
|
28
|
+
font-size: 1.625rem;
|
|
29
|
+
line-height: 1.938rem;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
|
|
32
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
33
|
+
font-size: 2rem;
|
|
34
|
+
line-height: 2.375rem;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin title3 {
|
|
39
|
+
font-size: 1.375rem;
|
|
40
|
+
line-height: 1.813rem;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
|
|
43
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
44
|
+
font-size: 1.625rem;
|
|
45
|
+
line-height: 2rem;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin title4 {
|
|
50
|
+
font-size: 1.25rem;
|
|
51
|
+
line-height: 1.625rem;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
|
|
54
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
55
|
+
font-size: 1.375rem;
|
|
56
|
+
line-height: 1.813rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@mixin title5 {
|
|
61
|
+
font-size: 1rem;
|
|
62
|
+
line-height: 1.375rem;
|
|
63
|
+
letter-spacing: 0.03rem;
|
|
64
|
+
font-weight: 600;
|
|
65
|
+
text-transform: uppercase;
|
|
66
|
+
|
|
67
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
68
|
+
font-size: 1.125rem;
|
|
69
|
+
line-height: 1.563rem;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@mixin title6 {
|
|
74
|
+
font-size: 1rem;
|
|
75
|
+
line-height: 1.375rem;
|
|
76
|
+
font-weight: 600;
|
|
77
|
+
|
|
78
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
79
|
+
font-size: 1.125rem;
|
|
80
|
+
line-height: 1.563rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@mixin body {
|
|
85
|
+
font-size: 1.125rem;
|
|
86
|
+
line-height: 1.688rem;
|
|
87
|
+
|
|
88
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
89
|
+
font-size: 1.25rem;
|
|
90
|
+
line-height: 1.875rem;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@mixin preamble {
|
|
95
|
+
font-size: 1.25rem;
|
|
96
|
+
line-height: 1.625rem;
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
|
|
99
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
100
|
+
font-size: 1.5rem;
|
|
101
|
+
line-height: 1.938rem;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@mixin legend {
|
|
106
|
+
font-size: 1.125rem;
|
|
107
|
+
line-height: 1.438rem;
|
|
108
|
+
font-weight: 600;
|
|
109
|
+
|
|
110
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
111
|
+
font-size: 1.5rem;
|
|
112
|
+
line-height: 1.938rem;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@mixin label {
|
|
117
|
+
font-size: 1.125rem;
|
|
118
|
+
line-height: 1.375rem;
|
|
119
|
+
font-weight: 600;
|
|
120
|
+
|
|
121
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
122
|
+
font-size: 1.25rem;
|
|
123
|
+
line-height: 1.625rem;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin label-subdued {
|
|
128
|
+
font-size: 1.125rem;
|
|
129
|
+
line-height: 1.375rem;
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
|
|
132
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
133
|
+
font-size: 1.25rem;
|
|
134
|
+
line-height: 1.625rem;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@mixin sublabel {
|
|
139
|
+
font-size: 1rem;
|
|
140
|
+
line-height: 1.2rem;
|
|
141
|
+
font-weight: 600;
|
|
142
|
+
|
|
143
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
144
|
+
font-size: 1.125rem;
|
|
145
|
+
line-height: 1.463rem;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@mixin sublabel-subdued {
|
|
150
|
+
font-size: 1rem;
|
|
151
|
+
line-height: 1.2rem;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
|
|
154
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
155
|
+
font-size: 1.125rem;
|
|
156
|
+
line-height: 1.463rem;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@mixin compact-data {
|
|
161
|
+
font-size: 1rem;
|
|
162
|
+
line-height: 1.5rem;
|
|
163
|
+
|
|
164
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
165
|
+
font-size: 1.125rem;
|
|
166
|
+
line-height: 1.4375rem;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@mixin table-cell {
|
|
171
|
+
font-size: 1.125rem;
|
|
172
|
+
line-height: 1.4375rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@mixin image-caption {
|
|
176
|
+
font-size: 1rem;
|
|
177
|
+
line-height: 1.5rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
@mixin image-credit {
|
|
181
|
+
font-size: 0.75rem;
|
|
182
|
+
line-height: 1rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@mixin status-timestamp {
|
|
186
|
+
font-size: 1.125rem;
|
|
187
|
+
line-height: 1.25rem;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@mixin input-text {
|
|
191
|
+
font-size: 1.125rem;
|
|
192
|
+
line-height: 1.688rem;
|
|
193
|
+
|
|
194
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
195
|
+
line-height: 1.4375rem;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@mixin input-text-large {
|
|
200
|
+
font-size: 1.125rem;
|
|
201
|
+
line-height: 1.563rem;
|
|
202
|
+
|
|
203
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
204
|
+
font-size: 1.25rem;
|
|
205
|
+
line-height: 1.75rem;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@mixin text-list {
|
|
210
|
+
font-size: 1.125rem;
|
|
211
|
+
line-height: 1.375rem;
|
|
212
|
+
font-weight: 400;
|
|
213
|
+
|
|
214
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
215
|
+
font-size: 1.25rem;
|
|
216
|
+
line-height: 1.625rem;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@mixin definition-list-type {
|
|
221
|
+
font-size: 1.125rem;
|
|
222
|
+
line-height: 1.375rem;
|
|
223
|
+
font-weight: 600;
|
|
224
|
+
|
|
225
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
226
|
+
font-size: 1.25rem;
|
|
227
|
+
line-height: 1.625rem;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@mixin definition-list-data {
|
|
232
|
+
font-size: 1.125rem;
|
|
233
|
+
line-height: 1.375rem;
|
|
234
|
+
font-weight: 400;
|
|
235
|
+
|
|
236
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
237
|
+
font-size: 1.25rem;
|
|
238
|
+
line-height: 1.625rem;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@mixin help-text {
|
|
243
|
+
font-size: 1rem;
|
|
244
|
+
line-height: 1.5rem;
|
|
245
|
+
font-weight: 400;
|
|
246
|
+
|
|
247
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
248
|
+
font-size: 1.125rem;
|
|
249
|
+
line-height: 1.575rem;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
@mixin help-trigger-text {
|
|
254
|
+
font-size: 1rem;
|
|
255
|
+
line-height: 1.2rem;
|
|
256
|
+
font-weight: 600;
|
|
257
|
+
|
|
258
|
+
@media (min-width: map.get(breakpoints.$grid-breakpoints, md)) {
|
|
259
|
+
font-size: 1.125rem;
|
|
260
|
+
line-height: 1.463rem;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$font-size-xs: 1rem; // 16px
|
|
2
|
+
$font-size-sm: 1.125rem; // 18px
|
|
3
|
+
$font-size-md: 1.25rem; // 20px
|
|
4
|
+
$font-size-lg: 1.5rem; // 24px
|
|
5
|
+
$lineheight-size-xs: 1.5rem; // 24px
|
|
6
|
+
$lineheight-size-sm: 1.75rem; // 28px
|
|
7
|
+
$lineheight-size-md: 1.875rem; // 30px
|
|
8
|
+
$lineheight-size-lg: 2rem; // 32px
|
package/scss/_fonts.scss
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* latin */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Source Sans Pro';
|
|
4
|
+
font-style: normal;
|
|
5
|
+
font-weight: 200;
|
|
6
|
+
font-display: swap;
|
|
7
|
+
src:
|
|
8
|
+
local('Source Sans Pro Extra Light'),
|
|
9
|
+
local('SourceSansPro-ExtraLight'),
|
|
10
|
+
url('../fonts/source-sans-pro-200-extralight.woff') format('woff'),
|
|
11
|
+
url('../fonts/source-sans-pro-200-extralight.woff2') format('woff2');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* latin */
|
|
15
|
+
@font-face {
|
|
16
|
+
font-family: 'Source Sans Pro';
|
|
17
|
+
font-style: italic;
|
|
18
|
+
font-weight: 200;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
src:
|
|
21
|
+
local('Source Sans Pro Extra Light Italic'),
|
|
22
|
+
local('SourceSansPro-ExtraLightItalic'),
|
|
23
|
+
url('../fonts/source-sans-pro-200-extralight-italic.woff') format('woff'),
|
|
24
|
+
url('../fonts/source-sans-pro-200-extralight-italic.woff2') format('woff2');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* latin */
|
|
28
|
+
@font-face {
|
|
29
|
+
font-family: 'Source Sans Pro';
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-weight: 300;
|
|
32
|
+
font-display: swap;
|
|
33
|
+
src:
|
|
34
|
+
local('Source Sans Pro Light'),
|
|
35
|
+
local('SourceSansPro-Light'),
|
|
36
|
+
url('../fonts/source-sans-pro-300-light.woff') format('woff'),
|
|
37
|
+
url('../fonts/source-sans-pro-300-light.woff2') format('woff2');
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* latin */
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: 'Source Sans Pro';
|
|
43
|
+
font-style: italic;
|
|
44
|
+
font-weight: 300;
|
|
45
|
+
font-display: swap;
|
|
46
|
+
src:
|
|
47
|
+
local('Source Sans Pro Light Italic'),
|
|
48
|
+
local('SourceSansPro-LightItalic'),
|
|
49
|
+
url('../fonts/source-sans-pro-300-light-italic.woff') format('woff'),
|
|
50
|
+
url('../fonts/source-sans-pro-300-light-italic.woff2') format('woff2');
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* latin */
|
|
54
|
+
@font-face {
|
|
55
|
+
font-family: 'Source Sans Pro';
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-display: swap;
|
|
59
|
+
src:
|
|
60
|
+
local('Source Sans Pro Regular'),
|
|
61
|
+
local('SourceSansPro-Regular'),
|
|
62
|
+
url('../fonts/source-sans-pro-400-regular.woff') format('woff'),
|
|
63
|
+
url('../fonts/source-sans-pro-400-regular.woff2') format('woff2');
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* latin */
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: 'Source Sans Pro';
|
|
69
|
+
font-style: italic;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
font-display: swap;
|
|
72
|
+
src:
|
|
73
|
+
local('Source Sans Pro Italic'),
|
|
74
|
+
local('SourceSansPro-Italic'),
|
|
75
|
+
url('../fonts/source-sans-pro-400-regular-italic.woff') format('woff'),
|
|
76
|
+
url('../fonts/source-sans-pro-400-regular-italic.woff2') format('woff2');
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* latin */
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: 'Source Sans Pro';
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
font-display: swap;
|
|
85
|
+
src:
|
|
86
|
+
local('Source Sans Pro SemiBold'),
|
|
87
|
+
local('SourceSansPro-SemiBold'),
|
|
88
|
+
url('../fonts/source-sans-pro-600-semibold.woff') format('woff'),
|
|
89
|
+
url('../fonts/source-sans-pro-600-semibold.woff2') format('woff2');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* latin */
|
|
93
|
+
@font-face {
|
|
94
|
+
font-family: 'Source Sans Pro';
|
|
95
|
+
font-style: italic;
|
|
96
|
+
font-weight: 600;
|
|
97
|
+
font-display: swap;
|
|
98
|
+
src:
|
|
99
|
+
local('Source Sans Pro SemiBold Italic'),
|
|
100
|
+
local('SourceSansPro-SemiBoldItalic'),
|
|
101
|
+
url('../fonts/source-sans-pro-600-semibold-italic.woff') format('woff'),
|
|
102
|
+
url('../fonts/source-sans-pro-600-semibold-italic.woff2') format('woff2');
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* latin */
|
|
106
|
+
@font-face {
|
|
107
|
+
font-family: 'Source Sans Pro';
|
|
108
|
+
font-style: normal;
|
|
109
|
+
font-weight: 700;
|
|
110
|
+
font-display: swap;
|
|
111
|
+
src:
|
|
112
|
+
local('Source Sans Pro Bold'),
|
|
113
|
+
local('SourceSansPro-Bold'),
|
|
114
|
+
url('../fonts/source-sans-pro-700-bold.woff') format('woff'),
|
|
115
|
+
url('../fonts/source-sans-pro-700-bold.woff2') format('woff2');
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* latin */
|
|
119
|
+
@font-face {
|
|
120
|
+
font-family: 'Source Sans Pro';
|
|
121
|
+
font-style: italic;
|
|
122
|
+
font-weight: 700;
|
|
123
|
+
font-display: swap;
|
|
124
|
+
src:
|
|
125
|
+
local('Source Sans Pro Bold Italic'),
|
|
126
|
+
local('SourceSansPro-BoldItalic'),
|
|
127
|
+
url('../fonts/source-sans-pro-700-bold-italic.woff') format('woff'),
|
|
128
|
+
url('../fonts/source-sans-pro-700-bold-italic.woff2') format('woff2');
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* latin */
|
|
132
|
+
@font-face {
|
|
133
|
+
font-family: 'Source Sans Pro';
|
|
134
|
+
font-style: normal;
|
|
135
|
+
font-weight: 900;
|
|
136
|
+
font-display: swap;
|
|
137
|
+
src:
|
|
138
|
+
local('Source Sans Pro Black'),
|
|
139
|
+
local('SourceSansPro-Black'),
|
|
140
|
+
url('../fonts/source-sans-pro-900-black.woff') format('woff'),
|
|
141
|
+
url('../fonts/source-sans-pro-900-black.woff2') format('woff2');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* latin */
|
|
145
|
+
@font-face {
|
|
146
|
+
font-family: 'Source Sans Pro';
|
|
147
|
+
font-style: italic;
|
|
148
|
+
font-weight: 900;
|
|
149
|
+
font-display: swap;
|
|
150
|
+
src:
|
|
151
|
+
local('Source Sans Pro Black Italic'),
|
|
152
|
+
local('SourceSansPro-BlackItalic'),
|
|
153
|
+
url('../fonts/source-sans-pro-900-black-italic.woff') format('woff'),
|
|
154
|
+
url('../fonts/source-sans-pro-900-black-italic.woff2') format('woff2');
|
|
155
|
+
}
|
package/scss/_grid.scss
ADDED