Gridicons
gridicons · 207 icons · by Automattic · GPL-2.0-only · single-color · 24px grid · Updated
Gridicons is a free, open source icon set with 207 SVG icons by Automattic, released under the GPL 2.0 license. The icons are single-color: they follow your text color (currentColor) and can be recolored with CSS. They are designed on a 24px grid and scale cleanly as SVG.
Gridicons design specs
- filled
- monochrome
The drawing rules of this set, measured from its SVG files. Use them to design new icons that match it.
| Canvas | 24 × 24 |
|---|---|
| viewBox | 0 0 24 24 |
| Drawing area | 18.02 × 18.02, 2.99 padding |
| Drawing style | Filled shapes |
| Corner radius | 2 |
| Colors | One color (currentColor), recolorable with CSS |
| Coordinates | Up to 3 decimals |
| Straight lines | 73% horizontal or vertical, 13% at 45° |
| Curves | 40% of drawing commands |
| Symmetry | 29% of icons are left-right symmetric |
| Elements per icon | 1.1 |
| Drawing commands per icon | 22 |
Measured from 62 icons of this set.
AI icon generation
The license allows new icons derived from this set.
- Credit the original authors.
- Release derived icons under the same license (GPL-2.0-only).
Credit line: Based on Gridicons by Automattic, licensed under GPL 2.0. https://github.com/Automattic/gridicons/blob/trunk/LICENSE.md
Style guide for an LLM prompt (English)
Paste it into a prompt with a few icons from this set, then name the icon you want.
You draw new icons for the "Gridicons" icon set (Iconify prefix "gridicons") by Automattic.
Style: filled, solid, monochrome.
Iconify describes the set as: Precise Shapes, Has Padding.
Canvas
- Root: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">.
- Keep the drawing inside a 18.02x18.02 live area: about 2.99 units of padding on every side (never less than 1).
- A typical icon's bounding box covers 56% of the canvas.
Drawing
- Filled icons: draw closed filled shapes; don't use strokes.
- Round corners with a radius of about 2.
Geometry
- Coordinates are free-form; write at most 3 decimals.
- Straight lines: 73% horizontal or vertical, 13% at 45 degrees.
- About 40% of drawing commands are curves or arcs.
- Keep it simple: about 1 element and 22 drawing commands per icon.
- Elements used by the set: path.
Color
- Monochrome: paint with currentColor only, never a fixed color.
Output
- Reply with one complete <svg> element and nothing else: no comments, <title>, ids or scripts.
- Match the examples: reuse their shapes for shared parts (arrow heads, people, documents, badges).
- The result is a derivative of GPL 2.0; it must be released under the same license.About Gridicons
Popular Gridicons include code, multiple users, types, dropdown, filter and offline.
Open any icon to copy it as SVG, JSX, Vue, Svelte, Solid, Astro or CSS, or download it as SVG or PNG. Gridicons are released under the GPL 2.0 license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license.
How to use Gridicons
Every icon on this page works in any framework. Examples use gridicons:code; open an icon to copy its exact SVG, JSX, Vue, Svelte, Solid, Astro or CSS code. For sizing, color and accessibility tips, read how to use SVG icons.
React
import { Icon } from "@iconify/react";
<Icon icon="gridicons:code" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="gridicons:code" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="gridicons:code" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[gridicons--code]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/gridicons -->
<div class="i-gridicons:code"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="gridicons:code"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/gridicons/code.svg" alt="Code icon" width="24" height="24">Gridicons FAQ
Are Gridicons free for commercial use?
Yes. Gridicons are released under the GPL 2.0 license, which allows use in personal and commercial projects; modified versions of the icon files must keep the same license.
How many icons are in Gridicons?
Gridicons contains 207 icons.
What license do Gridicons use?
Gridicons are licensed under GPL 2.0. The full license text is available at https://github.com/Automattic/gridicons/blob/trunk/LICENSE.md.
Who made Gridicons?
Gridicons are created by Automattic.
How do I use Gridicons in React?
Install @iconify/react and render <Icon icon="gridicons:code" />, or open any icon on this page and copy it as a standalone React component.
What size are Gridicons?
Gridicons are designed on a 24px grid. As SVGs they scale to any size without losing quality.