blob: 2e8527818f8346e48e50e58e710cdf240ae1caa0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import makeDarkThemeConfig from './dark';
import makeDefaultThemeConfig from './default';
import { themeBrandPrimary } from './legacy';
export enum ThemeType {
default = 'default',
dark = 'dark',
}
export function theme(
themeId: ThemeType,
brandColor: string = themeBrandPrimary,
) {
return themeId === ThemeType.dark
? makeDarkThemeConfig(brandColor)
: makeDefaultThemeConfig(brandColor);
}
const defaultThemeConfigWithDefaultAccentColor =
makeDefaultThemeConfig(themeBrandPrimary);
export type Theme = typeof defaultThemeConfigWithDefaultAccentColor;
|