Package icon

A free pencil-style package icon, drawn by code from 1 closed shape, 1 polyline and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.

package

01Use it

Use package

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 { Package } from '@matita/icons/react';

<Package size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="package" />

JavaScript

import { Package, toSvg } from '@matita/icons';

toSvg(Package, { size: 24 });   // SVG string

SVG

<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-package" data-sketch="" aria-hidden="true"><path d="M12.05 3.13Q16.19 5.38 20.35 7.6Q20.18 12.03 20.64 16.45Q16.31 18.61 12.19 21.14Q7.72 19.21 3.63 16.56Q3.92 11.93 3.39 7.32Q7.74 5.26 12.05 3.13Q12.83 3.59 13.64 3.98" stroke-width="1.456"/><path d="M3.12 7.41Q7.7 9.52 12 12.18Q16.5 10.07 20.78 7.55" stroke-width="1.424"/><path d="M11.93 11.61Q11.95 16.48 12.15 21.36" stroke-width="1.808"/><path d="M7.5 5.15Q11.99 7.56 16.54 9.87" stroke-width="1.776"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Package } from '@matita/icons/react';

<Package size={32} pencil />

The file is icons/package.svg in the package (pencil/package.svg for the pencil variant). Matita 0.2.1.

02How it's drawn

The recipe for package

Package is not stored as a drawing. It is a recipe of 1 closed shape, 1 polyline 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.

A · Recipe
Z 12 3 20.5 7.5 20.5 16.5 12 21 3.5 16.5 3.5 7.5;
P 3.5 7.5 12 12 20.5 7.5;
L 12 12 12 21;
L 7.75 5.25 16.25 9.75
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of package. Seed 0 is the default.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil