managarten/apps-archived/presi/apps/mobile/theme/constants.ts
Till-JS 44897ae758 chore: archive inventory, presi, storage apps
Move these apps to apps-archived/ as they are not actively developed:
- inventory: Inventory management app
- presi: Presentation tool
- storage: Cloud storage app

These can be reactivated by moving back to apps/ when needed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 15:22:38 +01:00

52 lines
1.1 KiB
TypeScript

export type ThemeVariant = 'default' | 'modern' | 'classic' | 'dark' | 'light';
export interface Theme {
colors: {
primary: string;
backgroundPage: string;
backgroundPrimary: string;
backgroundSecondary: string;
textPrimary: string;
textSecondary: string;
error: string;
success: string;
};
}
export const THEME_NAMES: Record<ThemeVariant, string> = {
default: 'Standard',
modern: 'Modern',
classic: 'Klassisch',
dark: 'Dunkel',
light: 'Hell',
};
const LIGHT_THEME: Theme = {
colors: {
primary: '#007AFF',
backgroundPage: '#F2F2F7',
backgroundPrimary: '#FFFFFF',
backgroundSecondary: '#F2F2F7',
textPrimary: '#000000',
textSecondary: '#6C6C6C',
error: '#FF3B30',
success: '#34C759',
},
};
const DARK_THEME: Theme = {
colors: {
primary: '#0A84FF',
backgroundPage: '#000000',
backgroundPrimary: '#1C1C1E',
backgroundSecondary: '#2C2C2E',
textPrimary: '#FFFFFF',
textSecondary: '#8E8E93',
error: '#FF453A',
success: '#32D74B',
},
};
export function getTheme(mode: 'light' | 'dark'): Theme {
return mode === 'light' ? LIGHT_THEME : DARK_THEME;
}