Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Octicons

by GitHub

GitHub's own icon set (16/24 px) as SVG, with JS and React packages.

Icons Code libraryOpen sourceoutlineminimal

GitHub repoWebsite
A sidebar with six sections, a list of release checks marked passed, failed, warning, waiting and skipped, and the same 24 icons in their 16 px and 24 px drawings.
Made by AgentGid with @primer/octicons 19.42.0 (npm). Octicons code and icons are under the MIT license (c) GitHub, Inc., which allows showing and copying them with the notice kept; the demo uses no GitHub logo icons.

2. Commercial use: raw.githubusercontent.com

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”

MIT allows use in paid products; the GitHub logo icons follow GitHub's logo rules.

raw.githubusercontent.com

License checked Nov 5, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error

Octicons: GitHub's own icons for developer tools

Octicons is the free icon set GitHub draws for its own site, with small, clean pictures for things like branches, commits, bells and settings. Every icon comes in a small and a larger drawing, so it stays crisp at its size. You or your AI assistant add them to a React, Rails or plain web project, also in paid products.

Where you can use it

Icons in a React app

Import each icon by name, such as an arrow or a bell, and place it in a menu or button. Only the icons you use go into your app.

Pass, fail and warning marks

Show the state of a test run, a build or a task with a green check, a red cross or a yellow warning sign. GitHub's guide says which color goes with which icon.

Icons in pages made on a server

Get an icon as a finished piece of page text on the server, with a size, a style class or a label. Useful for emails, server-made pages and small scripts.

Icons on a Jekyll or Rails site

A blog or docs site built with Jekyll, or a Ruby on Rails app, gets the icons through ready add-ons instead of copying files by hand.

A sidebar for an internal dashboard Idea

Give each section of an admin or team dashboard its own icon, like home, inbox, people and settings, in one matching style.

Notes and warnings in project docs Idea

Mark tips, warnings and steps in the documentation of a developer project with small icons that developers already know from GitHub.

Octicons popularity

43 / 100
Gid Score, same scale as developer tools
8,791
GitHub stars
619K
npm downloads, last 7 days
+34.3% in 4 weeks
1
AI-agent projects using it, from our repo scan of 4,753
Octicons: downloads per weeknpm, @primer/octicons 647,320
Octicons: GitHub starsprimer/octicons 8,791

Downloads from api.npmjs.org, stars from GitHub, checked Nov 26, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“Add Octicons with @primer/octicons-react at version 19.42.0: home, inbox, people and gear icons in the sidebar, green check, red cross and yellow alert icons for statuses with an aria-label when the icon has no text next to it, and no GitHub logo icons.”

Or install it yourself. Add the React package to your project (there is also @primer/octicons for plain JavaScript and a Ruby gem).

npm install @primer/octicons-react
Show codeStep 1 or Without React

Import an icon by its name with Icon at the end and put it on the page; it is 16 px by default and takes the text color.

// Import the component
import {ArrowRightIcon} from '@primer/octicons-react'
// Render the icon component
const MyComponent = () => <ArrowRightIcon />

Mistakes to avoid

import {LogoGithub, ArrowRight} from '@primer/octicons-react'
import {LogoGithubIcon, ArrowRightIcon} from '@primer/octicons-react'

Every React export ends in Icon; in 19.42.0 there is no LogoGithub export, although one README example still writes it that way.

octicons.arrow-right.toSVG()
octicons['arrow-right'].toSVG()

Names with a dash do not work with dot access in JavaScript.

Scaling the 16 px file up to 20, 32 or 48 px with CSS
Use the 16 or 24 px drawing at its own size, or pass width/height to toSVG so it picks the 24 px drawing

The icons are drawn for fixed sizes and the guide says not to resize them.

<button><XIcon /></button> with no label anywhere
<button aria-label="Close"><XIcon /></button>, or Primer's IconButton

Icons without a label are hidden from screen readers, so an icon-only button needs its own name.

Using the mark-github or logo-github icon as the logo of your app
Use those icons only to link to GitHub or to show a GitHub integration

They are GitHub trademarks with their own usage rules.

License

MIT license. Free to use in personal and paid products, and you may change and share the files. Keep the copyright and license notice with copies. The GitHub logo icons follow GitHub's own logo rules.

Commercial use
Yes

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com

Credit
Not needed

“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” raw.githubusercontent.com

Inside your app or game
Can ship inside your app

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com

Pass the files on to your users
Allowed

“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” raw.githubusercontent.com

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is Octicons free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with Octicons. Paste them into your prompt or AGENTS.md.

License rules
- Octicons (Icons). GitHub's own icon set (16/24 px) as SVG, with JS and React packages. Price: free; commercial use OK; no credit needed. Style: outline, minimal.
  Connect: npm @primer/octicons.
  Get files: npm install @primer/octicons (or @primer/octicons-react). No account (svg, jsx).
  Not allowed: MIT notice in redistributed source
  Rule: Keep the license notice when you copy the source files
  Rule: GitHub logo/mark icons are GitHub trademarks: use them only to refer to GitHub
  License: https://raw.githubusercontent.com/primer/octicons/main/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/octicons/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
npm install @primer/octicons
How an agent gets files
npm install @primer/octicons (or @primer/octicons-react). No account.

Formats: svg, jsx

Repository
API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
Icons: Octicons by GitHub (MIT)
This card for machines

Alternatives

Octicons This page

Free Commercial OK npm

Lucide

Pick Lucide for a larger general set (2,029 icons in our catalog data) with ready packages for Vue, Svelte and Angular too.

Free Commercial OK npm

Heroicons

Pick Heroicons when your site uses Tailwind and you want its makers' outline and solid icons for React or Vue.

Free Commercial OK npm

Phosphor Icons

Pick Phosphor when you want every icon in six weights, from thin to fill.

Free Commercial OK npm

WordPress Icons (@wordpress/icons, successor to Dashicons)

WordPress's SVG icon set as an npm package, based on the older Dashicons icon font, under GPL-2.0-or-later.

Free Commercial OK npm

Material Design Icons (Pictogrammers)

Community Material Design icon set (7,000+ icons, as reported) as SVG, webfont and JS packages (@mdi/js, @mdi/font).

Free Commercial OK npm

All icons

Questions

Can I use Octicons in a paid app or a client project?

Yes. The MIT license allows use, copying, changing and selling, as long as the copyright and license notice stays with copies of the files.

What size are the icons?

Each icon is drawn at 16 px and most also at 24 px; a few have a 12 px drawing for tight spots. In React the default size is 16 px.

Can I change the color?

Yes. Icons take the color of the text around them by default; you can also pass a fill color.

Can I use the GitHub logo icon as my own logo?

No. GitHub's logos may be used to link to GitHub or show that your project works with GitHub, not as your own logo.

Will screen readers read the icons?

Not by default. An icon without a label is treated as decoration and hidden; add an aria-label when the icon alone carries the meaning.