View source: R/calendar-utils.R
cal_theme | R Documentation |
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.
cal_theme(cal, ..., .list = NULL)
cal |
A |
... |
Named arguments to customize appearance with CSS. See online documentation for full list of options. |
.list |
Alternative to |
A calendar
htmlwidget object.
Online JavaScript documentation: https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.