Vuepreview
Source

FullScheduler documentation

Theme & colors

Customize your calendar with CSS variables, light and dark themes, initial colors and the runtime setColors API.

Theme & colors

Init options + Runtime API
setColors (v1.0.33)

You can override palette in two ways: 1) statically via colors in FullSchedulerApiInitOptions<T>, and 2) dynamically via api.setColors() (merges only provided keys). Known keys used in our demos: surface, primary, event, highlight, textPrimary, menuBg, dragging.

Colors via init options

TypeScript
import type { FullSchedulerApiInitOptions } from 'fullscheduler'

type HappyEvent = { color?: string }

const options: FullSchedulerApiInitOptions<HappyEvent> = {
  // ...
  colors: {
    surface:    'var(--docs-border)',
    primary:    'var(--docs-surface)',
    event:      'var(--docs-tint)',
    highlight:  'var(--p-surface-50, #f1f5f9)',
    textPrimary:'var(--docs-text)',
    menuBg:     'var(--docs-surface)',
    dragging: 'color-mix(in srgb, var(--p-panelmenu-item-focus-background) 50%, transparent)'
  }
}

Runtime: api.setColors()

TypeScript
// Merge only the keys you pass; others keep their values.
api.setColors({
  primary: '#4f46e5',
  highlight: '#eef2ff',
  event: '#e0f2fe'
})

Interactive demo

Live