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 · /names

CalendarThemetype

One of the names in CALENDAR_THEMES.

Import it

import type { CalendarTheme } from "@johnmorrisdotca/koyomi-calendars/names";

Also exported from: @johnmorrisdotca/koyomi-calendars

Definition

type CalendarTheme = (typeof CALENDAR_THEMES)[number];

Examples

import { calendarIcon, type CalendarTheme } from "@johnmorrisdotca/koyomi-calendars";

const theme: CalendarTheme = "squircle";
console.log(calendarIcon({ month: 11, day: 3, theme }).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.