mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 22:19:40 +02:00
Remove unused custom theme functionality: - Delete custom-themes-store.svelte.ts from shared-theme - Remove ThemeEditor, ColorPicker, ThemeLivePreview components - Remove CommunityThemeGallery, ThemeCommunityCard components - Remove ThemeEditorPage, CommunityThemesPage - Simplify ThemePage to show only built-in themes - Remove editor and community routes from contacts app - Update THEMING.md documentation The built-in theme variants (default, ocean, forest, sunset, etc.) provide sufficient customization. Custom theme creation was never fully implemented and added unnecessary complexity. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
110 lines
2.1 KiB
TypeScript
110 lines
2.1 KiB
TypeScript
// Types
|
|
export type {
|
|
ThemeMode,
|
|
ThemeVariant,
|
|
EffectiveMode,
|
|
ThemeState,
|
|
ThemeColors,
|
|
ThemeVariantDefinition,
|
|
AppThemeConfig,
|
|
ThemeStore,
|
|
HSLValue,
|
|
// A11y Types
|
|
ContrastLevel,
|
|
ColorblindMode,
|
|
A11ySettings,
|
|
A11yStore,
|
|
A11yStoreConfig,
|
|
// User Settings Types (synced via mana-core-auth)
|
|
NavPosition,
|
|
NavSettings,
|
|
ThemeSettings,
|
|
GlobalSettings,
|
|
AppOverride,
|
|
UserSettingsResponse,
|
|
UserSettingsStore,
|
|
UserSettingsStoreConfig,
|
|
// General Settings Types
|
|
StartPageConfig,
|
|
WeekStartDay,
|
|
GeneralSettings,
|
|
} from './types';
|
|
|
|
// User Settings Constants
|
|
export { DEFAULT_GLOBAL_SETTINGS, DEFAULT_GENERAL_SETTINGS } from './types';
|
|
|
|
// Theme Variant Categories
|
|
export { DEFAULT_THEME_VARIANTS, EXTENDED_THEME_VARIANTS } from './types';
|
|
|
|
// Constants
|
|
export {
|
|
THEME_VARIANTS,
|
|
THEME_DEFINITIONS,
|
|
DEFAULT_MODE,
|
|
DEFAULT_VARIANT,
|
|
CSS_VAR_PREFIX,
|
|
STORAGE_KEY_SUFFIX,
|
|
} from './constants';
|
|
|
|
// A11y Constants
|
|
export {
|
|
A11Y_STORAGE_KEY_SUFFIX,
|
|
DEFAULT_A11Y_SETTINGS,
|
|
COLORBLIND_OPTIONS,
|
|
CONTRAST_OPTIONS,
|
|
HIGH_CONTRAST_CONFIG,
|
|
COLORBLIND_TRANSFORMS,
|
|
MOTION_DEFAULTS,
|
|
} from './a11y-constants';
|
|
|
|
// Store
|
|
export { createThemeStore, APP_THEME_CONFIGS } from './store.svelte';
|
|
|
|
// A11y Store
|
|
export { createA11yStore } from './a11y-store.svelte';
|
|
|
|
// User Settings Store
|
|
export { createUserSettingsStore } from './user-settings-store.svelte';
|
|
|
|
// Utils
|
|
export {
|
|
isBrowser,
|
|
getSystemPreference,
|
|
createSystemPreferenceListener,
|
|
getThemeColors,
|
|
colorsToCssVars,
|
|
applyThemeToDocument,
|
|
loadThemeFromStorage,
|
|
saveThemeToStorage,
|
|
parseHSL,
|
|
createHSL,
|
|
adjustLightness,
|
|
adjustSaturation,
|
|
getContrastColor,
|
|
generateThemeCSS,
|
|
} from './utils';
|
|
|
|
// A11y Utils
|
|
export {
|
|
getSystemReducedMotion,
|
|
createReducedMotionListener,
|
|
applyMotionSettings,
|
|
applyHighContrast,
|
|
applyColorblindTransform,
|
|
applyA11yTransformations,
|
|
applyA11yAttributes,
|
|
loadA11yFromStorage,
|
|
saveA11yToStorage,
|
|
} from './a11y-utils';
|
|
|
|
// App Routes
|
|
export type { AppRoute, AppRouteConfig } from './app-routes';
|
|
export {
|
|
APP_ROUTES,
|
|
getStartPage,
|
|
getAvailableRoutes,
|
|
getDefaultRoute,
|
|
filterHiddenNavItems,
|
|
getHideableRoutes,
|
|
isRouteHidden,
|
|
} from './app-routes';
|