Skip to the content

Koyomi Calendars暦

Calendar pages as SVG: a day as an icon in 18 original designs, a whole month as a poster or a desk pad, and the page turning from one day to the next.

Koyomi is the Japanese word 暦 for the calendar. About the name

Contents

Reference · /month

monthCalendarfunction

A whole month as an SVG: a wall poster, a memo board, a spiral-bound wall page or a desk pad.

The library knows no holiday: every note on a day is yours to give.

Import it

import { monthCalendar } from "@johnmorrisdotca/koyomi-calendars/month";

Definition

function monthCalendar(options: MonthCalendarOptions): string

Parameters

NameTypeDescription
optionsMonthCalendarOptions

The year and month, and the look: design, weekStart, locale, scheme, size, notes, tint, outside and mini.

Returns

string

The page as SVG text, <svg …>…</svg>. It throws a RangeError for a year or month that is out of range.

Examples

import { monthCalendar } from "@johnmorrisdotca/koyomi-calendars/month";

const svg = monthCalendar({ year: 2026, month: 11, design: "poster", scheme: "dark" });
console.log(svg.startsWith("<svg"));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/koyomi-calendars 0.3.0.