@equinor/eds-tokens 2.3.0-beta.2 → 2.3.0-beta.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/README.md +57 -6
- package/build/css/typography/font-family-ui.css +1 -1
- package/build/css/typography.css +25 -10
- package/build/css/variables.css +317 -101
- package/build/css/variables.min.css +1 -1
- package/build/ts/typography/font-family-header.ts +170 -80
- package/build/ts/typography/font-family-ui.ts +170 -80
- package/instructions/typography.md +59 -43
- package/package.json +9 -4
- package/build/ts/typography/font-size-2xl.ts +0 -21
- package/build/ts/typography/font-size-3xl.ts +0 -21
- package/build/ts/typography/font-size-4xl.ts +0 -21
- package/build/ts/typography/font-size-5xl.ts +0 -21
- package/build/ts/typography/font-size-6xl.ts +0 -21
- package/build/ts/typography/font-size-lg.ts +0 -21
- package/build/ts/typography/font-size-md.ts +0 -21
- package/build/ts/typography/font-size-sm.ts +0 -21
- package/build/ts/typography/font-size-xl.ts +0 -21
- package/build/ts/typography/font-size-xs.ts +0 -21
- package/build/ts/typography/font-weight-bolder.ts +0 -9
- package/build/ts/typography/font-weight-lighter.ts +0 -9
- package/build/ts/typography/font-weight-normal.ts +0 -9
- package/build/ts/typography/line-height-default.ts +0 -9
- package/build/ts/typography/line-height-squished.ts +0 -9
- package/build/ts/typography/tracking-loose.ts +0 -9
- package/build/ts/typography/tracking-normal.ts +0 -9
- package/build/ts/typography/tracking-tight.ts +0 -9
- package/build/ts/typography/tracking-wide.ts +0 -9
|
@@ -10,113 +10,203 @@ export const typography = {
|
|
|
10
10
|
fontFamilySize: {
|
|
11
11
|
xs: {
|
|
12
12
|
fontSize: 12,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
tracking: {
|
|
14
|
+
tight: -1.149999976158142,
|
|
15
|
+
normal: 0,
|
|
16
|
+
wide: 1.149999976158142,
|
|
17
|
+
},
|
|
18
|
+
fontWeight: {
|
|
19
|
+
lighter: 300,
|
|
20
|
+
normal: 400,
|
|
21
|
+
bolder: 500,
|
|
22
|
+
},
|
|
23
|
+
lineHeight: {
|
|
24
|
+
default: 16,
|
|
25
|
+
squished: 12,
|
|
26
|
+
},
|
|
27
|
+
iconSize: 16,
|
|
28
|
+
gapHorizontal: 6.5,
|
|
29
|
+
gapVertical: 6.5,
|
|
21
30
|
},
|
|
22
31
|
sm: {
|
|
23
32
|
fontSize: 14,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
tracking: {
|
|
34
|
+
tight: -1.3200000524520874,
|
|
35
|
+
normal: 0,
|
|
36
|
+
wide: 1.3200000524520874,
|
|
37
|
+
},
|
|
38
|
+
fontWeight: {
|
|
39
|
+
lighter: 300,
|
|
40
|
+
normal: 400,
|
|
41
|
+
bolder: 500,
|
|
42
|
+
},
|
|
43
|
+
lineHeight: {
|
|
44
|
+
default: 16,
|
|
45
|
+
squished: 12,
|
|
46
|
+
},
|
|
47
|
+
iconSize: 18,
|
|
48
|
+
gapHorizontal: 7.5,
|
|
49
|
+
gapVertical: 7.5,
|
|
32
50
|
},
|
|
33
51
|
md: {
|
|
34
52
|
fontSize: 16,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
53
|
+
tracking: {
|
|
54
|
+
tight: -1.5399999618530273,
|
|
55
|
+
normal: 0,
|
|
56
|
+
wide: 1.5399999618530273,
|
|
57
|
+
},
|
|
58
|
+
fontWeight: {
|
|
59
|
+
lighter: 300,
|
|
60
|
+
normal: 400,
|
|
61
|
+
bolder: 500,
|
|
62
|
+
},
|
|
63
|
+
lineHeight: {
|
|
64
|
+
default: 20,
|
|
65
|
+
squished: 16,
|
|
66
|
+
},
|
|
67
|
+
iconSize: 20,
|
|
68
|
+
gapHorizontal: 8.5,
|
|
69
|
+
gapVertical: 8.5,
|
|
43
70
|
},
|
|
44
71
|
lg: {
|
|
45
72
|
fontSize: 18,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
tracking: {
|
|
74
|
+
tight: -1.7599999904632568,
|
|
75
|
+
normal: 0,
|
|
76
|
+
wide: 1.7599999904632568,
|
|
77
|
+
},
|
|
78
|
+
fontWeight: {
|
|
79
|
+
lighter: 300,
|
|
80
|
+
normal: 400,
|
|
81
|
+
bolder: 500,
|
|
82
|
+
},
|
|
83
|
+
lineHeight: {
|
|
84
|
+
default: 24,
|
|
85
|
+
squished: 20,
|
|
86
|
+
},
|
|
87
|
+
iconSize: 24,
|
|
88
|
+
gapHorizontal: 10,
|
|
89
|
+
gapVertical: 10,
|
|
54
90
|
},
|
|
55
91
|
xl: {
|
|
56
92
|
fontSize: 21,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
93
|
+
tracking: {
|
|
94
|
+
tight: -1.7599999904632568,
|
|
95
|
+
normal: 0,
|
|
96
|
+
wide: 2.0350000858306885,
|
|
97
|
+
},
|
|
98
|
+
fontWeight: {
|
|
99
|
+
lighter: 300,
|
|
100
|
+
normal: 400,
|
|
101
|
+
bolder: 500,
|
|
102
|
+
},
|
|
103
|
+
lineHeight: {
|
|
104
|
+
default: 24,
|
|
105
|
+
squished: 20,
|
|
106
|
+
},
|
|
107
|
+
iconSize: 28,
|
|
108
|
+
gapHorizontal: 11.5,
|
|
109
|
+
gapVertical: 11.5,
|
|
65
110
|
},
|
|
66
111
|
twoXl: {
|
|
67
112
|
fontSize: 24,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
113
|
+
tracking: {
|
|
114
|
+
tight: -2.309999942779541,
|
|
115
|
+
normal: 0,
|
|
116
|
+
wide: 2.309999942779541,
|
|
117
|
+
},
|
|
118
|
+
fontWeight: {
|
|
119
|
+
lighter: 300,
|
|
120
|
+
normal: 400,
|
|
121
|
+
bolder: 500,
|
|
122
|
+
},
|
|
123
|
+
lineHeight: {
|
|
124
|
+
default: 28,
|
|
125
|
+
squished: 24,
|
|
126
|
+
},
|
|
127
|
+
iconSize: 32,
|
|
128
|
+
gapHorizontal: 13,
|
|
129
|
+
gapVertical: 13,
|
|
76
130
|
},
|
|
77
131
|
threeXl: {
|
|
78
132
|
fontSize: 27.5,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
133
|
+
tracking: {
|
|
134
|
+
tight: -2.694999933242798,
|
|
135
|
+
normal: 0,
|
|
136
|
+
wide: 2.694999933242798,
|
|
137
|
+
},
|
|
138
|
+
fontWeight: {
|
|
139
|
+
lighter: 300,
|
|
140
|
+
normal: 400,
|
|
141
|
+
bolder: 500,
|
|
142
|
+
},
|
|
143
|
+
lineHeight: {
|
|
144
|
+
default: 32,
|
|
145
|
+
squished: 32,
|
|
146
|
+
},
|
|
147
|
+
iconSize: 37,
|
|
148
|
+
gapHorizontal: 15,
|
|
149
|
+
gapVertical: 15,
|
|
87
150
|
},
|
|
88
151
|
fourXl: {
|
|
89
152
|
fontSize: 31.5,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
153
|
+
tracking: {
|
|
154
|
+
tight: -3.0799999237060547,
|
|
155
|
+
normal: 0,
|
|
156
|
+
wide: 3.0799999237060547,
|
|
157
|
+
},
|
|
158
|
+
fontWeight: {
|
|
159
|
+
lighter: 300,
|
|
160
|
+
normal: 400,
|
|
161
|
+
bolder: 500,
|
|
162
|
+
},
|
|
163
|
+
lineHeight: {
|
|
164
|
+
default: 32,
|
|
165
|
+
squished: 28,
|
|
166
|
+
},
|
|
167
|
+
iconSize: 42,
|
|
168
|
+
gapHorizontal: 17.5,
|
|
169
|
+
gapVertical: 17.5,
|
|
98
170
|
},
|
|
99
171
|
fiveXl: {
|
|
100
172
|
fontSize: 36.5,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
173
|
+
tracking: {
|
|
174
|
+
tight: -3.5199999809265137,
|
|
175
|
+
normal: 0,
|
|
176
|
+
wide: 3.5199999809265137,
|
|
177
|
+
},
|
|
178
|
+
fontWeight: {
|
|
179
|
+
lighter: 300,
|
|
180
|
+
normal: 400,
|
|
181
|
+
bolder: 500,
|
|
182
|
+
},
|
|
183
|
+
lineHeight: {
|
|
184
|
+
default: 36,
|
|
185
|
+
squished: 32,
|
|
186
|
+
},
|
|
187
|
+
iconSize: 48,
|
|
188
|
+
gapHorizontal: 20,
|
|
189
|
+
gapVertical: 20,
|
|
109
190
|
},
|
|
110
191
|
sixXl: {
|
|
111
192
|
fontSize: 42,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
193
|
+
tracking: {
|
|
194
|
+
tight: -4.070000171661377,
|
|
195
|
+
normal: 0,
|
|
196
|
+
wide: 4.070000171661377,
|
|
197
|
+
},
|
|
198
|
+
fontWeight: {
|
|
199
|
+
lighter: 300,
|
|
200
|
+
normal: 400,
|
|
201
|
+
bolder: 500,
|
|
202
|
+
},
|
|
203
|
+
lineHeight: {
|
|
204
|
+
default: 40,
|
|
205
|
+
squished: 36,
|
|
206
|
+
},
|
|
207
|
+
iconSize: 56,
|
|
208
|
+
gapHorizontal: 23,
|
|
209
|
+
gapVertical: 23,
|
|
120
210
|
},
|
|
121
211
|
},
|
|
122
212
|
} as const
|
|
@@ -10,113 +10,203 @@ export const typography = {
|
|
|
10
10
|
fontFamilySize: {
|
|
11
11
|
xs: {
|
|
12
12
|
fontSize: 10.5,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
tracking: {
|
|
14
|
+
tight: -1.149999976158142,
|
|
15
|
+
normal: 0,
|
|
16
|
+
wide: 1.149999976158142,
|
|
17
|
+
},
|
|
18
|
+
fontWeight: {
|
|
19
|
+
lighter: 300,
|
|
20
|
+
normal: 400,
|
|
21
|
+
bolder: 500,
|
|
22
|
+
},
|
|
23
|
+
lineHeight: {
|
|
24
|
+
default: 16,
|
|
25
|
+
squished: 12,
|
|
26
|
+
},
|
|
27
|
+
iconSize: 16,
|
|
28
|
+
gapHorizontal: 6.5,
|
|
29
|
+
gapVertical: 6.5,
|
|
21
30
|
},
|
|
22
31
|
sm: {
|
|
23
32
|
fontSize: 12,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
tracking: {
|
|
34
|
+
tight: -1.3200000524520874,
|
|
35
|
+
normal: 0,
|
|
36
|
+
wide: 1.3200000524520874,
|
|
37
|
+
},
|
|
38
|
+
fontWeight: {
|
|
39
|
+
lighter: 300,
|
|
40
|
+
normal: 400,
|
|
41
|
+
bolder: 500,
|
|
42
|
+
},
|
|
43
|
+
lineHeight: {
|
|
44
|
+
default: 16,
|
|
45
|
+
squished: 12,
|
|
46
|
+
},
|
|
47
|
+
iconSize: 18,
|
|
48
|
+
gapHorizontal: 7.5,
|
|
49
|
+
gapVertical: 7.5,
|
|
32
50
|
},
|
|
33
51
|
md: {
|
|
34
52
|
fontSize: 14,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
53
|
+
tracking: {
|
|
54
|
+
tight: -1.5399999618530273,
|
|
55
|
+
normal: 0,
|
|
56
|
+
wide: 1.5399999618530273,
|
|
57
|
+
},
|
|
58
|
+
fontWeight: {
|
|
59
|
+
lighter: 300,
|
|
60
|
+
normal: 400,
|
|
61
|
+
bolder: 500,
|
|
62
|
+
},
|
|
63
|
+
lineHeight: {
|
|
64
|
+
default: 20,
|
|
65
|
+
squished: 16,
|
|
66
|
+
},
|
|
67
|
+
iconSize: 20,
|
|
68
|
+
gapHorizontal: 8.5,
|
|
69
|
+
gapVertical: 8.5,
|
|
43
70
|
},
|
|
44
71
|
lg: {
|
|
45
72
|
fontSize: 16,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
73
|
+
tracking: {
|
|
74
|
+
tight: -1.7599999904632568,
|
|
75
|
+
normal: 0,
|
|
76
|
+
wide: 1.7599999904632568,
|
|
77
|
+
},
|
|
78
|
+
fontWeight: {
|
|
79
|
+
lighter: 300,
|
|
80
|
+
normal: 400,
|
|
81
|
+
bolder: 500,
|
|
82
|
+
},
|
|
83
|
+
lineHeight: {
|
|
84
|
+
default: 24,
|
|
85
|
+
squished: 20,
|
|
86
|
+
},
|
|
87
|
+
iconSize: 24,
|
|
88
|
+
gapHorizontal: 10,
|
|
89
|
+
gapVertical: 10,
|
|
54
90
|
},
|
|
55
91
|
xl: {
|
|
56
92
|
fontSize: 18.5,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
93
|
+
tracking: {
|
|
94
|
+
tight: -1.7599999904632568,
|
|
95
|
+
normal: 0,
|
|
96
|
+
wide: 2.0350000858306885,
|
|
97
|
+
},
|
|
98
|
+
fontWeight: {
|
|
99
|
+
lighter: 300,
|
|
100
|
+
normal: 400,
|
|
101
|
+
bolder: 500,
|
|
102
|
+
},
|
|
103
|
+
lineHeight: {
|
|
104
|
+
default: 24,
|
|
105
|
+
squished: 20,
|
|
106
|
+
},
|
|
107
|
+
iconSize: 28,
|
|
108
|
+
gapHorizontal: 11.5,
|
|
109
|
+
gapVertical: 11.5,
|
|
65
110
|
},
|
|
66
111
|
twoXl: {
|
|
67
112
|
fontSize: 21,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
113
|
+
tracking: {
|
|
114
|
+
tight: -2.309999942779541,
|
|
115
|
+
normal: 0,
|
|
116
|
+
wide: 2.309999942779541,
|
|
117
|
+
},
|
|
118
|
+
fontWeight: {
|
|
119
|
+
lighter: 300,
|
|
120
|
+
normal: 400,
|
|
121
|
+
bolder: 500,
|
|
122
|
+
},
|
|
123
|
+
lineHeight: {
|
|
124
|
+
default: 28,
|
|
125
|
+
squished: 24,
|
|
126
|
+
},
|
|
127
|
+
iconSize: 32,
|
|
128
|
+
gapHorizontal: 13,
|
|
129
|
+
gapVertical: 13,
|
|
76
130
|
},
|
|
77
131
|
threeXl: {
|
|
78
132
|
fontSize: 24.5,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
133
|
+
tracking: {
|
|
134
|
+
tight: -2.694999933242798,
|
|
135
|
+
normal: 0,
|
|
136
|
+
wide: 2.694999933242798,
|
|
137
|
+
},
|
|
138
|
+
fontWeight: {
|
|
139
|
+
lighter: 300,
|
|
140
|
+
normal: 400,
|
|
141
|
+
bolder: 500,
|
|
142
|
+
},
|
|
143
|
+
lineHeight: {
|
|
144
|
+
default: 32,
|
|
145
|
+
squished: 28,
|
|
146
|
+
},
|
|
147
|
+
iconSize: 37,
|
|
148
|
+
gapHorizontal: 15,
|
|
149
|
+
gapVertical: 15,
|
|
87
150
|
},
|
|
88
151
|
fourXl: {
|
|
89
152
|
fontSize: 28,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
153
|
+
tracking: {
|
|
154
|
+
tight: -3.0799999237060547,
|
|
155
|
+
normal: 0,
|
|
156
|
+
wide: 3.0799999237060547,
|
|
157
|
+
},
|
|
158
|
+
fontWeight: {
|
|
159
|
+
lighter: 300,
|
|
160
|
+
normal: 400,
|
|
161
|
+
bolder: 500,
|
|
162
|
+
},
|
|
163
|
+
lineHeight: {
|
|
164
|
+
default: 32,
|
|
165
|
+
squished: 28,
|
|
166
|
+
},
|
|
167
|
+
iconSize: 42,
|
|
168
|
+
gapHorizontal: 17.5,
|
|
169
|
+
gapVertical: 17.5,
|
|
98
170
|
},
|
|
99
171
|
fiveXl: {
|
|
100
172
|
fontSize: 32,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
173
|
+
tracking: {
|
|
174
|
+
tight: -3.5199999809265137,
|
|
175
|
+
normal: 0,
|
|
176
|
+
wide: 3.5199999809265137,
|
|
177
|
+
},
|
|
178
|
+
fontWeight: {
|
|
179
|
+
lighter: 300,
|
|
180
|
+
normal: 400,
|
|
181
|
+
bolder: 500,
|
|
182
|
+
},
|
|
183
|
+
lineHeight: {
|
|
184
|
+
default: 36,
|
|
185
|
+
squished: 32,
|
|
186
|
+
},
|
|
187
|
+
iconSize: 48,
|
|
188
|
+
gapHorizontal: 20,
|
|
189
|
+
gapVertical: 20,
|
|
109
190
|
},
|
|
110
191
|
sixXl: {
|
|
111
192
|
fontSize: 37,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
193
|
+
tracking: {
|
|
194
|
+
tight: -4.070000171661377,
|
|
195
|
+
normal: 0,
|
|
196
|
+
wide: 4.070000171661377,
|
|
197
|
+
},
|
|
198
|
+
fontWeight: {
|
|
199
|
+
lighter: 300,
|
|
200
|
+
normal: 400,
|
|
201
|
+
bolder: 500,
|
|
202
|
+
},
|
|
203
|
+
lineHeight: {
|
|
204
|
+
default: 40,
|
|
205
|
+
squished: 36,
|
|
206
|
+
},
|
|
207
|
+
iconSize: 56,
|
|
208
|
+
gapHorizontal: 23,
|
|
209
|
+
gapVertical: 23,
|
|
120
210
|
},
|
|
121
211
|
},
|
|
122
212
|
} as const
|