< Back to calendar overview


Showcase with 5 moons in a single calendar

The moons property inside a Calendar Configuration defines celestial bodies orbiting your world. You can configure multiple moons per calendar, each with its own cycle length, phase alignment offset, and custom rendering color.
Moons get rendered at 4 different phases:

  • New Moon
  • Crescent Half Moon
  • Full Moon
  • Waning Half Moon

These appear on top of their respective calendar’s axis. The more you zoom out, the more moons disappear in favor of performance and clarity.

Configuration

The moons property contains a list of moons. Each moon has the properties offset, cycle and color.

Day 0 (Epoch Origin) Day 10 1st Full Moon offset = 10 days Day 40 2nd Full Moon cycle = 30 days (Full Moon to Full Moon Distance)
PropertyTypeDefaultShort Description
cyclenumber (required)n/aDays between two consecutive full moons.
offsetnumber (required)n/aShift in days relative to calendar’s Day 0.
colorstring (optional)currentColorHex color or CSS color name.

The cycle determines the period of the synodic month. The offset aligns the phase sequence to your timeline: an offset of 0 means a full moon occurs precisely on Day 0.

Example

Below is the moon part of a Calendar Configuration example featuring a primary moon, a smaller, faster secondary moon, and a legendary blood-red moon:

moons:
  - cycle: 28.3 # Primary Silver Moon (default notation)
    offset: 10
    color: '#ffd700'
  - cycle: 12.72 # Secondary Moon (without color)
    offset: 2.5
  - {cycle: 3000, offset: 2123, color: crimson} # Crimson moon (in short notation)