aboutsummaryrefslogtreecommitdiffstats
path: root/packages/theme
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-28 19:24:47 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-07-28 15:46:43 +0000
commitd671afec794992d052f6f6b7ea73a571e67db7c1 (patch)
tree940f97875da81b34465e1981461ec7152c2b08a5 /packages/theme
parent- updated classnames to 2.3.1 to use added type definitions (diff)
downloadferdium-app-d671afec794992d052f6f6b7ea73a571e67db7c1.tar.gz
ferdium-app-d671afec794992d052f6f6b7ea73a571e67db7c1.tar.zst
ferdium-app-d671afec794992d052f6f6b7ea73a571e67db7c1.zip
Minor refactoring to use the destructured code pattern while importing from other modules.
Diffstat (limited to 'packages/theme')
-rw-r--r--packages/theme/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts
index 78d1dcbb9..94df5afd1 100644
--- a/packages/theme/src/index.ts
+++ b/packages/theme/src/index.ts
@@ -1,13 +1,13 @@
1import makeDarkThemeConfig from './themes/dark'; 1import makeDarkThemeConfig from './themes/dark';
2import makeDefaultThemeConfig from './themes/default'; 2import makeDefaultThemeConfig from './themes/default';
3import * as legacyStyles from './themes/legacy'; 3import { themeBrandPrimary } from './themes/legacy';
4 4
5export enum ThemeType { 5export enum ThemeType {
6 default = 'default', 6 default = 'default',
7 dark = 'dark', 7 dark = 'dark',
8} 8}
9 9
10export const DEFAULT_ACCENT_COLOR = legacyStyles.themeBrandPrimary; 10export const DEFAULT_ACCENT_COLOR = themeBrandPrimary;
11 11
12export function theme(themeId: ThemeType, 12export function theme(themeId: ThemeType,
13 brandColor: string = DEFAULT_ACCENT_COLOR) { 13 brandColor: string = DEFAULT_ACCENT_COLOR) {