Calendar
Full-page scheduling calendar with month, week, and day views. Renders events as colored blocks. Built natively with DS tokens — not FullCalendar.js. Reusable across verticals for equipment scheduling, occurrences, and reservations.
Month View
Default view. Events render as colored pills. Click events or empty dates. Use the toolbar to navigate months or switch views.
Week View
Timed events positioned on a 24-hour grid. Overlapping events stack side-by-side. Red line shows current time on today's column.
Day View
Single-day focus with full-width event blocks. Same time grid and positioning as week view.
Event Colors
Each event carries its own color. Use DS semantic tokens for consistent meaning: info for inspections, warning for maintenance, success for completed, destructive for urgent. Events without a color use the accent default.
TOKEN REFERENCE
Calendar use component tokens from components.css:
--calendar-bg: var(--color-surface)--calendar-border: var(--elevation-border)--calendar-radius: var(--radius-md)--calendar-title-font: var(--type-heading-font)--calendar-title-size: var(--type-heading-size)--calendar-toggle-font: var(--type-label-font) (Berkeley Mono)--calendar-toggle-active-bg: var(--color-accent)--calendar-weekday-font: var(--type-label-font)--calendar-cell-min-height: var(--space-4xl)--calendar-cell-today-bg: var(--color-accent-subtle)--calendar-day-today-bg: var(--color-accent)--calendar-time-font: var(--type-data-font)--calendar-slot-height: var(--space-2xl)--calendar-now-color: var(--color-destructive)--calendar-event-font: var(--type-body-sm-font)--calendar-event-radius: var(--radius-sm)--calendar-event-default-bg: var(--color-accent)