Database icon

A free pencil-style database icon, drawn by code from 1 ellipse, 2 lines and 2 curves. Use it as an SVG, a React component, or by name. MIT licensed.

database

01Use it

Use database

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

<Database size={24} />

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

JavaScript

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

toSvg(Database, { 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-database" data-sketch="" aria-hidden="true"><path d="M11.26 8.01C10.76 7.97 9.1 7.91 8.23 7.75C7.36 7.59 6.69 7.3 6.04 7.04C5.39 6.78 4.62 6.5 4.33 6.18C4.04 5.86 4.12 5.47 4.3 5.13C4.49 4.79 4.92 4.45 5.46 4.15C5.99 3.85 6.68 3.56 7.49 3.34C8.3 3.12 9.3 2.91 10.31 2.82C11.31 2.73 12.51 2.73 13.52 2.8C14.53 2.87 15.5 3.06 16.37 3.25C17.25 3.45 18.2 3.68 18.75 3.98C19.31 4.28 19.53 4.68 19.72 5.05C19.91 5.41 20.1 5.82 19.89 6.19C19.68 6.56 19.11 6.95 18.46 7.25C17.8 7.55 16.89 7.82 15.97 8.01C15.05 8.21 13.97 8.37 12.92 8.42C11.88 8.47 10.76 8.41 9.72 8.32C8.68 8.23 7.19 7.94 6.68 7.86" stroke-width="1.664"/><path d="M4.6 4.77Q4.97 11.76 4.37 18.75" stroke-width="1.456"/><path d="M19.68 4.91Q19.52 11.97 19.57 19.03" stroke-width="1.392"/><path d="M4.17 11.92Q11.85 17.14 19.64 11.8" stroke-width="1.392"/><path d="M4.13 18.51Q12.07 22.88 19.95 18.19" stroke-width="1.488"/></svg>

Pencil variant

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

<Database size={32} pencil />

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

02How it's drawn

The recipe for database

Database is not stored as a drawing. It is a recipe of 1 ellipse, 2 lines and 2 curves 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
E 12 5.5 7.5 2.5;
L 4.5 5.5 4.5 18.5;
L 19.5 5.5 19.5 18.5;
Q 4.5 12 12 17 19.5 12;
Q 4.5 18.5 12 23 19.5 18.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 database. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil