Id card icon

New Added in v0.5.0

A free pencil-style id card icon, drawn by code from 1 rectangle, 1 circle, 1 arc and 2 lines. Use it as an SVG, a React component, or by name. MIT licensed.

id-card

01Use it

Use id-card

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

<IdCard size={24} />

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

JavaScript

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

toSvg(IdCard, { 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-id-card" data-sketch="" aria-hidden="true"><path d="M1.11 4.89Q11.97 5.25 22.84 5.01M21.6 3.97Q21.64 11.81 21.33 19.66M22.42 18.96Q11.96 19.1 1.5 18.85M2.47 20.24Q3.05 12.14 2.45 4.04" stroke-width="1.376"/><path d="M6.73 9.6C6.8 9.48 6.96 9.11 7.13 8.92C7.31 8.74 7.54 8.6 7.77 8.49C8 8.38 8.26 8.27 8.51 8.26C8.76 8.25 9.02 8.35 9.27 8.44C9.51 8.54 9.77 8.66 9.97 8.84C10.17 9.01 10.36 9.26 10.49 9.51C10.62 9.76 10.73 10.07 10.75 10.36C10.77 10.65 10.7 10.96 10.62 11.25C10.55 11.55 10.48 11.88 10.31 12.12C10.14 12.36 9.87 12.54 9.61 12.7C9.36 12.85 9.07 13 8.78 13.05C8.49 13.11 8.16 13.09 7.87 13.02C7.58 12.95 7.27 12.81 7.02 12.62C6.77 12.44 6.55 12.18 6.37 11.9C6.19 11.63 5.99 11.32 5.91 10.99C5.84 10.67 5.88 10.29 5.94 9.95C6 9.62 6.23 9.14 6.29 8.98" stroke-width="1.728"/><path d="M5.01 15.52C5.16 15.31 5.56 14.66 5.89 14.27C6.21 13.88 6.54 13.42 6.98 13.2C7.41 12.98 8 12.92 8.5 12.94C9 12.97 9.5 13.14 9.96 13.35C10.41 13.55 10.9 13.81 11.23 14.17C11.56 14.54 11.81 15.31 11.92 15.54" stroke-width="1.408"/><path d="M13.43 10.12Q16.43 9.93 19.44 10.07" stroke-width="1.76"/><path d="M13.45 13.86Q16.43 14.04 19.41 13.84" stroke-width="1.568"/></svg>

Pencil variant

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

<IdCard size={32} pencil />

The file is icons/id-card.svg in the package (pencil/id-card.svg for the pencil variant). Matita 0.5.1.

02How it's drawn

The recipe for id-card

Id card is not stored as a drawing. It is a recipe of 1 rectangle, 1 circle, 1 arc 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
R 2.5 5 19 14;
C 8.5 10.5 2;
A 8.5 16.5 3.5 200 340;
L 14 10 19 10;
L 14 14 19 14
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 id-card. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

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

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

True pixel sizes.

Ink
Pencil