Calendar Colors
A map of calendar entity IDs to hex color strings. Each calendar’s events are rendered in the color you specify. If you omit a calendar, the card assigns it an automatic color from its built-in palette.
A map of calendar entity IDs to hex color strings for the text rendered on event chips. Use this when the auto-contrast logic does not produce readable text against your chosen calendar color.
Event Color Modes
Controls how the calendar color is applied to event chips. Three modes are available:
classic— the entire event chip background is filled with the calendar color, matching the look of most traditional calendar applicationsleft-neutral— the chip has a neutral background with a colored vertical bar on the left edge; good for maintaining readability with dark colorsleft-tint— the chip has a lightly tinted background (derived from the calendar color) with a colored left bar
The hex background color applied to event chips when
event_color_mode is left-neutral. Only this option — not colors — affects the chip background in this mode.A value from
0 to 100 controlling how strongly the calendar color tints the chip background in left-tint mode. 0 produces a fully neutral background; 100 produces a fully saturated background.The width in pixels of the colored left border applied to event chips in
left-neutral and left-tint modes.Header Appearance
The background color of the card header. Accepts a hex string (e.g.
#1A1A2E), a CSS variable (e.g. var(--primary-color)), or the special value match-card-background to make the header blend seamlessly with the card body.The color of text and icon elements inside the header. Accepts a hex string. When omitted, the card calculates a contrasting color automatically based on
header_color.The transparency of the header background, from
0 (fully opaque) to 100 (fully transparent). Values between these extremes produce a semi-transparent header. Useful when you set a background image and want the image to show through the header.Card Background
The transparency of the card body background, from
0 (fully opaque) to 100 (fully transparent). Setting this to 100 lets the underlying dashboard wallpaper or HA theme background show through.A URL pointing to an image to display behind the calendar grid. Local Home Assistant paths (e.g.
/local/calendar-bg.jpg) and remote URLs are both supported.CSS
background-size value for the background image. Options: cover, contain, auto.CSS
background-position value for the background image. Options: center, top, bottom, left, right.CSS
background-repeat value for the background image. Options: no-repeat, repeat, repeat-x, repeat-y.Layout
Make the card fit precisely into its parent container’s height rather than expanding to fill its content. Useful in fixed-height grid layouts or when the card is placed inside a vertical stack with constrained space.
Reduce internal horizontal padding. Use this when the card is placed in a narrow column and you want to maximise the space available for the calendar grid itself.
A multiplier applied to the hour-row height in the Schedule view (also known as
week-standard). A value of 1.5 makes each hour slot 50% taller; 0.75 compresses them. Does not affect Month, Week Compact, or Agenda views.Light/Dark Mode
Controls whether the card renders in light or dark mode.
auto follows the Home Assistant theme, light always uses the light appearance, and dark always uses the dark appearance regardless of the theme.Today Highlight
A simple hex color applied as the background of today’s cell in all views. For more control, use
today_style instead.An advanced object for fine-grained styling of today’s cell. You can set any combination of the following keys:
When both
| Key | Type | Description |
|---|---|---|
background_color | hex string | Background fill color |
opacity | 0–1 | Opacity of the background fill |
border_color | hex string | Color of the cell border |
border_width | number | Width of the cell border in pixels |
today_background_color and today_style are set, today_style takes precedence.