Upload icon

A free pencil-style upload icon, drawn by code from 1 line and 2 polylines. Use it as an SVG, a React component, or by name. MIT licensed.

upload

01Use it

Use upload

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

<Upload size={24} />

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

JavaScript

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

toSvg(Upload, { 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-upload" data-sketch="" aria-hidden="true"><path d="M11.99 15.94Q11.97 9.95 11.89 3.96" stroke-width="1.408"/><path d="M6.53 9.45Q9.14 6.68 11.83 3.98Q14.72 6.66 17.53 9.42" stroke-width="1.504"/><path d="M4.37 15.33Q4.44 17.39 4.67 19.44Q12.06 19.7 19.45 19.52Q19.41 17.4 19.59 15.29" stroke-width="1.712"/></svg>

Pencil variant

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

<Upload size={32} pencil />

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

02How it's drawn

The recipe for upload

Upload is not stored as a drawing. It is a recipe of 1 line and 2 polylines 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
L 12 15.5 12 4.5;
P 7 9 12 4 17 9;
P 4.5 16 4.5 19.5 19.5 19.5 19.5 16
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 upload. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil