Bell icon

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

bell

01Use it

Use bell

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

<Bell size={24} />

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

JavaScript

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

toSvg(Bell, { 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-bell" data-sketch="" aria-hidden="true"><path d="M6.72 10.83C6.72 10.45 6.56 9.25 6.74 8.51C6.93 7.78 7.35 7.05 7.83 6.44C8.32 5.83 8.95 5.19 9.64 4.88C10.34 4.57 11.21 4.56 12 4.56C12.79 4.57 13.64 4.6 14.35 4.89C15.07 5.19 15.79 5.73 16.29 6.33C16.79 6.93 17.19 7.74 17.36 8.49C17.52 9.24 17.29 10.44 17.27 10.83" stroke-width="1.792"/><path d="M6.69 9.91Q6.32 12.16 6.31 14.45Q5.28 15.61 4.32 16.84Q11.96 17.03 19.6 17.11Q18.49 15.81 17.36 14.53Q17.66 12.01 17.7 9.47" stroke-width="1.808"/><path d="M9.54 19.07Q12 21.52 14.15 19.1" stroke-width="1.76"/></svg>

Pencil variant

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

<Bell size={32} pencil />

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

02How it's drawn

The recipe for bell

Bell is not stored as a drawing. It is a recipe of 1 arc, 1 polyline and 1 curve 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
A 12 10 5.5 180 360;
P 6.5 10 6.5 14.5 4.5 17 19.5 17 17.5 14.5 17.5 10;
Q 10 19.5 12 21.5 14 19.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 bell. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil