aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/style/theme.ts
blob: 0af233db29dfd804b9e481b404c3e89eb8b7577b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import * as styledComponents from 'styled-components';

const {
    default: styled,
    css,
    injectGlobal,
    keyframes,
    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 = {
    primaryColor: '#512D80',
    black: 'black',
    lightGrey: '#999999',
    darkGrey: '#333333',
    white: 'white',
    fontFamily: 'Inter UI, sans-serif',
};

export { styled, css, injectGlobal, keyframes, ThemeProvider };