Share icon

Added in v0.2.0

A free pencil-style share icon, drawn by code from 3 circles and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.

share

01Use it

Use share

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

<Share size={24} />

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

JavaScript

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

toSvg(Share, { 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-share" data-sketch="" aria-hidden="true"><path d="M18.05 8.11C17.9 8.08 17.43 8.03 17.13 7.92C16.84 7.81 16.54 7.67 16.29 7.46C16.05 7.26 15.79 7 15.64 6.71C15.49 6.41 15.42 6.05 15.39 5.71C15.36 5.37 15.37 5.02 15.44 4.67C15.51 4.33 15.61 3.95 15.81 3.66C16.01 3.38 16.32 3.15 16.63 2.97C16.93 2.79 17.27 2.66 17.62 2.59C17.96 2.51 18.35 2.46 18.71 2.52C19.07 2.59 19.45 2.74 19.75 2.96C20.05 3.18 20.28 3.51 20.5 3.83C20.72 4.15 20.95 4.5 21.06 4.88C21.16 5.26 21.17 5.71 21.11 6.1C21.05 6.5 20.89 6.9 20.69 7.26C20.5 7.62 20.25 8 19.94 8.26C19.63 8.52 19.22 8.72 18.83 8.83C18.43 8.93 17.79 8.88 17.58 8.89" stroke-width="1.536"/><path d="M6.99 9.7C7.12 9.78 7.53 9.98 7.75 10.18C7.97 10.37 8.18 10.62 8.33 10.9C8.47 11.17 8.59 11.5 8.62 11.81C8.65 12.12 8.62 12.48 8.53 12.78C8.44 13.08 8.26 13.36 8.08 13.63C7.9 13.89 7.7 14.18 7.44 14.37C7.18 14.55 6.85 14.67 6.54 14.73C6.23 14.8 5.88 14.83 5.57 14.78C5.25 14.74 4.91 14.63 4.63 14.47C4.35 14.31 4.09 14.07 3.87 13.82C3.64 13.57 3.42 13.28 3.29 12.96C3.16 12.64 3.09 12.27 3.09 11.91C3.08 11.56 3.15 11.18 3.27 10.85C3.39 10.52 3.58 10.18 3.82 9.91C4.05 9.65 4.35 9.42 4.66 9.24C4.98 9.07 5.33 8.91 5.69 8.86C6.04 8.81 6.43 8.86 6.78 8.95C7.13 9.04 7.62 9.33 7.79 9.41" stroke-width="1.696"/><path d="M20.43 18.39C20.4 18.57 20.4 19.12 20.29 19.46C20.18 19.8 20 20.16 19.77 20.43C19.54 20.69 19.22 20.95 18.9 21.08C18.58 21.2 18.19 21.21 17.84 21.19C17.49 21.16 17.13 21.08 16.81 20.92C16.49 20.76 16.18 20.52 15.94 20.24C15.69 19.95 15.43 19.6 15.33 19.23C15.23 18.86 15.29 18.42 15.33 18.02C15.38 17.62 15.44 17.17 15.62 16.82C15.81 16.47 16.13 16.15 16.45 15.91C16.78 15.68 17.19 15.48 17.58 15.42C17.97 15.35 18.41 15.41 18.79 15.52C19.18 15.64 19.57 15.84 19.89 16.1C20.22 16.36 20.55 16.7 20.74 17.08C20.93 17.46 21.01 17.93 21.05 18.38C21.08 18.82 21.08 19.32 20.94 19.74C20.8 20.16 20.34 20.72 20.22 20.91" stroke-width="1.664"/><path d="M8.05 10.76Q11.88 8.56 15.88 6.66" stroke-width="1.696"/><path d="M7.77 13.03Q11.99 15.17 16.17 17.41" stroke-width="1.648"/></svg>

Pencil variant

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

<Share size={32} pencil />

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

02How it's drawn

The recipe for share

Share is not stored as a drawing. It is a recipe of 3 circles 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
C 18 5.5 2.5;
C 6 12 2.5;
C 18 18.5 2.5;
L 8.2 10.8 15.8 6.7;
L 8.2 13.2 15.8 17.3
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 share. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

share from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/share.svg.

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

True pixel sizes.

Ink
Pencil