aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/theme/src/index.ts')
-rw-r--r--packages/theme/src/index.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts
deleted file mode 100644
index 5ba225e51..000000000
--- a/packages/theme/src/index.ts
+++ /dev/null
@@ -1,24 +0,0 @@
1import makeDarkThemeConfig from './themes/dark';
2import makeDefaultThemeConfig from './themes/default';
3import { themeBrandPrimary } from './themes/legacy';
4
5export enum ThemeType {
6 default = 'default',
7 dark = 'dark',
8}
9
10export const DEFAULT_ACCENT_COLOR = themeBrandPrimary;
11
12export function theme(
13 themeId: ThemeType,
14 brandColor: string = DEFAULT_ACCENT_COLOR,
15) {
16 return themeId === ThemeType.dark
17 ? makeDarkThemeConfig(brandColor)
18 : makeDefaultThemeConfig(brandColor);
19}
20
21const defaultThemeConfigWithDefaultAccentColor =
22 makeDefaultThemeConfig(DEFAULT_ACCENT_COLOR);
23
24export type Theme = typeof defaultThemeConfigWithDefaultAccentColor;