aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src/index.ts
blob: 423fa0385deb264b4316a59b681390a404e76262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as darkThemeConfig from './themes/dark';
import * as defaultThemeConfig from './themes/default';

export enum ThemeType {
  default = 'default',
  dark = 'dark',
}

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

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

export type Theme = typeof defaultThemeConfig;