Archive icon

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

archive

01Use it

Use archive

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

<Archive size={24} />

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

JavaScript

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

toSvg(Archive, { 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-archive" data-sketch="" aria-hidden="true"><path d="M1.93 4.32Q11.66 4.99 21.4 4.5M20.82 3.2Q20.9 6.52 21 9.85M22.5 8.98Q12.32 8.46 2.14 8.97M2.84 10.25Q2.78 6.8 3.01 3.36" stroke-width="1.616"/><path d="M4.65 8.68Q4.59 14.17 4.35 19.66Q11.97 19.6 19.59 19.35Q19.59 14.1 19.5 8.85" stroke-width="1.808"/><path d="M9.46 12.82Q11.93 13.02 14.4 13.04" stroke-width="1.376"/></svg>

Pencil variant

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

<Archive size={32} pencil />

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

02How it's drawn

The recipe for archive

Archive is not stored as a drawing. It is a recipe of 1 rectangle, 1 polyline and 1 line 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
R 3 4.5 18 4.5;
P 4.5 9 4.5 19.5 19.5 19.5 19.5 9;
L 10 13 14 13
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 archive. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil