@royaloperahouse/harmonic 0.2.3-g → 0.2.3-i
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/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/utils.d.ts +3 -0
- package/dist/harmonic.cjs.development.css +231 -260
- package/dist/harmonic.cjs.development.js +84 -14
- package/dist/harmonic.cjs.development.js.map +1 -1
- package/dist/harmonic.cjs.production.min.js +1 -1
- package/dist/harmonic.cjs.production.min.js.map +1 -1
- package/dist/harmonic.esm.js +81 -19
- package/dist/harmonic.esm.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IGenericTypographyProps, IHarmonicHeaderProps } from '../../types/typography';
|
|
3
|
-
import './styles.css';
|
|
4
3
|
export declare const DisplayHeader: ({ children, size, em, color, serif, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
5
4
|
export declare const HarmonicHeader: ({ children, size, em, color, serif, hierarchy: Tag, className, }: IHarmonicHeaderProps) => React.JSX.Element;
|
|
6
5
|
export declare const HarmonicSubtitle: ({ children, size, color, className }: IGenericTypographyProps) => React.JSX.Element;
|
|
@@ -1,322 +1,293 @@
|
|
|
1
|
-
/*
|
|
2
|
-
.
|
|
3
|
-
|
|
1
|
+
/* Base classes */
|
|
2
|
+
.typography-module_display__ZHsz9 {
|
|
3
|
+
margin: 0;
|
|
4
|
+
font-family: var(--font-family-sans);
|
|
5
|
+
line-height: 100%;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
|
-
.
|
|
7
|
-
|
|
8
|
+
.typography-module_header__FVsLI {
|
|
9
|
+
margin: 0;
|
|
10
|
+
font-family: var(--font-family-sans);
|
|
11
|
+
font-weight: 500;
|
|
8
12
|
}
|
|
9
13
|
|
|
10
|
-
.
|
|
11
|
-
|
|
14
|
+
.typography-module_subtitle__x3sSn {
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-family: var(--font-family-sans);
|
|
17
|
+
font-weight: 500;
|
|
12
18
|
}
|
|
13
19
|
|
|
14
|
-
.
|
|
15
|
-
|
|
20
|
+
.typography-module_bodycopy__-BY2U {
|
|
21
|
+
margin: 0;
|
|
22
|
+
font-family: var(--font-family-sans);
|
|
23
|
+
font-weight: 400;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
|
-
.
|
|
19
|
-
|
|
26
|
+
.typography-module_overline__y1yCC {
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-family: var(--font-family-sans);
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
text-transform: uppercase;
|
|
20
31
|
}
|
|
21
32
|
|
|
22
|
-
.
|
|
23
|
-
|
|
33
|
+
.typography-module_buttontext__Gp0W- {
|
|
34
|
+
margin: 0;
|
|
35
|
+
font-family: var(--font-family-sans);
|
|
36
|
+
font-weight: 400;
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
.
|
|
27
|
-
|
|
39
|
+
.typography-module_captiontext__zyA-- {
|
|
40
|
+
margin: 0;
|
|
41
|
+
font-family: var(--font-family-sans);
|
|
42
|
+
font-weight: 400;
|
|
28
43
|
}
|
|
29
|
-
/* ~~~ */
|
|
30
44
|
|
|
31
|
-
|
|
32
|
-
.styles_display__VgnTB {
|
|
45
|
+
.typography-module_navigationtext__Qj6Zw {
|
|
33
46
|
margin: 0;
|
|
34
47
|
font-family: var(--font-family-sans);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
&.styles_large__vqVxY {
|
|
38
|
-
font-size: 96px;
|
|
39
|
-
font-weight: 700;
|
|
40
|
-
letter-spacing: -5px;
|
|
41
|
-
}
|
|
48
|
+
font-weight: 500;
|
|
49
|
+
}
|
|
42
50
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
/* Size modifiers */
|
|
52
|
+
.typography-module_display--large__RwPQD {
|
|
53
|
+
font-size: 96px;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
letter-spacing: -5px;
|
|
56
|
+
}
|
|
48
57
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
58
|
+
.typography-module_display--small__XWUSJ {
|
|
59
|
+
font-size: 68px;
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
letter-spacing: -3px;
|
|
62
|
+
}
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
64
|
+
.typography-module_header--large__2vP3p {
|
|
65
|
+
font-size: 44px;
|
|
66
|
+
line-height: 48px;
|
|
67
|
+
letter-spacing: -1.5px;
|
|
68
|
+
}
|
|
61
69
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
.typography-module_header--medium__OgzlB {
|
|
71
|
+
font-size: 34px;
|
|
72
|
+
line-height: 40px;
|
|
73
|
+
letter-spacing: -1px;
|
|
74
|
+
}
|
|
66
75
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.styles_small__e7YDe {
|
|
74
|
-
font-size: 32px;
|
|
75
|
-
letter-spacing: -1.5px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
79
|
-
&.styles_large__vqVxY.styles_em__v4FoO,
|
|
80
|
-
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
81
|
-
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
82
|
-
letter-spacing: -0.5px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
76
|
+
.typography-module_header--small__zLuFf {
|
|
77
|
+
font-size: 26px;
|
|
78
|
+
line-height: 32px;
|
|
79
|
+
letter-spacing: -0.5px;
|
|
85
80
|
}
|
|
86
81
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
82
|
+
.typography-module_subtitle--large__1Ep9J {
|
|
83
|
+
font-size: 24px;
|
|
84
|
+
line-height: 32px;
|
|
85
|
+
letter-spacing: -0.5px;
|
|
86
|
+
}
|
|
92
87
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
88
|
+
.typography-module_subtitle--medium__8FxeU {
|
|
89
|
+
font-size: 20px;
|
|
90
|
+
line-height: 28px;
|
|
91
|
+
letter-spacing: -0.5px;
|
|
92
|
+
}
|
|
98
93
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
94
|
+
.typography-module_subtitle--small__Vt9bZ {
|
|
95
|
+
font-size: 17px;
|
|
96
|
+
line-height: 24px;
|
|
97
|
+
letter-spacing: -0.5px;
|
|
98
|
+
}
|
|
104
99
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
100
|
+
.typography-module_bodycopy--large__BNzf2 {
|
|
101
|
+
font-size: 20px;
|
|
102
|
+
line-height: 28px;
|
|
103
|
+
letter-spacing: -0.5px;
|
|
104
|
+
}
|
|
110
105
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
106
|
+
.typography-module_bodycopy--medium__cwJEu {
|
|
107
|
+
font-size: 17px;
|
|
108
|
+
line-height: 24px;
|
|
109
|
+
letter-spacing: -0.5px;
|
|
110
|
+
}
|
|
116
111
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
112
|
+
.typography-module_bodycopy--small__fTLSM {
|
|
113
|
+
font-size: 15px;
|
|
114
|
+
line-height: 20px;
|
|
115
|
+
letter-spacing: -0.25px;
|
|
116
|
+
}
|
|
122
117
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
.typography-module_overline--large__79WUM {
|
|
119
|
+
font-size: 17px;
|
|
120
|
+
line-height: 24px;
|
|
121
|
+
letter-spacing: 1.7px;
|
|
122
|
+
}
|
|
127
123
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
124
|
+
.typography-module_overline--medium__Y5z3w {
|
|
125
|
+
font-size: 15px;
|
|
126
|
+
line-height: 20px;
|
|
127
|
+
letter-spacing: 1.5px;
|
|
128
|
+
}
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
letter-spacing: -1.5px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&.styles_medium__WQPZj {
|
|
141
|
-
font-size: 24px;
|
|
142
|
-
line-height: 28px;
|
|
143
|
-
letter-spacing: -1px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.styles_small__e7YDe {
|
|
147
|
-
font-size: 20px;
|
|
148
|
-
line-height: 26px;
|
|
149
|
-
letter-spacing: -0.75px;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/* Mobile overrides for serif/italic letter-spacing */
|
|
153
|
-
&.styles_large__vqVxY.styles_serif__b-ZjM,
|
|
154
|
-
&.styles_large__vqVxY.styles_em__v4FoO,
|
|
155
|
-
&.styles_medium__WQPZj.styles_serif__b-ZjM,
|
|
156
|
-
&.styles_medium__WQPZj.styles_em__v4FoO,
|
|
157
|
-
&.styles_small__e7YDe.styles_serif__b-ZjM,
|
|
158
|
-
&.styles_small__e7YDe.styles_em__v4FoO {
|
|
159
|
-
letter-spacing: -0.5px;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
130
|
+
.typography-module_overline--small__MGEG6 {
|
|
131
|
+
font-size: 13px;
|
|
132
|
+
line-height: 16px;
|
|
133
|
+
letter-spacing: 1.3px;
|
|
162
134
|
}
|
|
163
135
|
|
|
164
|
-
/*
|
|
165
|
-
.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
136
|
+
/* Button, Caption, Navigation text */
|
|
137
|
+
.typography-module_buttontext__Gp0W- {
|
|
138
|
+
font-size: 17px;
|
|
139
|
+
line-height: 20px;
|
|
140
|
+
letter-spacing: -0.5px;
|
|
141
|
+
}
|
|
169
142
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
143
|
+
.typography-module_captiontext__zyA-- {
|
|
144
|
+
font-size: 17px;
|
|
145
|
+
line-height: 24px;
|
|
146
|
+
letter-spacing: -0.5px;
|
|
147
|
+
}
|
|
175
148
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
149
|
+
.typography-module_navigationtext__Qj6Zw {
|
|
150
|
+
font-size: 19px;
|
|
151
|
+
line-height: 19px;
|
|
152
|
+
letter-spacing: 0.4px;
|
|
153
|
+
}
|
|
181
154
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
letter-spacing: -0.2px;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
155
|
+
/* Color modifiers */
|
|
156
|
+
.typography-module_display--primary__9sTwU,
|
|
157
|
+
.typography-module_header--primary__KF0PJ,
|
|
158
|
+
.typography-module_subtitle--primary__yL-hS,
|
|
159
|
+
.typography-module_bodycopy--primary__5Uo2D,
|
|
160
|
+
.typography-module_overline--primary__a2NSa,
|
|
161
|
+
.typography-module_buttontext--primary__HnmE3,
|
|
162
|
+
.typography-module_captiontext--primary__mmafI,
|
|
163
|
+
.typography-module_navigationtext--primary__vIsUl {
|
|
164
|
+
color: var(--color-primary);
|
|
195
165
|
}
|
|
196
166
|
|
|
197
|
-
/* Body Copy */
|
|
198
|
-
.styles_bodycopy__uEx9r {
|
|
199
|
-
margin: 0;
|
|
200
|
-
font-family: var(--font-family-sans);
|
|
201
|
-
font-weight: 400;
|
|
202
167
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
168
|
+
.typography-module_display--black__8hmsx,
|
|
169
|
+
.typography-module_header--black__M3I14,
|
|
170
|
+
.typography-module_subtitle--black__IQRSo,
|
|
171
|
+
.typography-module_bodycopy--black__J8BNP,
|
|
172
|
+
.typography-module_overline--black__RUDoj,
|
|
173
|
+
.typography-module_buttontext--black__irjmz,
|
|
174
|
+
.typography-module_captiontext--black__7axhP,
|
|
175
|
+
.typography-module_navigationtext--black__wDz-G {
|
|
176
|
+
color: var(--color-base-black);
|
|
177
|
+
}
|
|
208
178
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
179
|
+
.typography-module_display--white__3QA6W,
|
|
180
|
+
.typography-module_header--white__mm-ex,
|
|
181
|
+
.typography-module_subtitle--white__VzQ3K,
|
|
182
|
+
.typography-module_bodycopy--white__NJ8J8,
|
|
183
|
+
.typography-module_overline--white__cV5QV,
|
|
184
|
+
.typography-module_buttontext--white__rrr8U,
|
|
185
|
+
.typography-module_captiontext--white__OMFwW,
|
|
186
|
+
.typography-module_navigationtext--white__5YDdY {
|
|
187
|
+
color: var(--color-base-white);
|
|
188
|
+
}
|
|
214
189
|
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
190
|
+
.typography-module_display--red__khdLJ,
|
|
191
|
+
.typography-module_header--red__hxuj9,
|
|
192
|
+
.typography-module_subtitle--red__gSK7d,
|
|
193
|
+
.typography-module_bodycopy--red__P5Mau,
|
|
194
|
+
.typography-module_overline--red__OW5dE,
|
|
195
|
+
.typography-module_buttontext--red__mlRi2,
|
|
196
|
+
.typography-module_captiontext--red__jMQIK,
|
|
197
|
+
.typography-module_navigationtext--red__-QADV {
|
|
198
|
+
color: var(--color-primary-red);
|
|
199
|
+
}
|
|
220
200
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
line-height: 20px;
|
|
231
|
-
letter-spacing: -0.2px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
&.styles_small__e7YDe {
|
|
235
|
-
font-size: 11px;
|
|
236
|
-
line-height: 16px;
|
|
237
|
-
letter-spacing: -0.2px;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
201
|
+
.typography-module_display--grey__RsgTf,
|
|
202
|
+
.typography-module_header--grey__rC0vN,
|
|
203
|
+
.typography-module_subtitle--grey__1nkEx,
|
|
204
|
+
.typography-module_bodycopy--grey__SNnaU,
|
|
205
|
+
.typography-module_overline--grey__lGOsK,
|
|
206
|
+
.typography-module_buttontext--grey__1Y4oX,
|
|
207
|
+
.typography-module_captiontext--grey__V0MLc,
|
|
208
|
+
.typography-module_navigationtext--grey__xi3sz {
|
|
209
|
+
color: var(--color-base-dark-grey);
|
|
240
210
|
}
|
|
241
211
|
|
|
242
|
-
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
212
|
+
.typography-module_display--inherit__ZNOHM,
|
|
213
|
+
.typography-module_header--inherit__qmHQE,
|
|
214
|
+
.typography-module_subtitle--inherit__mly-X,
|
|
215
|
+
.typography-module_bodycopy--inherit__CoC-f,
|
|
216
|
+
.typography-module_overline--inherit__Cq4ni,
|
|
217
|
+
.typography-module_buttontext--inherit__vguWx,
|
|
218
|
+
.typography-module_captiontext--inherit__ya6gm,
|
|
219
|
+
.typography-module_navigationtext--inherit__cJLWf {
|
|
220
|
+
color: inherit;
|
|
221
|
+
}
|
|
248
222
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
223
|
+
/* Typography variants */
|
|
224
|
+
.typography-module_display--serif__C0-Ve,
|
|
225
|
+
.typography-module_header--serif__uTGCc {
|
|
226
|
+
font-family: var(--font-family-serif);
|
|
227
|
+
}
|
|
254
228
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
229
|
+
.typography-module_display--em__h2bPV,
|
|
230
|
+
.typography-module_header--em__UFQIA {
|
|
231
|
+
font-family: var(--font-family-serif);
|
|
232
|
+
font-style: italic;
|
|
233
|
+
}
|
|
260
234
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
271
|
-
}
|
|
235
|
+
.typography-module_display--bold__PG-8g,
|
|
236
|
+
.typography-module_header--bold__InvJk,
|
|
237
|
+
.typography-module_subtitle--bold__Subov,
|
|
238
|
+
.typography-module_bodycopy--bold__nZX3C,
|
|
239
|
+
.typography-module_overline--bold__3mUXy,
|
|
240
|
+
.typography-module_buttontext--bold__rBKIJ,
|
|
241
|
+
.typography-module_captiontext--bold__ebTyV,
|
|
242
|
+
.typography-module_navigationtext--bold__SRlV2 {
|
|
243
|
+
font-weight: 700;
|
|
272
244
|
}
|
|
273
245
|
|
|
274
|
-
/*
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
letter-spacing: -0.5px;
|
|
281
|
-
font-weight: 400;
|
|
246
|
+
/* Media queries */
|
|
247
|
+
@media (max-width: 699px) {
|
|
248
|
+
.typography-module_display--large__RwPQD {
|
|
249
|
+
font-size: 38px;
|
|
250
|
+
letter-spacing: -1.5px;
|
|
251
|
+
}
|
|
282
252
|
|
|
283
|
-
|
|
284
|
-
font-
|
|
285
|
-
|
|
253
|
+
.typography-module_display--small__XWUSJ {
|
|
254
|
+
font-size: 32px;
|
|
255
|
+
letter-spacing: -1.5px;
|
|
286
256
|
}
|
|
287
|
-
}
|
|
288
257
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
font-size: 17px;
|
|
295
|
-
line-height: 24px;
|
|
296
|
-
letter-spacing: -0.5px;
|
|
258
|
+
.typography-module_header--large__2vP3p {
|
|
259
|
+
font-size: 28px;
|
|
260
|
+
line-height: 34px;
|
|
261
|
+
letter-spacing: -1.5px;
|
|
262
|
+
}
|
|
297
263
|
|
|
298
|
-
|
|
299
|
-
font-size:
|
|
300
|
-
line-height:
|
|
301
|
-
letter-spacing: -
|
|
264
|
+
.typography-module_header--medium__OgzlB {
|
|
265
|
+
font-size: 24px;
|
|
266
|
+
line-height: 28px;
|
|
267
|
+
letter-spacing: -1px;
|
|
302
268
|
}
|
|
303
|
-
}
|
|
304
269
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
line-height: 19px;
|
|
311
|
-
letter-spacing: 0.4px;
|
|
312
|
-
font-weight: 500;
|
|
270
|
+
.typography-module_header--small__zLuFf {
|
|
271
|
+
font-size: 20px;
|
|
272
|
+
line-height: 26px;
|
|
273
|
+
letter-spacing: -0.75px;
|
|
274
|
+
}
|
|
313
275
|
|
|
314
|
-
|
|
276
|
+
.typography-module_subtitle--large__1Ep9J {
|
|
277
|
+
font-size: 20px;
|
|
278
|
+
line-height: 28px;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.typography-module_subtitle--medium__8FxeU {
|
|
315
282
|
font-size: 17px;
|
|
316
|
-
line-height:
|
|
283
|
+
line-height: 24px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.typography-module_bodycopy--large__BNzf2 {
|
|
287
|
+
font-size: 17px;
|
|
288
|
+
line-height: 24px;
|
|
317
289
|
}
|
|
318
290
|
}
|
|
319
|
-
|
|
320
291
|
@font-face {
|
|
321
292
|
font-family: 'GreyLLTT';
|
|
322
293
|
src: url('https://static.roh.org.uk/fonts/harmonic/GreyLLTT-Regular.woff2') format('woff2');
|