aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src/index.ts
blob: ce077e81729e86dfe7a00934eca65dee712683cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export enum ThemeType {
  default = 'default',
  dark = 'dark',
}

import * as darkThemeConfig from './themes/dark';
import * as defaultThemeConfig from './themes/default';

export default (themeId: ThemeType) => {
  if (themeId === ThemeType.dark) {
    return Object.assign({}, defaultThemeConfig, darkThemeConfig);
  }

  return Object.assign({}, defaultThemeConfig);
};

export type Theme = typeof defaultThemeConfig;