Skip to main content
googleCalendar.getColors returns the connected user’s palette. Use its IDs for event and calendar-list colors.

Example

Inputs

Optional second argument { account } selects the Google Account.

Output

Returns { calendars: Record<string, { background: string; foreground: string }>; events: Record<string, { background: string; foreground: string }>; updatedAt?: string }. Keys are provider color IDs. Palettes can vary by account and change over time, so don’t infer IDs from hex values.