@newskit-render/core 2.42.0 → 2.43.0-alpha.0
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/CHANGELOG.md +8 -0
- package/assets/fontFamily.ts +200 -0
- package/{public → assets}/fonts/GillSansMTStd-Bold.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-BoldCondensed.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-BoldItalic.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-Book.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-BookItalic.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-Condensed.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-ExtraBold.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-Heavy.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-HeavyItalic.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-Light.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-LightItalic.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-Medium.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-MediumItalic.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-UltraBold.otf +0 -0
- package/{public → assets}/fonts/GillSansMTStd-UltraBoldCond.otf +0 -0
- package/{public → assets}/fonts/Montserrat-Black.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-BlackItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Bold.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-BoldItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-ExtraBold.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-ExtraBoldItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-ExtraLight.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-ExtraLightItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Italic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Light.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-LightItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Medium.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-MediumItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Regular.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-SemiBold.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-SemiBoldItalic.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-Thin.ttf +0 -0
- package/{public → assets}/fonts/Montserrat-ThinItalic.ttf +0 -0
- package/{public → assets}/fonts/TheSun-Bold.ttf +0 -0
- package/{public → assets}/fonts/TheSun-BoldItalic.ttf +0 -0
- package/{public → assets}/fonts/TheSun-HeavyCondensed.ttf +0 -0
- package/{public → assets}/fonts/TheSun-HeavyNarrow.ttf +0 -0
- package/{public → assets}/fonts/TheSun-Italic.ttf +0 -0
- package/{public → assets}/fonts/TheSun-Medium.ttf +0 -0
- package/{public → assets}/fonts/TheSun-MediumItalic.ttf +0 -0
- package/{public → assets}/fonts/TheSun-Regular.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-Bold.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-BoldItalic.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-BoldSC.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-Italic.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-Regular.ttf +0 -0
- package/{public → assets}/fonts/TimesDigital-RegularSC.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-Bold.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-BoldItalic.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-BoldSC.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-Italic.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-Regular.ttf +0 -0
- package/{public → assets}/fonts/TimesDigitalW04-RegularSC.ttf +0 -0
- package/{public → assets}/fonts/TimesModern-Regular.otf +0 -0
- package/{public → assets}/fonts/attribuitions.mdx +0 -0
- package/{public → assets}/fonts/bitter-medium.woff +0 -0
- package/{public → assets}/fonts/bitter-medium.woff2 +0 -0
- package/{public → assets}/fonts/bitter-mediumitalic.woff +0 -0
- package/{public → assets}/fonts/bitter-mediumitalic.woff2 +0 -0
- package/{public → assets}/fonts/bitter-regular.woff +0 -0
- package/{public → assets}/fonts/bitter-regular.woff2 +0 -0
- package/{public → assets}/fonts/bitter-semibold.woff +0 -0
- package/{public → assets}/fonts/bitter-semibold.woff2 +0 -0
- package/{public → assets}/fonts/dmmono-medium.woff +0 -0
- package/{public → assets}/fonts/dmmono-medium.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-bold-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-bold-webfont.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-bolditalic-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-bolditalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-italic-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-italic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-medium-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-medium-webfont.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-mediumitalic-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-mediumitalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/dmsans-regular-webfont.woff +0 -0
- package/{public → assets}/fonts/dmsans-regular-webfont.woff2 +0 -0
- package/{public → assets}/fonts/notosans-bold-webfont.woff +0 -0
- package/{public → assets}/fonts/notosans-bold-webfont.woff2 +0 -0
- package/{public → assets}/fonts/notosans-italic-webfont.woff +0 -0
- package/{public → assets}/fonts/notosans-italic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/notosans-medium-webfont.woff +0 -0
- package/{public → assets}/fonts/notosans-medium-webfont.woff2 +0 -0
- package/{public → assets}/fonts/notosans-regular-webfont.woff +0 -0
- package/{public → assets}/fonts/notosans-regular-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-bold-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-bold-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-bolditalic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-bolditalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-extrabold-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-extrabold-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-extrabolditalic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-extrabolditalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-italic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-italic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-light-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-light-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-lightitalic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-lightitalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-medium-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-medium-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-mediumitalic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-mediumitalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-regular-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-regular-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-semibold-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-semibold-webfont.woff2 +0 -0
- package/{public → assets}/fonts/poppins-semibolditalic-webfont.woff +0 -0
- package/{public → assets}/fonts/poppins-semibolditalic-webfont.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-600.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-600.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-600italic.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-600italic.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-700.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-700.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-700italic.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-700italic.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-italic.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-italic.woff2 +0 -0
- package/{public → assets}/fonts/source-serif-pro-regular.woff +0 -0
- package/{public → assets}/fonts/source-serif-pro-regular.woff2 +0 -0
- package/components/header/index.tsx +2 -15
- package/config/multiTenancy.ts +1 -2
- package/context/app-context/AppContext.test.tsx +3 -4
- package/css/index.ts +0 -268
- package/helpers/useThemeDropdownObject.tsx +2 -0
- package/package.json +6 -5
- package/pages/_app.tsx +22 -0
- package/pages/_document.tsx +0 -16
- package/temp/_app.tsx +3 -224
- package/helpers/fontList.ts +0 -230
- package/theme/colours.json +0 -4
- package/theme/index.ts +0 -1
- package/theme/render-custom-theme.ts +0 -77
- package/theme/strings/demo.ts +0 -1
- package/theme/strings/index.ts +0 -1
package/css/index.ts
CHANGED
|
@@ -1,274 +1,6 @@
|
|
|
1
1
|
import { css } from 'newskit'
|
|
2
2
|
|
|
3
3
|
export const GlobalStyling = css`
|
|
4
|
-
@font-face {
|
|
5
|
-
font-family: The Sun;
|
|
6
|
-
src: url('/fonts/TheSun-Bold.woff2') format('woff2'),
|
|
7
|
-
url('/fonts/TheSun-Bold.woff') format('woff'),
|
|
8
|
-
url('/fonts/TheSun-Bold.ttf') format('truetype');
|
|
9
|
-
font-style: normal;
|
|
10
|
-
font-weight: 700;
|
|
11
|
-
font-stretch: normal;
|
|
12
|
-
font-display: swap;
|
|
13
|
-
}
|
|
14
|
-
@font-face {
|
|
15
|
-
font-family: The Sun;
|
|
16
|
-
src: url('/fonts/TheSun-HeavyNarrow.woff2') format('woff2'),
|
|
17
|
-
url('/fonts/TheSun-HeavyNarrow.woff') format('woff'),
|
|
18
|
-
url('/fonts/TheSun-HeavyNarrow.ttf') format('truetype');
|
|
19
|
-
font-style: normal;
|
|
20
|
-
font-weight: 700;
|
|
21
|
-
font-stretch: condensed;
|
|
22
|
-
font-display: swap;
|
|
23
|
-
}
|
|
24
|
-
@font-face {
|
|
25
|
-
font-family: The Sun;
|
|
26
|
-
src: url('/fonts/TheSun-Regular.woff2') format('woff2'),
|
|
27
|
-
url('/fonts/TheSun-Regular.woff') format('woff'),
|
|
28
|
-
url('/fonts/TheSun-Regular.ttf') format('truetype');
|
|
29
|
-
font-style: normal;
|
|
30
|
-
font-weight: 400;
|
|
31
|
-
font-display: swap;
|
|
32
|
-
}
|
|
33
|
-
@font-face {
|
|
34
|
-
font-family: The Sun;
|
|
35
|
-
src: url('/fonts/TheSun-Medium.woff2') format('woff2'),
|
|
36
|
-
url('/fonts/TheSun-Medium.woff') format('woff'),
|
|
37
|
-
url('/fonts/TheSun-Medium.ttf') format('truetype');
|
|
38
|
-
font-style: normal;
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
font-display: swap;
|
|
41
|
-
}
|
|
42
|
-
@font-face {
|
|
43
|
-
font-family: Gill Sans MT Std;
|
|
44
|
-
src: url('/fonts/GillSansMTStd-Medium.otf');
|
|
45
|
-
font-display: swap;
|
|
46
|
-
}
|
|
47
|
-
@font-face {
|
|
48
|
-
font-family: TimesModern-Bold;
|
|
49
|
-
src: url('/fonts/TimesDigital-Bold.ttf') format('truetype');
|
|
50
|
-
font-display: swap;
|
|
51
|
-
}
|
|
52
|
-
@font-face {
|
|
53
|
-
font-family: Times Modern;
|
|
54
|
-
src: url('/fonts/TimesModern-Regular.otf') format('truetype');
|
|
55
|
-
font-display: swap;
|
|
56
|
-
}
|
|
57
|
-
@font-face {
|
|
58
|
-
font-family: Times Digital W04 Regular;
|
|
59
|
-
src: url('/fonts/TimesDigitalW04-Regular.ttf') format('truetype');
|
|
60
|
-
font-display: swap;
|
|
61
|
-
}
|
|
62
|
-
@font-face {
|
|
63
|
-
font-family: Montserrat;
|
|
64
|
-
src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
|
|
65
|
-
font-display: swap;
|
|
66
|
-
}
|
|
67
|
-
@font-face {
|
|
68
|
-
font-family: TheSun-Bold;
|
|
69
|
-
src: url('/fonts/TheSun-Bold.ttf') format('truetype');
|
|
70
|
-
font-display: swap;
|
|
71
|
-
}
|
|
72
|
-
@font-face {
|
|
73
|
-
font-family: TheSun-HeavyNarrow;
|
|
74
|
-
src: url('/fonts/TheSun-HeavyNarrow.ttf') format('truetype');
|
|
75
|
-
font-display: swap;
|
|
76
|
-
}
|
|
77
|
-
@font-face {
|
|
78
|
-
font-family: TheSun-Regular;
|
|
79
|
-
src: url('/fonts/TheSun-Regular.ttf') format('truetype');
|
|
80
|
-
font-display: swap;
|
|
81
|
-
}
|
|
82
|
-
@font-face {
|
|
83
|
-
font-family: TheSun-Medium;
|
|
84
|
-
src: url('/fonts/TheSun-Medium.ttf') format('truetype');
|
|
85
|
-
font-display: swap;
|
|
86
|
-
}
|
|
87
|
-
@font-face {
|
|
88
|
-
font-family: 'DM Sans';
|
|
89
|
-
src: url('/fonts/dmsans-regular-webfont.woff2') format('woff2'),
|
|
90
|
-
url('/fonts/dmsans-regular-webfont.woff') format('woff');
|
|
91
|
-
font-style: normal;
|
|
92
|
-
font-weight: 400;
|
|
93
|
-
font-display: swap;
|
|
94
|
-
}
|
|
95
|
-
@font-face {
|
|
96
|
-
font-family: 'DM Sans';
|
|
97
|
-
src: url('/fonts/dmsans-italic-webfont.woff2') format('woff2'),
|
|
98
|
-
url('/fonts/dmsans-italic-webfont.woff') format('woff');
|
|
99
|
-
font-style: italic;
|
|
100
|
-
font-weight: 400;
|
|
101
|
-
font-display: swap;
|
|
102
|
-
}
|
|
103
|
-
@font-face {
|
|
104
|
-
font-family: 'DM Sans';
|
|
105
|
-
src: url('/fonts/dmsans-medium-webfont.woff2') format('woff2'),
|
|
106
|
-
url('/fonts/dmsans-medium-webfont.woff') format('woff');
|
|
107
|
-
font-style: normal;
|
|
108
|
-
font-weight: 500;
|
|
109
|
-
font-display: swap;
|
|
110
|
-
}
|
|
111
|
-
@font-face {
|
|
112
|
-
font-family: 'DM Sans';
|
|
113
|
-
src: url('/fonts/dmsans-mediumitalic-webfont.woff2') format('woff2'),
|
|
114
|
-
url('/fonts/dmsans-mediumitalic-webfont.woff') format('woff');
|
|
115
|
-
font-style: italic;
|
|
116
|
-
font-weight: 500;
|
|
117
|
-
font-display: swap;
|
|
118
|
-
}
|
|
119
|
-
@font-face {
|
|
120
|
-
font-family: 'DM Sans';
|
|
121
|
-
src: url('/fonts/dmsans-bold-webfont.woff2') format('woff2'),
|
|
122
|
-
url('/fonts/dmsans-bold-webfont.woff') format('woff');
|
|
123
|
-
font-style: normal;
|
|
124
|
-
font-weight: 700;
|
|
125
|
-
font-display: swap;
|
|
126
|
-
}
|
|
127
|
-
@font-face {
|
|
128
|
-
font-family: 'DM Sans';
|
|
129
|
-
src: url('/fonts/dmsans-bolditalic-webfont.woff2') format('woff2'),
|
|
130
|
-
url('/fonts/dmsans-bolditalic-webfont.woff') format('woff');
|
|
131
|
-
font-style: italic;
|
|
132
|
-
font-weight: 700;
|
|
133
|
-
font-display: swap;
|
|
134
|
-
}
|
|
135
|
-
@font-face {
|
|
136
|
-
font-family: 'Poppins';
|
|
137
|
-
src: url('/fonts/poppins-bold-webfont.woff2') format('woff2'),
|
|
138
|
-
url('/fonts/poppins-bold-webfont.woff') format('woff');
|
|
139
|
-
font-weight: 700;
|
|
140
|
-
font-style: normal;
|
|
141
|
-
font-display: swap;
|
|
142
|
-
}
|
|
143
|
-
@font-face {
|
|
144
|
-
font-family: 'Poppins';
|
|
145
|
-
src: url('/fonts/poppins-bolditalic-webfont.woff2') format('woff2'),
|
|
146
|
-
url('/fonts/poppins-bolditalic-webfont.woff') format('woff');
|
|
147
|
-
font-weight: normal;
|
|
148
|
-
font-style: italic;
|
|
149
|
-
font-display: swap;
|
|
150
|
-
}
|
|
151
|
-
@font-face {
|
|
152
|
-
font-family: 'Poppins';
|
|
153
|
-
src: url('/fonts/poppins-extrabold-webfont.woff2') format('woff2'),
|
|
154
|
-
url('/fonts/poppins-extrabold-webfont.woff') format('woff');
|
|
155
|
-
font-weight: 800;
|
|
156
|
-
font-style: normal;
|
|
157
|
-
font-display: swap;
|
|
158
|
-
}
|
|
159
|
-
@font-face {
|
|
160
|
-
font-family: 'Poppins';
|
|
161
|
-
src: url('/fonts/poppins-extrabolditalic-webfont.woff2') format('woff2'),
|
|
162
|
-
url('/fonts/poppins-extrabolditalic-webfont.woff') format('woff');
|
|
163
|
-
font-weight: 800;
|
|
164
|
-
font-style: italic;
|
|
165
|
-
font-display: swap;
|
|
166
|
-
}
|
|
167
|
-
@font-face {
|
|
168
|
-
font-family: 'Poppins';
|
|
169
|
-
src: url('/fonts/poppins-italic-webfont.woff2') format('woff2'),
|
|
170
|
-
url('/fonts/poppins-italic-webfont.woff') format('woff');
|
|
171
|
-
font-weight: 400;
|
|
172
|
-
font-style: italic;
|
|
173
|
-
font-display: swap;
|
|
174
|
-
}
|
|
175
|
-
@font-face {
|
|
176
|
-
font-family: 'Poppins';
|
|
177
|
-
src: url('/fonts/poppins-light-webfont.woff2') format('woff2'),
|
|
178
|
-
url('/fonts/poppins-light-webfont.woff') format('woff');
|
|
179
|
-
font-weight: 300;
|
|
180
|
-
font-style: normal;
|
|
181
|
-
font-display: swap;
|
|
182
|
-
}
|
|
183
|
-
@font-face {
|
|
184
|
-
font-family: 'Poppins';
|
|
185
|
-
src: url('/fonts/poppins-lightitalic-webfont.woff2') format('woff2'),
|
|
186
|
-
url('/fonts/poppins-lightitalic-webfont.woff') format('woff');
|
|
187
|
-
font-weight: 300;
|
|
188
|
-
font-style: italic;
|
|
189
|
-
font-display: swap;
|
|
190
|
-
}
|
|
191
|
-
@font-face {
|
|
192
|
-
font-family: 'Poppins';
|
|
193
|
-
src: url('/fonts/poppins-medium-webfont.woff2') format('woff2'),
|
|
194
|
-
url('/fonts/poppins-medium-webfont.woff') format('woff');
|
|
195
|
-
font-weight: 500;
|
|
196
|
-
font-style: normal;
|
|
197
|
-
font-display: swap;
|
|
198
|
-
}
|
|
199
|
-
@font-face {
|
|
200
|
-
font-family: 'Poppins';
|
|
201
|
-
src: url('/fonts/poppins-mediumitalic-webfont.woff2') format('woff2'),
|
|
202
|
-
url('/fonts/poppins-mediumitalic-webfont.woff') format('woff');
|
|
203
|
-
font-weight: 500;
|
|
204
|
-
font-style: italic;
|
|
205
|
-
font-display: swap;
|
|
206
|
-
}
|
|
207
|
-
@font-face {
|
|
208
|
-
font-family: 'Poppins';
|
|
209
|
-
src: url('/fonts/poppins-regular-webfont.woff2') format('woff2'),
|
|
210
|
-
url('/fonts/poppins-regular-webfont.woff') format('woff');
|
|
211
|
-
font-weight: 400;
|
|
212
|
-
font-style: normal;
|
|
213
|
-
font-display: swap;
|
|
214
|
-
}
|
|
215
|
-
@font-face {
|
|
216
|
-
font-family: 'Poppins';
|
|
217
|
-
src: url('/fonts/poppins-semibold-webfont.woff2') format('woff2'),
|
|
218
|
-
url('/fonts/poppins-semibold-webfont.woff') format('woff');
|
|
219
|
-
font-weight: 600;
|
|
220
|
-
font-style: normal;
|
|
221
|
-
font-display: swap;
|
|
222
|
-
}
|
|
223
|
-
@font-face {
|
|
224
|
-
font-family: 'Poppins';
|
|
225
|
-
src: url('/fonts/poppins-semibolditalic-webfont.woff2') format('woff2'),
|
|
226
|
-
url('/fonts/poppins-semibolditalic-webfont.woff') format('woff');
|
|
227
|
-
font-weight: 600;
|
|
228
|
-
font-style: italic;
|
|
229
|
-
font-display: swap;
|
|
230
|
-
}
|
|
231
|
-
@font-face {
|
|
232
|
-
font-family: 'DM Mono';
|
|
233
|
-
src: url('/fonts/dmmono-medium.woff2') format('woff2'),
|
|
234
|
-
url('/fonts/dmmono-medium.woff') format('woff');
|
|
235
|
-
font-style: normal;
|
|
236
|
-
font-weight: 500;
|
|
237
|
-
font-display: swap;
|
|
238
|
-
}
|
|
239
|
-
@font-face {
|
|
240
|
-
font-family: 'Bitter';
|
|
241
|
-
src: url('/fonts/bitter-regular.woff2') format('woff2'),
|
|
242
|
-
url('/fonts/bitter-regular.woff') format('woff');
|
|
243
|
-
font-style: normal;
|
|
244
|
-
font-weight: 400;
|
|
245
|
-
font-display: swap;
|
|
246
|
-
}
|
|
247
|
-
@font-face {
|
|
248
|
-
font-family: 'Bitter';
|
|
249
|
-
src: url('/fonts/bitter-medium.woff2') format('woff2'),
|
|
250
|
-
url('/fonts/bitter-medium.woff') format('woff');
|
|
251
|
-
font-style: normal;
|
|
252
|
-
font-weight: 500;
|
|
253
|
-
font-display: swap;
|
|
254
|
-
}
|
|
255
|
-
@font-face {
|
|
256
|
-
font-family: 'Bitter';
|
|
257
|
-
src: url('/fonts/bitter-mediumitalic.woff2') format('woff2'),
|
|
258
|
-
url('/fonts/bitter-mediumitalic.woff') format('woff');
|
|
259
|
-
font-style: italic;
|
|
260
|
-
font-weight: 500;
|
|
261
|
-
font-display: swap;
|
|
262
|
-
}
|
|
263
|
-
@font-face {
|
|
264
|
-
font-family: 'Bitter';
|
|
265
|
-
src: url('/fonts/bitter-semibold.woff2') format('woff2'),
|
|
266
|
-
url('/fonts/bitter-semibold.woff') format('woff');
|
|
267
|
-
font-style: normal;
|
|
268
|
-
font-weight: 600;
|
|
269
|
-
font-display: swap;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
4
|
html,
|
|
273
5
|
body {
|
|
274
6
|
padding: 0;
|
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react'
|
|
|
2
2
|
import { UncompiledTheme } from 'newskit'
|
|
3
3
|
import {
|
|
4
4
|
sharedTheme,
|
|
5
|
+
sharedThemeDark,
|
|
5
6
|
timesTheme,
|
|
6
7
|
virginRadioTheme,
|
|
7
8
|
theSunTheme,
|
|
@@ -46,6 +47,7 @@ export const useThemeDropdownObject = (
|
|
|
46
47
|
themeDropdownOpen,
|
|
47
48
|
options: {
|
|
48
49
|
sharedTheme,
|
|
50
|
+
sharedThemeDark,
|
|
49
51
|
timesTheme,
|
|
50
52
|
virginRadioTheme,
|
|
51
53
|
theSunTheme,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.43.0-alpha.0",
|
|
4
4
|
"description": "Newskit Render - Core package",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,13 +41,14 @@
|
|
|
41
41
|
"@emotion/styled": "11.9.3",
|
|
42
42
|
"@newskit-render/api": "^1.6.4",
|
|
43
43
|
"@newskit-render/auth": "^1.3.9",
|
|
44
|
-
"@newskit-render/checkout": "^2.
|
|
44
|
+
"@newskit-render/checkout": "^2.4.0-alpha.0",
|
|
45
45
|
"@newskit-render/feature-flags": "^1.4.10",
|
|
46
46
|
"@newskit-render/feed": "^1.4.14",
|
|
47
|
-
"@newskit-render/my-account": "^4.
|
|
48
|
-
"@newskit-render/shared-components": "^2.
|
|
49
|
-
"@newskit-render/standalone-components": "^2.
|
|
47
|
+
"@newskit-render/my-account": "^4.3.0-alpha.0",
|
|
48
|
+
"@newskit-render/shared-components": "^2.4.0-alpha.0",
|
|
49
|
+
"@newskit-render/standalone-components": "^2.5.0-alpha.0",
|
|
50
50
|
"@newskit-render/validation": "^1.5.11",
|
|
51
|
+
"@next/font": "13.1.6",
|
|
51
52
|
"cross-fetch": "3.1.5",
|
|
52
53
|
"graphql": "16.6.0",
|
|
53
54
|
"lodash.get": "4.4.2",
|
package/pages/_app.tsx
CHANGED
|
@@ -9,6 +9,16 @@ import { InstrumentationContextProvider } from '../app-context/InstrumentationCo
|
|
|
9
9
|
import { getTenant } from '../helpers/multiTenancy'
|
|
10
10
|
import { GlobalStyling } from '../css'
|
|
11
11
|
import MultiTenancyProvider from '../context/multi-tenancy'
|
|
12
|
+
import {
|
|
13
|
+
bitter,
|
|
14
|
+
poppins,
|
|
15
|
+
dmSans,
|
|
16
|
+
theSun,
|
|
17
|
+
gillSansMtStd,
|
|
18
|
+
timesModern,
|
|
19
|
+
timesDigital,
|
|
20
|
+
montserrat,
|
|
21
|
+
} from '../assets/fontFamily'
|
|
12
22
|
|
|
13
23
|
if (!process.browser) {
|
|
14
24
|
// eslint-disable-next-line global-require
|
|
@@ -30,6 +40,18 @@ function MyApp({ Component, pageProps, tenant }: MyAppProps) {
|
|
|
30
40
|
<MultiTenancyProvider tenant={tenant}>
|
|
31
41
|
<AppContextProvider>
|
|
32
42
|
<>
|
|
43
|
+
<style jsx global>{`
|
|
44
|
+
:root {
|
|
45
|
+
--bitter: ${bitter.style.fontFamily};
|
|
46
|
+
--poppins: ${poppins.style.fontFamily};
|
|
47
|
+
--dm-sans: ${dmSans.style.fontFamily};
|
|
48
|
+
--the-sun: ${theSun.style.fontFamily};
|
|
49
|
+
--gill-sans-mt-std: ${gillSansMtStd.style.fontFamily};
|
|
50
|
+
--times-modern: ${timesModern.style.fontFamily};
|
|
51
|
+
--times-digital: ${timesDigital.style.fontFamily};
|
|
52
|
+
--montserrat: ${montserrat.style.fontFamily};
|
|
53
|
+
}
|
|
54
|
+
`}</style>
|
|
33
55
|
<Head>
|
|
34
56
|
<meta name="robots" content="max-image-preview:standard" />
|
|
35
57
|
<meta name="robots" content="max-video-preview:0" />
|
package/pages/_document.tsx
CHANGED
|
@@ -21,21 +21,6 @@ import {
|
|
|
21
21
|
tealiumProfileId,
|
|
22
22
|
tealiumEnv,
|
|
23
23
|
} from '../config'
|
|
24
|
-
import { fontList } from '../helpers/fontList'
|
|
25
|
-
|
|
26
|
-
const generateFontLink = ({ url, format }: { url: string; format: string }) => {
|
|
27
|
-
const type = `font/${format}`
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<link
|
|
31
|
-
rel="preload"
|
|
32
|
-
href={url}
|
|
33
|
-
as="font"
|
|
34
|
-
type={type}
|
|
35
|
-
crossOrigin="anonymous"
|
|
36
|
-
/>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
24
|
|
|
40
25
|
export default class MyDocument extends Document {
|
|
41
26
|
static async getInitialProps(ctx: DocumentContext) {
|
|
@@ -59,7 +44,6 @@ export default class MyDocument extends Document {
|
|
|
59
44
|
<Html lang="en">
|
|
60
45
|
<Head>
|
|
61
46
|
<>
|
|
62
|
-
{fontList.map((font) => generateFontLink(font))}
|
|
63
47
|
<Script
|
|
64
48
|
id="browser-script"
|
|
65
49
|
type="text/javascript"
|
package/temp/_app.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import Head from 'next/head'
|
|
4
|
-
import { ThemeProvider, Global,
|
|
4
|
+
import { ThemeProvider, Global, styled } from 'newskit'
|
|
5
|
+
import { bitter, poppins, dmSans } from '../assets/fontFamily'
|
|
6
|
+
import { GlobalStyling } from '../css'
|
|
5
7
|
<% MODULE >
|
|
6
8
|
|
|
7
9
|
|
|
@@ -11,229 +13,6 @@ if (!process.browser) {
|
|
|
11
13
|
require('newrelic')
|
|
12
14
|
}
|
|
13
15
|
|
|
14
|
-
const GlobalStyling = css`
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: GillSansMTStd-Medium;
|
|
17
|
-
src: url('/fonts/GillSansMTStd-Medium.otf');
|
|
18
|
-
}
|
|
19
|
-
@font-face {
|
|
20
|
-
font-family: TimesModern-Bold;
|
|
21
|
-
src: url('/fonts/TimesDigital-Bold.ttf') format('truetype');
|
|
22
|
-
}
|
|
23
|
-
@font-face {
|
|
24
|
-
font-family: TimesModern-Regular;
|
|
25
|
-
src: url('/fonts/TimesDigital-Regular.ttf') format('truetype');
|
|
26
|
-
}
|
|
27
|
-
@font-face {
|
|
28
|
-
font-family: TimesDigitalW04-Regular;
|
|
29
|
-
src: url('/fonts/TimesDigitalW04-Regular.ttf') format('truetype');
|
|
30
|
-
}
|
|
31
|
-
@font-face {
|
|
32
|
-
font-family: Montserrat;
|
|
33
|
-
src: url('/fonts/Montserrat-Regular.ttf') format('truetype');
|
|
34
|
-
}
|
|
35
|
-
@font-face {
|
|
36
|
-
font-family: TheSun-Bold;
|
|
37
|
-
src: url('/fonts/TheSun-Bold.ttf') format('truetype');
|
|
38
|
-
}
|
|
39
|
-
@font-face {
|
|
40
|
-
font-family: TheSun-HeavyNarrow;
|
|
41
|
-
src: url('/fonts/TheSun-HeavyNarrow.ttf') format('truetype');
|
|
42
|
-
}
|
|
43
|
-
@font-face {
|
|
44
|
-
font-family: TheSun-Regular;
|
|
45
|
-
src: url('/fonts/TheSun-Regular.ttf') format('truetype');
|
|
46
|
-
}
|
|
47
|
-
@font-face {
|
|
48
|
-
font-family: TheSun-Medium;
|
|
49
|
-
src: url('/fonts/TheSun-Medium.ttf') format('truetype');
|
|
50
|
-
}
|
|
51
|
-
@font-face {
|
|
52
|
-
font-family: 'DM Sans';
|
|
53
|
-
src: url('/fonts/dmsans-regular-webfont.woff2') format('woff2'),
|
|
54
|
-
url('/fonts/dmsans-regular-webfont.woff') format('woff');
|
|
55
|
-
font-style: normal;
|
|
56
|
-
font-weight: 400;
|
|
57
|
-
font-display: swap;
|
|
58
|
-
}
|
|
59
|
-
@font-face {
|
|
60
|
-
font-family: 'DM Sans';
|
|
61
|
-
src: url('/fonts/dmsans-italic-webfont.woff2') format('woff2'),
|
|
62
|
-
url('/fonts/dmsans-italic-webfont.woff') format('woff');
|
|
63
|
-
font-style: italic;
|
|
64
|
-
font-weight: 400;
|
|
65
|
-
font-display: swap;
|
|
66
|
-
}
|
|
67
|
-
@font-face {
|
|
68
|
-
font-family: 'DM Sans';
|
|
69
|
-
src: url('/fonts/dmsans-medium-webfont.woff2') format('woff2'),
|
|
70
|
-
url('/fonts/dmsans-medium-webfont.woff') format('woff');
|
|
71
|
-
font-style: normal;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
font-display: swap;
|
|
74
|
-
}
|
|
75
|
-
@font-face {
|
|
76
|
-
font-family: 'DM Sans';
|
|
77
|
-
src: url('/fonts/dmsans-mediumitalic-webfont.woff2') format('woff2'),
|
|
78
|
-
url('/fonts/dmsans-mediumitalic-webfont.woff') format('woff');
|
|
79
|
-
font-style: italic;
|
|
80
|
-
font-weight: 500;
|
|
81
|
-
font-display: swap;
|
|
82
|
-
}
|
|
83
|
-
@font-face {
|
|
84
|
-
font-family: 'DM Sans';
|
|
85
|
-
src: url('/fonts/dmsans-bold-webfont.woff2') format('woff2'),
|
|
86
|
-
url('/fonts/dmsans-bold-webfont.woff') format('woff');
|
|
87
|
-
font-style: normal;
|
|
88
|
-
font-weight: 700;
|
|
89
|
-
font-display: swap;
|
|
90
|
-
}
|
|
91
|
-
@font-face {
|
|
92
|
-
font-family: 'DM Sans';
|
|
93
|
-
src: url('/fonts/dmsans-bolditalic-webfont.woff2') format('woff2'),
|
|
94
|
-
url('/fonts/dmsans-bolditalic-webfont.woff') format('woff');
|
|
95
|
-
font-style: italic;
|
|
96
|
-
font-weight: 700;
|
|
97
|
-
font-display: swap;
|
|
98
|
-
}
|
|
99
|
-
@font-face {
|
|
100
|
-
font-family: 'Poppins';
|
|
101
|
-
src: url('/fonts/poppins-bold-webfont.woff2') format('woff2'),
|
|
102
|
-
url('/fonts/poppins-bold-webfont.woff') format('woff');
|
|
103
|
-
font-weight: 700;
|
|
104
|
-
font-style: normal;
|
|
105
|
-
}
|
|
106
|
-
@font-face {
|
|
107
|
-
font-family: 'Poppins';
|
|
108
|
-
src: url('/fonts/poppins-bolditalic-webfont.woff2') format('woff2'),
|
|
109
|
-
url('/fonts/poppins-bolditalic-webfont.woff') format('woff');
|
|
110
|
-
font-weight: normal;
|
|
111
|
-
font-style: italic;
|
|
112
|
-
}
|
|
113
|
-
@font-face {
|
|
114
|
-
font-family: 'Poppins';
|
|
115
|
-
src: url('/fonts/poppins-extrabold-webfont.woff2') format('woff2'),
|
|
116
|
-
url('/fonts/poppins-extrabold-webfont.woff') format('woff');
|
|
117
|
-
font-weight: 800;
|
|
118
|
-
font-style: normal;
|
|
119
|
-
}
|
|
120
|
-
@font-face {
|
|
121
|
-
font-family: 'Poppins';
|
|
122
|
-
src: url('/fonts/poppins-extrabolditalic-webfont.woff2') format('woff2'),
|
|
123
|
-
url('/fonts/poppins-extrabolditalic-webfont.woff') format('woff');
|
|
124
|
-
font-weight: 800;
|
|
125
|
-
font-style: italic;
|
|
126
|
-
}
|
|
127
|
-
@font-face {
|
|
128
|
-
font-family: 'Poppins';
|
|
129
|
-
src: url('/fonts/poppins-italic-webfont.woff2') format('woff2'),
|
|
130
|
-
url('/fonts/poppins-italic-webfont.woff') format('woff');
|
|
131
|
-
font-weight: 400;
|
|
132
|
-
font-style: italic;
|
|
133
|
-
}
|
|
134
|
-
@font-face {
|
|
135
|
-
font-family: 'Poppins';
|
|
136
|
-
src: url('/fonts/poppins-light-webfont.woff2') format('woff2'),
|
|
137
|
-
url('/fonts/poppins-light-webfont.woff') format('woff');
|
|
138
|
-
font-weight: 300;
|
|
139
|
-
font-style: normal;
|
|
140
|
-
}
|
|
141
|
-
@font-face {
|
|
142
|
-
font-family: 'Poppins';
|
|
143
|
-
src: url('/fonts/poppins-lightitalic-webfont.woff2') format('woff2'),
|
|
144
|
-
url('/fonts/poppins-lightitalic-webfont.woff') format('woff');
|
|
145
|
-
font-weight: 300;
|
|
146
|
-
font-style: italic;
|
|
147
|
-
}
|
|
148
|
-
@font-face {
|
|
149
|
-
font-family: 'Poppins';
|
|
150
|
-
src: url('/fonts/poppins-medium-webfont.woff2') format('woff2'),
|
|
151
|
-
url('/fonts/poppins-medium-webfont.woff') format('woff');
|
|
152
|
-
font-weight: 500;
|
|
153
|
-
font-style: normal;
|
|
154
|
-
}
|
|
155
|
-
@font-face {
|
|
156
|
-
font-family: 'Poppins';
|
|
157
|
-
src: url('/fonts/poppins-mediumitalic-webfont.woff2') format('woff2'),
|
|
158
|
-
url('/fonts/poppins-mediumitalic-webfont.woff') format('woff');
|
|
159
|
-
font-weight: 500;
|
|
160
|
-
font-style: italic;
|
|
161
|
-
}
|
|
162
|
-
@font-face {
|
|
163
|
-
font-family: 'Poppins';
|
|
164
|
-
src: url('/fonts/poppins-regular-webfont.woff2') format('woff2'),
|
|
165
|
-
url('/fonts/poppins-regular-webfont.woff') format('woff');
|
|
166
|
-
font-weight: 400;
|
|
167
|
-
font-style: normal;
|
|
168
|
-
}
|
|
169
|
-
@font-face {
|
|
170
|
-
font-family: 'Poppins';
|
|
171
|
-
src: url('/fonts/poppins-semibold-webfont.woff2') format('woff2'),
|
|
172
|
-
url('/fonts/poppins-semibold-webfont.woff') format('woff');
|
|
173
|
-
font-weight: 600;
|
|
174
|
-
font-style: normal;
|
|
175
|
-
}
|
|
176
|
-
@font-face {
|
|
177
|
-
font-family: 'Poppins';
|
|
178
|
-
src: url('/fonts/poppins-semibolditalic-webfont.woff2') format('woff2'),
|
|
179
|
-
url('/fonts/poppins-semibolditalic-webfont.woff') format('woff');
|
|
180
|
-
font-weight: 600;
|
|
181
|
-
font-style: italic;
|
|
182
|
-
}
|
|
183
|
-
@font-face {
|
|
184
|
-
font-family: 'DM Mono';
|
|
185
|
-
src: url('/fonts/dmmono-medium.woff2') format('woff2'),
|
|
186
|
-
url('/fonts/dmmono-medium.woff') format('woff');
|
|
187
|
-
font-style: normal;
|
|
188
|
-
font-weight: 500;
|
|
189
|
-
font-display: swap;
|
|
190
|
-
}
|
|
191
|
-
@font-face {
|
|
192
|
-
font-family: 'Bitter';
|
|
193
|
-
src: url('/fonts/bitter-regular.woff2') format('woff2'),
|
|
194
|
-
url('/fonts/bitter-regular.woff') format('woff');
|
|
195
|
-
font-style: normal;
|
|
196
|
-
font-weight: 400;
|
|
197
|
-
font-display: swap;
|
|
198
|
-
}
|
|
199
|
-
@font-face {
|
|
200
|
-
font-family: 'Bitter';
|
|
201
|
-
src: url('/fonts/bitter-medium.woff2') format('woff2'),
|
|
202
|
-
url('/fonts/bitter-medium.woff') format('woff');
|
|
203
|
-
font-style: normal;
|
|
204
|
-
font-weight: 500;
|
|
205
|
-
font-display: swap;
|
|
206
|
-
}
|
|
207
|
-
@font-face {
|
|
208
|
-
font-family: 'Bitter';
|
|
209
|
-
src: url('/fonts/bitter-mediumitalic.woff2') format('woff2'),
|
|
210
|
-
url('/fonts/bitter-mediumitalic.woff') format('woff');
|
|
211
|
-
font-style: italic;
|
|
212
|
-
font-weight: 500;
|
|
213
|
-
font-display: swap;
|
|
214
|
-
}
|
|
215
|
-
@font-face {
|
|
216
|
-
font-family: 'Bitter';
|
|
217
|
-
src: url('/fonts/bitter-semibold.woff2') format('woff2'),
|
|
218
|
-
url('/fonts/bitter-semibold.woff') format('woff');
|
|
219
|
-
font-style: normal;
|
|
220
|
-
font-weight: 600;
|
|
221
|
-
font-display: swap;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
html,
|
|
225
|
-
body {
|
|
226
|
-
padding: 0;
|
|
227
|
-
margin: 0;
|
|
228
|
-
font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, Segoe UI,
|
|
229
|
-
Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
|
|
230
|
-
sans-serif;
|
|
231
|
-
}
|
|
232
|
-
* {
|
|
233
|
-
box-sizing: border-box;
|
|
234
|
-
}
|
|
235
|
-
`
|
|
236
|
-
|
|
237
16
|
const PageContainer = styled.div`
|
|
238
17
|
position: relative;
|
|
239
18
|
min-height: 100vh;
|