Skip to contents

Full configuration for theme. "common" prefix is for entire calendar. "common" properties can be overridden by "week", "month". "week" prefix is for weekly and daily view. "month" prefix is for monthly view.

Usage

cal_theme(cal, ..., .list = NULL)

Arguments

cal

A calendar() object.

...

Named arguments to customize appearance with CSS. See online documentation for full list of options.

.list

Alternative to ... for using a list.

Value

A calendar htmlwidget object.

Examples

calendar(view = "month") %>%
  cal_theme(
    common.border = "2px solid #E5E9F0",
    month.dayname.borderLeft = "2px solid #E5E9F0",
    common.backgroundColor = "#2E3440",
    common.holiday.color = "#88C0D0",
    common.saturday.color = "#88C0D0",
    common.dayname.color = "#ECEFF4",
    common.today.color = "#333"
  )