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 | |
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')
-rw-r--r-- | packages/instant/src/redux/store.ts | 2 | ||||
-rw-r--r-- | packages/instant/src/style/theme.ts | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/packages/instant/src/redux/store.ts b/packages/instant/src/redux/store.ts index 4d80c0383..46c4350b0 100644 --- a/packages/instant/src/redux/store.ts +++ b/packages/instant/src/redux/store.ts @@ -3,6 +3,4 @@ import { applyMiddleware, createStore, Store as ReduxStore } from 'redux'; import { reducer, State } from './reducer'; -const ONE_SECOND = 1000; - export const store: ReduxStore<State> = createStore(reducer); 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 }; |