diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-04 06:16:59 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-04 06:16:59 +0800 |
commit | 48e7aa6e77a71f694f75ab8b2fc86f337700113d (patch) | |
tree | 83538807672878d5bdaba1bc29c68c4a8a3040ce /packages/instant/src/style | |
parent | 15f20cc18e45d2971be7274bc3c0be36b02091c8 (diff) | |
download | dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar.gz dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar.bz2 dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar.lz dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar.xz dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.tar.zst dexon-sol-tools-48e7aa6e77a71f694f75ab8b2fc86f337700113d.zip |
Add Inter UI font
Diffstat (limited to 'packages/instant/src/style')
-rw-r--r-- | packages/instant/src/style/theme.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/instant/src/style/theme.ts b/packages/instant/src/style/theme.ts index 838378c99..0af233db2 100644 --- a/packages/instant/src/style/theme.ts +++ b/packages/instant/src/style/theme.ts @@ -8,12 +8,18 @@ const { ThemeProvider, } = styledComponents as styledComponents.ThemedStyledComponentsModule<IThemeInterface>; +// Inject the inter-ui font into the page +styledComponents.injectGlobal` + @import url('https://rsms.me/inter/inter-ui.css'); +`; + export interface IThemeInterface { primaryColor: string; black: string; white: string; darkGrey: string; lightGrey: string; + fontFamily: string; } export const theme: IThemeInterface = { @@ -22,6 +28,7 @@ export const theme: IThemeInterface = { lightGrey: '#999999', darkGrey: '#333333', white: 'white', + fontFamily: 'Inter UI, sans-serif', }; export { styled, css, injectGlobal, keyframes, ThemeProvider }; |