Theming & Dark Mode
Every color, radius and font in the calendar is a CSS custom property on the .s5c root — restyle it from plain CSS without touching the component.
Built-in themes
theme="light"— the default.theme="dark"— a tuned dark palette (lighter event hues for contrast).theme="auto"— follows the OS prefers-color-scheme.
Dark mode & brand variables
Sun
6
Mon
7
Tue
8
Wed
9
Thu
10
Fri
11
Sat
12
All-day
1 AM
2 AM
3 AM
4 AM
5 AM
6 AM
7 AM
8 AM
9 AM
10 AM
11 AM
12 PM
1 PM
2 PM
3 PM
4 PM
5 PM
6 PM
7 PM
8 PM
9 PM
10 PM
11 PM
12 AM
Overriding variables
/* Rebrand the calendar from plain CSS — no build step required. */
.my-app .s5c {
--s5c-accent: #e4572e; /* buttons, today, selection */
--s5c-today-num-bg: #e4572e; /* the round "today" badge */
--s5c-now-color: #e4572e; /* current-time line */
--s5c-font: 'Inter', sans-serif;
--s5c-radius: 12px; /* toolbar buttons, popovers */
--s5c-event-radius: 8px; /* event pills & blocks */
--s5c-border: #e2e2e2;
--s5c-bg-subtle: #fafafa;
}Key variables
| Variable | Controls |
|---|---|
--s5c-accent | Primary accent: active view button, today, selection tint. |
--s5c-bg / --s5c-bg-subtle / --s5c-bg-hover | Surfaces and hover states. |
--s5c-border / --s5c-border-strong | Grid lines and control borders. |
--s5c-text / --s5c-text-muted / --s5c-text-faint | Text hierarchy. |
--s5c-today-bg / --s5c-today-num-bg | Today column tint and the round date badge. |
--s5c-now-color | The current-time line. |
--s5c-red … --s5c-pink | The 10 palette colors used by events. |
--s5c-font / --s5c-font-size | Typography. |
--s5c-radius / --s5c-event-radius | Corner radii for chrome and events. |
Scoping —
set variables on any ancestor (or on .s5c itself via the class prop) to theme calendars per-section, per-page or per-tenant.