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 · Calendar icons

CalendarLooktype

The three options a preset sets: a housing, rings and a turn.

Import it

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

Definition

interface CalendarLook {
    housing?: CalendarHousing;
    rings?: boolean;
    turn?: number;
}

Members

NameTypeDescription
housing (optional)"square" | "circle" | undefined
rings (optional)boolean | undefined
turn (optional)number | undefined

Examples

import { CALENDAR_PRESETS, type CalendarLook } from "@johnmorrisdotca/koyomi-calendars";

const look: CalendarLook = CALENDAR_PRESETS.disc;
console.log(look);
{ housing: 'circle' }

What it prints (run when this page was built)

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