feat(appearance): add composable theme package

This commit is contained in:
Maofeng
2026-09-21 16:05:05 +08:00
parent 71c416caab
commit e2dbbcb884
29 changed files with 2877 additions and 0 deletions
+80
View File
@@ -0,0 +1,80 @@
export {
AppearanceController,
type AppearanceControllerProps,
} from "./components/appearance-controller"
export {
AppearanceDialog,
AppearanceDialogContent,
AppearanceDialogHeader,
AppearanceDialogTrigger,
AppearanceTrigger,
appearanceDialogHandle,
createAppearanceDialogHandle,
type AppearanceDialogContentProps,
type AppearanceDialogHandle,
type AppearanceDialogProps,
type AppearanceDialogTriggerProps,
} from "./components/appearance-dialog"
export {
AppearanceHotkeys,
type AppearanceHotkeysProps,
} from "./components/appearance-hotkeys"
export {
AppearanceSettings,
type AppearanceSettingsProps,
} from "./components/appearance-settings"
export {
CompactLayoutField,
type CompactLayoutFieldProps,
} from "./components/compact-layout-field"
export {
ThemeColorPicker,
ThemeColorSwatchButton,
accentColorSwatches,
baseColorSwatches,
createThemeColorSwatches,
type ThemeColor,
type ThemeColorPickerProps,
type ThemeColorSwatch,
type ThemeColorSwatchButtonProps,
type ThemeColorSwatchScheme,
} from "./components/theme-color-picker"
export {
ThemeConfigCard,
type ThemeConfigCardProps,
} from "./components/theme-config-card"
export {
ThemeModeField,
ThemeModeIcon,
type ThemeModeFieldProps,
} from "./components/theme-mode-field"
export {
ThemePreview,
type ThemePreviewProps,
} from "./components/theme-preview"
export {
ThemeToggle,
ThemeToggleButton,
type ThemeToggleButtonProps,
type ThemeToggleProps,
} from "./components/theme-toggle-button"
export {
applyAppearancePreferenceEffect,
applyAppearancePreferences,
appearancePreferenceEffect,
subscribeSystemThemePreferenceEffect,
} from "./effects"
export {
appearancePreferenceDefinitions,
defaultAppearancePreferences,
defaultThemeColorConfig,
isAppearancePreferenceUpdate,
isThemeColorConfig,
type AppearancePreferenceKey,
type AppearancePreferences,
type AppearancePreferenceUpdate,
type AppearancePreferenceValue,
type ThemeMode,
} from "./preferences"
export * from "./theme"
export { useResolvedTheme } from "./use-resolved-theme"