We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 262eff1 + ce77820 commit 2cf162eCopy full SHA for 2cf162e
1 file changed
src/config/them.config.ts
@@ -1,3 +1,10 @@
1
// Legacy shim — kept so old imports don't break during migration.
2
// New code should import directly from "@/theme".
3
-export { theme as getTheme, type ThemeMode, type ThemeTokens as Theme } from "../theme/theme.config";
+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