aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/style/fonts.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 04:34:42 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 04:34:42 +0800
commit43ad2fe23bec01b077f5c55a23736fdcb24781a3 (patch)
tree63dea58b4338f0c19f1428ac8221cf3c21caa882 /packages/instant/src/style/fonts.ts
parent100f446031e84c367f1d0852ef60fd04d4544b9f (diff)
downloaddexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar.gz
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar.bz2
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar.lz
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar.xz
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.tar.zst
dexon-sol-tools-43ad2fe23bec01b077f5c55a23736fdcb24781a3.zip
feat: upgrade to styled-components v4
Diffstat (limited to 'packages/instant/src/style/fonts.ts')
-rw-r--r--packages/instant/src/style/fonts.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/style/fonts.ts b/packages/instant/src/style/fonts.ts
index 975a30a61..f305fd612 100644
--- a/packages/instant/src/style/fonts.ts
+++ b/packages/instant/src/style/fonts.ts
@@ -1,10 +1,10 @@
-import { injectGlobal } from './theme';
-
export const fonts = {
include: () => {
// Inject the inter-ui font into the page
- return injectGlobal`
- @import url('https://rsms.me/inter/inter-ui.css');
- `;
+ const head = document.head || document.getElementsByTagName('head')[0];
+ const style = document.createElement('style');
+ style.type = 'text/css';
+ style.appendChild(document.createTextNode(`@import url('https://rsms.me/inter/inter-ui.css')`));
+ head.appendChild(style);
},
};