mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-08 02:36:37 +08:00
feat: implement theme selection and system integration
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @module @/themes
|
||||
* Public API for the FLVX theme system.
|
||||
*
|
||||
* Usage:
|
||||
* import { ThemeProvider, useThemeContext, registerTheme } from "@/themes";
|
||||
*/
|
||||
|
||||
export type {
|
||||
ThemePackage,
|
||||
ThemeTokens,
|
||||
ComponentKey,
|
||||
LayoutKey,
|
||||
PageKey,
|
||||
} from "./types";
|
||||
|
||||
export {
|
||||
registerTheme,
|
||||
unregisterTheme,
|
||||
getRegisteredThemes,
|
||||
getTheme,
|
||||
getActiveThemeId,
|
||||
getActiveTheme,
|
||||
activateTheme,
|
||||
deactivateTheme,
|
||||
reapplyActiveTheme,
|
||||
initThemeSystem,
|
||||
resolveComponent,
|
||||
resolveLayout,
|
||||
resolvePage,
|
||||
getSavedMode,
|
||||
saveMode,
|
||||
getEffectiveMode,
|
||||
subscribe,
|
||||
} from "./registry";
|
||||
|
||||
export type { ThemeMode } from "./registry";
|
||||
|
||||
export {
|
||||
ThemeProvider,
|
||||
useThemeContext,
|
||||
useThemedComponent,
|
||||
useThemedLayout,
|
||||
useThemedPage,
|
||||
} from "./context";
|
||||
Reference in New Issue
Block a user