Calendars
The month views of Calendar, Calendar View and FullCalendar View, each rendered in a panel that sets `color-scheme: light` on itself and in one that sets `color-scheme: dark`, so whatever stays light in the dark panel is a color written down as a literal. Each paints its grid in fixed light colors of its own, and the theme puts them on the `--color-calendar-*` tokens; each section names the files. A section appears only where its module is installed. The FullCalendar section loads FullCalendar from unpkg, as FullCalendar View does when the library is not in `/libraries`, and draws three events written into the page.
Calendar
Fixed. `calendar.css` and `calendar_multiday.css` of the module are all literals: `#eee` headers with `#777` text, `#fff` rows, `#ccc` borders, a `#c3d6e4` today in the mini calendar. `libraries/modules/calendar.css` repeats their selectors on the `--color-calendar-*` tokens, so the grid takes the page ground and the headers a step off it. Today, the day links and the event boxes were `--color-green` on `--color-green-lighter`, which do not switch, and the event titles, in the page text color, vanished into the light green in the dark panel: they are `--color-calendar-today`, the green of the accent, on `--color-calendar-item-bg`, a dark green in the dark scheme. The mini calendar's today is that green as well, inside the outline the theme already drew. The markup is what the month and mini templates of the module print, one week of each, with Thursday as today.
Calendar View
Fixed. `calendar-view.default.css` of the module paints through `--calendar-view-color-*` variables, all literals, and named after their values rather than their roles: `white` is the text on the dark headers and day numbers and also the ground of a result, `dark` the ground of those headers and also the text of a result. `libraries/modules/calendar_view.css` points the variables that have one role -- the borders, the ground and text of the days of other months, the gray of their numbers -- at the `--color-calendar-*` tokens, and recolors the results and the hovered day where they are painted. The markup is what the month style plugin prints, with the last days of October before the first week of November.
color-scheme: light
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|
Monday | Tuesday | Wednesday
| Thursday | Friday | Saturday | Sunday |
Monday | Tuesday
| Wednesday | Thursday
| Friday | Saturday | Sunday |
color-scheme: dark
| Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday |
|---|---|---|---|---|---|---|
Monday | Tuesday | Wednesday
| Thursday | Friday | Saturday | Sunday |
Monday | Tuesday
| Wednesday | Thursday
| Friday | Saturday | Sunday |
FullCalendar
Fixed. FullCalendar View loads FullCalendar 4.4.2, from unpkg because the library is not in `/libraries`. `libraries/modules/fullcalendar.css` sets the `--fc-*` variables on `:root`, but those arrived in FullCalendar 5 and version 4 reads none of them: its `#ddd` borders, `#eee` dividers and popover headers and `#fcf8e3` today are literals. The same file now repeats those rules on the `--color-calendar-*` tokens, and points the variables at the same tokens for a later version. The events keep the library's blue under white text, which reads on either ground. The calendars are drawn by FullCalendar itself, from three events written into the script of this page.
color-scheme: light
color-scheme: dark