Skip to content
Branding API

Theming

Theme every Sessions embed with CSS custom properties. Set them once on `<sessions-context>` (or `:root`) to brand all embeds on the page, or on a single element to theme just that one. Each `--sessions-*` property maps to the embed’s internal design tokens, so a handful of values restyle the whole widget. All are optional — unset properties fall back to a neutral default that adapts to `--sessions-color-scheme`.

Example theme

sessions-context {
  --sessions-color-scheme: light;
  --sessions-surface: #ffffff;
  --sessions-surface-hover: #f4f4f8;
  --sessions-border: #e2e2e8;
  --sessions-text: #1a1a2e;
  --sessions-text-subdued: #71717a;
  --sessions-accent: #6366f1;
  --sessions-action-text: #ffffff;
}

Scheme

Light or dark base for unstyled fallback chrome.

PropertyDescriptionExample
--sessions-color-scheme`light` or `dark`. Sets the embed’s base color scheme.light

Surfaces

Background layers, from the page surface up to hover fills.

PropertyDescriptionExample
--sessions-surfacePrimary background behind the embed’s content.#ffffff
--sessions-surface-hoverHover/active background for interactive rows + cells.#f4f4f8
--sessions-surface-mutedSubtle background for secondary panels + empty states.#fafafa
--sessions-borderHairline colour for dividers, grid lines, and outlines.#e2e2e8

Text

Foreground colours for primary and secondary copy.

PropertyDescriptionExample
--sessions-textPrimary text colour. Also seeds the loading skeleton.#1a1a2e
--sessions-text-subduedSecondary text — captions, weekday labels, metadata.#71717a

Accent

The brand colour used for primary actions + today markers.

PropertyDescriptionExample
--sessions-accentPrimary action / highlight colour (buttons, today dot).#6366f1
--sessions-action-textText/icon colour rendered on top of the accent colour.#ffffff
--sessions-focusFocus-ring colour for keyboard navigation.#6366f1

Status

Semantic colours for positive + destructive states.

PropertyDescriptionExample
--sessions-positiveSuccess / available state (e.g. open spots).#059669
--sessions-destructiveErrors + destructive actions (e.g. cancel).#dc2626

Brand gradient

Optional gradient used in avatar tiles and pass/membership cards. Set the single `--sessions-brand-gradient` for a solid, or the from/to pair for a true gradient.

PropertyDescriptionExample
--sessions-brand-gradient-fromStart colour of the brand gradient.#6366f1
--sessions-brand-gradient-toEnd colour of the brand gradient.#8b5cf6
--sessions-brand-gradient-angleGradient angle.135deg
Branding API