Theme tokens
Pass aPartial<CalendarTheme> — anything you omit falls back to defaultTheme.
CalendarTheme for the full set of color, text, and metric tokens.
Dark mode
A ready-madedarkTheme is included. Switch on the system scheme with
useColorScheme():
Reading the theme
Inside a customrenderEvent (or any descendant), read the active theme with
useCalendarTheme().
Business hours
PassbusinessHours to tint the closed hours on the week/day grid. It’s a
function of the day, so open hours can vary and weekends can read as closed:
return { start, end } (hours, fractions allowed) to shade outside that range,
or null to shade the whole day. The tint is the theme’s
outsideHoursBackground.
Per-date column styling
For shading specific dates (holidays, the selected day) across month cells and week/day columns, usecalendarCellStyle — a function of the date returning a
style. Unlike businessHours (which shades a time band), this tints the whole
day.