Git commit icon
Added in v0.2.0
A free pencil-style git commit icon, drawn by code from 1 circle and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use git-commit
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 { GitCommit } from '@matita/icons/react';
<GitCommit size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="git-commit" />JavaScript
import { GitCommit, toSvg } from '@matita/icons';
toSvg(GitCommit, { 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-git-commit" data-sketch="" aria-hidden="true"><path d="M14.15 9.35C14.33 9.51 14.96 9.92 15.22 10.3C15.48 10.68 15.65 11.18 15.72 11.64C15.78 12.11 15.73 12.62 15.59 13.07C15.45 13.53 15.2 14 14.88 14.36C14.55 14.72 14.09 15 13.64 15.22C13.19 15.45 12.68 15.65 12.16 15.7C11.65 15.75 11.07 15.7 10.57 15.55C10.07 15.39 9.56 15.1 9.16 14.76C8.77 14.42 8.42 13.95 8.21 13.48C8.01 13.01 7.95 12.46 7.93 11.93C7.92 11.41 7.93 10.82 8.13 10.33C8.33 9.84 8.72 9.36 9.13 9C9.54 8.63 10.07 8.3 10.61 8.13C11.14 7.96 11.75 7.95 12.33 7.98C12.9 8.01 13.54 8.05 14.05 8.29C14.56 8.52 15 8.96 15.4 9.39C15.79 9.81 16.23 10.59 16.4 10.83" stroke-width="1.488"/><path d="M2.15 12.02Q5.4 11.88 8.66 11.98" stroke-width="1.712"/><path d="M15.13 11.96Q18.52 12.05 21.9 12.07" stroke-width="1.616"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { GitCommit } from '@matita/icons/react';
<GitCommit size={32} pencil />The file is icons/git-commit.svg in the package (pencil/git-commit.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for git-commit
Git commit is not stored as a drawing. It is a recipe of 1 circle and 2 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.
C 12 12 3.5;
L 2.5 12 8.5 12;
L 15.5 12 21.5 12
git-commit as a number: 4189501327
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, 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 git-commit. Seed 0 is the default.
git-commit from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/git-commit.svg.
True pixel sizes.