Thumbs up icon

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

thumbs-up

01Use it

Use thumbs-up

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

<ThumbsUp size={24} />

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

JavaScript

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

toSvg(ThumbsUp, { 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-thumbs-up" data-sketch="" aria-hidden="true"><path d="M2.92 10.17Q4.74 10.03 6.55 10.16Q6.38 15.37 6.63 20.59Q4.75 20.37 2.87 20.33Q3.28 15.26 2.92 10.17Q3.71 10.11 4.51 10.17" stroke-width="1.584"/><path d="M6.43 10.39Q8.03 7.2 9.46 3.93Q10.28 3.79 11.11 3.63Q11.82 4.41 12.52 5.2Q11.9 7 11.42 8.84Q14.9 8.98 18.38 8.81Q19.52 9.79 20.57 10.88Q19.57 14.81 19.14 18.84Q18.24 19.66 17.4 20.54Q11.82 20.27 6.24 20.63" stroke-width="1.664"/></svg>

Pencil variant

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

<ThumbsUp size={32} pencil />

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

02How it's drawn

The recipe for thumbs-up

Thumbs up is not stored as a drawing. It is a recipe of 1 closed shape and 1 polyline 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 3 10 6.5 10 6.5 20.5 3 20.5;
P 6.5 10 9.5 4 11 3.5 12.5 5 11.5 9 18.5 9 20.5 11 19 19 17.5 20.5 6.5 20.5
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 thumbs-up. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil