Skip to content

Commit 2cf162e

Browse files
Merge branch 'master' of https://github.com/yashyrs027/CommDesk into yashyrs027-master
2 parents 262eff1 + ce77820 commit 2cf162e

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/config/them.config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
// Legacy shim — kept so old imports don't break during migration.
22
// New code should import directly from "@/theme".
3-
export { theme as getTheme, type ThemeMode, type ThemeTokens as Theme } from "../theme/theme.config";
3+
import { theme, type ThemeMode, type ThemeTokens } from "../theme/theme.config";
4+
5+
export type { ThemeMode };
6+
export type Theme = ThemeTokens[ThemeMode];
7+
8+
export function getTheme(mode: ThemeMode): Theme {
9+
return theme[mode];
10+
}

0 commit comments

Comments
 (0)