export interface GoogleEventColor { id: string; name: string; hex: string; } /** * Official Google Calendar API v3 Event colorId palette ("1" - "11") */ export const GOOGLE_EVENT_COLORS: GoogleEventColor[] = [ { id: '1', name: 'Lavender', hex: '#7986cb' }, { id: '2', name: 'Sage', hex: '#33b679' }, { id: '3', name: 'Grape', hex: '#8e24aa' }, { id: '4', name: 'Flamingo', hex: '#e67c73' }, { id: '5', name: 'Banana', hex: '#f6bf26' }, { id: '6', name: 'Tangerine', hex: '#f4511e' }, { id: '7', name: 'Peacock', hex: '#039be5' }, { id: '8', name: 'Graphite', hex: '#616161' }, { id: '9', name: 'Blueberry', hex: '#3f51b5' }, { id: '10', name: 'Basil', hex: '#0b8043' }, { id: '11', name: 'Tomato', hex: '#d50000' }, ]; export function getEventColorInfo(colorId?: string): GoogleEventColor | null { if (!colorId) return null; return GOOGLE_EVENT_COLORS.find((c) => c.id === colorId) || null; }