ICONYZ
English

Octicons

octicon · 778 icons · by GitHub · MIT · single-color · Updated

Octicons is a free, open source icon set with 778 SVG icons by GitHub, released under the MIT license. The icons are single-color: they follow your text color (currentColor) and can be recolored with CSS.

Octicons design specs

  • filled
  • monochrome

The drawing rules of this set, measured from its SVG files. Use them to design new icons that match it.

Canvas24 × 24
viewBox0 0 24 24
Drawing area23.38 × 23.38, 0.31 padding
Drawing styleFilled shapes
Corner radius0.75
ColorsOne color (currentColor), recolorable with CSS
CoordinatesUp to 3 decimals
Straight lines63% horizontal or vertical, 15% at 45°
Curves58% of drawing commands
Symmetry21% of icons are left-right symmetric
Elements per icon1.5
Drawing commands per icon29

Measured from 62 icons of this set.

AI icon generation

The license allows new icons derived from this set.

  • Credit the original authors.

Credit line: Based on Octicons by GitHub, licensed under MIT. https://github.com/primer/octicons/blob/main/LICENSE

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 "Octicons" icon set (Iconify prefix "octicon") by GitHub.
Style: filled, solid, monochrome.

Canvas
- Root: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">.
- Keep the drawing inside a 23.38x23.38 live area: about 0.31 units of padding on every side (never less than 0).
- A typical icon's bounding box covers 44% of the canvas.

Drawing
- Filled icons: draw closed filled shapes; don't use strokes.
- Round corners with a radius of about 0.75.

Geometry
- Coordinates are free-form; write at most 3 decimals.
- Straight lines: 63% horizontal or vertical, 15% at 45 degrees.
- About 58% of drawing commands are curves or arcs.
- Keep it simple: about 1 element and 29 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).
Page 1 of 9

About Octicons

Popular Octicons include alert 24, bell slash 24, hourglass 24, skip fill 16, chevron up 16 and kebab horizontal 16.

Open any icon to copy it as SVG, JSX, Vue, Svelte, Solid, Astro or CSS, or download it as SVG or PNG. Octicons are released under the MIT license, which allows use in personal and commercial projects.

How to use Octicons

Every icon on this page works in any framework. Examples use octicon:alert-24; 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="octicon:alert-24" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="octicon:alert-24" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="octicon:alert-24" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[octicon--alert-24]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/octicon -->
<div class="i-octicon:alert-24"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="octicon:alert-24"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/octicon/alert-24.svg" alt="Alert 24 icon" width="24" height="24">

Octicons FAQ

Are Octicons free for commercial use?

Yes. Octicons are released under the MIT license, which allows use in personal and commercial projects.

How many icons are in Octicons?

Octicons contains 778 icons.

What license do Octicons use?

Octicons are licensed under MIT. The full license text is available at https://github.com/primer/octicons/blob/main/LICENSE.

Who made Octicons?

Octicons are created by GitHub.

How do I use Octicons in React?

Install @iconify/react and render <Icon icon="octicon:alert-24" />, or open any icon on this page and copy it as a standalone React component.

Similar icon sets