blob: 35dad298c1f4325d44c0e1997c13120a3f7c930d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
enum Themes {
default = 'default',
dark = 'dark',
}
import * as darkThemeConfig from './themes/dark';
import * as defaultThemeConfig from './themes/default';
export default (themeId: Themes) => {
if (themeId === Themes.dark) {
return Object.assign({}, defaultThemeConfig, darkThemeConfig);
}
return Object.assign({}, defaultThemeConfig);
};
export type Theme = typeof defaultThemeConfig;
|