Calendar icon
A free pencil-style calendar icon, drawn by code from 1 rectangle and 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use calendar
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { Calendar } from '@matita/icons/react';
<Calendar size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="calendar" />JavaScript
import { Calendar, toSvg } from '@matita/icons';
toSvg(Calendar, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-calendar" data-sketch="" aria-hidden="true"><path d="M2.63 5.59Q11.67 5.84 20.72 5.39M20.07 4.51Q20.28 13.11 20.11 21.71M20.88 20.47Q11.73 20.3 2.57 20.54M3.93 21.42Q3.32 12.9 3.83 4.38" stroke-width="1.376"/><path d="M3.79 9.98Q12.07 9.97 20.35 10.18" stroke-width="1.568"/><path d="M8.46 3.4Q8.52 5.28 8.67 7.17" stroke-width="1.456"/><path d="M15.46 3.03Q15.36 5.11 15.32 7.2" stroke-width="1.424"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Calendar } from '@matita/icons/react';
<Calendar size={32} pencil />The file is icons/calendar.svg in the package (pencil/calendar.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for calendar
Calendar is not stored as a drawing. It is a recipe of 1 rectangle and 3 lines on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
R 4 5.5 16 15;
L 4 10 20 10;
L 8.5 3.5 8.5 7;
L 15.5 3.5 15.5 7
calendar as a number: 2759920927
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of calendar. Seed 0 is the default.
True pixel sizes.