Layout grid icon

A free pencil-style layout grid icon, drawn by code from 4 closed shapes. Use it as an SVG, a React component, or by name. MIT licensed.

layout-grid

01Use it

Use layout-grid

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

<LayoutGrid size={24} />

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

JavaScript

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

toSvg(LayoutGrid, { 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-layout-grid" data-sketch="" aria-hidden="true"><path d="M4.03 3.97Q7.36 3.82 10.68 4.05Q10.51 7.18 10.64 10.32Q7.41 10.61 4.17 10.52Q3.83 7.25 4.03 3.97Q4.96 3.95 5.89 4" stroke-width="1.472"/><path d="M13.51 4.14Q16.85 4.05 20.19 3.91Q20.01 7.22 19.81 10.52Q16.58 10.32 13.35 10.45Q13.3 7.29 13.51 4.14Q14.05 4.15 14.58 4.1" stroke-width="1.568"/><path d="M3.93 13.54Q7.15 13.8 10.38 13.65Q10.59 16.91 10.68 20.17Q7.27 20.09 3.85 20.01Q3.97 16.77 3.93 13.54Q4.7 13.53 5.47 13.57" stroke-width="1.712"/><path d="M13.49 13.48Q16.72 13.54 19.95 13.63Q20.22 16.73 20.09 19.84Q16.89 20.1 13.68 20.14Q13.8 16.81 13.49 13.48Q14.28 13.56 15.06 13.52" stroke-width="1.472"/></svg>

Pencil variant

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

<LayoutGrid size={32} pencil />

The file is icons/layout-grid.svg in the package (pencil/layout-grid.svg for the pencil variant). Matita 0.3.0.

02How it's drawn

The recipe for layout-grid

Layout grid is not stored as a drawing. It is a recipe of 4 closed shapes 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 4 4 10.5 4 10.5 10.5 4 10.5;
Z 13.5 4 20 4 20 10.5 13.5 10.5;
Z 4 13.5 10.5 13.5 10.5 20 4 20;
Z 13.5 13.5 20 13.5 20 20 13.5 20
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 layout-grid. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil