You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/paste-website/src/pages/getting-started/engineering/index.mdx
+39-31Lines changed: 39 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,45 @@ const App = () => (
172
172
);
173
173
```
174
174
175
+
### How to Load the Right Font
176
+
177
+
#### Default theme
178
+
179
+
Fonts for the default theme are available via the Twilio CDN and published from an [internal git repository](https://code.hq.twilio.com/DSYS/paste-fonts).
180
+
181
+
The **best and most performant way** to load the fonts is to include the following snippet in the `<head />` of your web page.
@@ -260,37 +299,6 @@ information about `transformIgnorePatterns` can be found by [reading the Jest do
260
299
Many apps/websites utilize global stylesheets. Even though Paste styles are scoped at the component level, global styles can creep
261
300
in and cause some havoc. Make sure to thoroughly test Paste components to verify everything looks as they should.
262
301
263
-
### Fonts
264
-
265
-
#### Default theme
266
-
267
-
Fonts for the default theme are available via the Twilio CDN and published from an [internal git repository](https://code.hq.twilio.com/DSYS/paste-fonts).
268
-
269
-
The best and most performant way to load the fonts is to include the following snippet in the `<head />` of your web page.
Alternatively, Paste will automatically load the fonts via JavaScript, so long as you wrap your application with the `Theme.Provider` and select the `default` theme. Though, you should note that this is not the most performant way.
277
-
278
-
#### Other themes
279
-
280
-
If you are using **any other theme**, Paste leaves it up to you to load the fonts needed. Console uses Whitney ScreenSmart
281
-
and SendGrid uses Colfax. More often than not with those themes, you are working within existing SendGrid and Twilio Console applications
282
-
and these fonts are automatically loaded for you.
283
-
284
-
The Whitney font is loaded by the Typography.com service and is only allowed on \*.twilio.com domains as well as localhost.
285
-
Make sure to serve your app from the correct hostname if you're having issues with font loading.
286
-
287
-
If you are not working in an existing Twilio Console experience, you can include the following link element in your sites `head`
288
-
to load these fonts if you are serving your application from \*.twilio.com domains.
0 commit comments