CSS variables
Both UI packages read the same variables. Set them on the calendar’s container or on :root.
| Variable | Default | Used for |
|---|---|---|
--ww-accent |
#4f46e5 |
Today, focus rings, the active date in the picker |
--ww-accent-soft |
#eef0ff |
Hover and drop-target tint |
--ww-now |
#d93d42 |
Current time line |
--ww-border |
#ededeb |
Grid lines |
--ww-border-soft |
#f2f2f0 |
Time-step lines inside an hour |
--ww-control-border |
#e4e4e1 |
Outline of toolbar controls |
--ww-muted |
#63636b |
Secondary text |
--ww-text |
#18181b |
Text, the active view tab |
--ww-bg |
#fff |
The calendar card |
--ww-surface |
#f4f4f2 |
Around the card, behind the toolbar |
--ww-bg-muted |
#fafaf8 |
Days outside the month |
--ww-bg-blocked |
#fafaf8 |
Past and disabled time |
--ww-today-bg |
#fafaff |
Today’s column |
--ww-event-bg |
#eef0ff |
Event background (DOM package) |
--ww-event-border |
#dadffb |
Event border (DOM package) |
--ww-event-text |
#3730a3 |
Event text (DOM package) |
--ww-event-dot |
--ww-event-text |
The dot of month-view events (DOM package) |
--ww-spotlight |
rgba(79, 70, 229, 0.08) |
Highlight under a dragged event |
--ww-preview-bg |
#18181b |
Drag, resize and create time label |
--ww-preview-text |
#fff |
Its text |
--ww-time-column |
64px |
Width of the hour column (44px in a compact calendar, 40px in a narrow one) |
--ww-radius |
18px |
Corner radius of the card (14px in a compact calendar) |
The hour column is wide enough for 12-hour locales; it grows by itself when a label does not fit.