Skip to content

Theming

Override CSS custom properties on .temporal-datepicker or any ancestor element.

css
/* Emerald theme */
.my-app .temporal-datepicker {
  --tdp-accent:     #10b981;
  --tdp-accent-fg:  #ffffff;
  --tdp-today-text: #10b981;
  --tdp-today-ring: #10b981;
}

The default theme is dark. Light mode is applied automatically via @media (prefers-color-scheme: light).

TokenDefault (dark)Description
--tdp-accent#38bdf8Accent color — selected day, focus ring, range edges.
--tdp-accent-fg#0f172aForeground on accent background.
--tdp-bg#1e293bCalendar background.
--tdp-border#334155Border color.
--tdp-text#e2e8f0Primary text.
--tdp-text-muted#64748bMuted text (weekday headers, week numbers).
--tdp-day-hover-bgrgba(255,255,255,0.06)Day button hover background.
--tdp-today-text#38bdf8Today text color.
--tdp-today-ring#38bdf8Today indicator dot color.
--tdp-range-bgrgba(56,189,248,0.15)Background for days inside a range.
--tdp-range-edge-bgvar(--tdp-accent)Background for range start/end.
--tdp-range-edge-textvar(--tdp-accent-fg)Foreground for range start/end.
--tdp-disabled-text#334155Disabled day text color.
--tdp-weeknum-textvar(--tdp-text-muted)Week number column text.
--tdp-radius12pxContainer border radius.
--tdp-day-radius8pxDay button border radius.
--tdp-day-size36pxDay button size (width and height).
--tdp-shadow(dark shadow)Container box shadow.