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.ts12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts
index 94df5afd1..5ba225e51 100644
--- a/packages/theme/src/index.ts
+++ b/packages/theme/src/index.ts
@@ -9,11 +9,13 @@ export enum ThemeType {
9 9
10export const DEFAULT_ACCENT_COLOR = themeBrandPrimary; 10export const DEFAULT_ACCENT_COLOR = themeBrandPrimary;
11 11
12export function theme(themeId: ThemeType, 12export function theme(
13 brandColor: string = DEFAULT_ACCENT_COLOR) { 13 themeId: ThemeType,
14 return themeId === ThemeType.dark ? 14 brandColor: string = DEFAULT_ACCENT_COLOR,
15 makeDarkThemeConfig(brandColor) : 15) {
16 makeDefaultThemeConfig(brandColor); 16 return themeId === ThemeType.dark
17 ? makeDarkThemeConfig(brandColor)
18 : makeDefaultThemeConfig(brandColor);
17} 19}
18 20
19const defaultThemeConfigWithDefaultAccentColor = 21const defaultThemeConfigWithDefaultAccentColor =