Skip to content

Commit ce77820

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 5052f52 commit ce77820

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)