Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A scalable set of SVG icons built by GitHub for GitHub, distributed as Node.js, React, and Ruby libraries.
Primer Octicons is an open-source set of handcrafted SVG icons built by GitHub for GitHub, distributed as a collection of libraries for JavaScript, React, Ruby, and Jekyll. The repository description calls it "A scalable set of icons handcrafted with ❤️ by GitHub," and it currently has over 8,700 stars on GitHub.
Primer Octicons is a scalable icon library maintained by GitHub as part of the Primer design system. It provides a set of SVG icons and exposes them through several packages in the primer/octicons repository, each targeting a different platform: @primer/octicons for Node.js, @primer/octicons-react and @primer/styled-octicons for React, octicons gem for Ruby, octicons_helper for Rails, and jekyll-octicons for Jekyll. The code is released under the MIT license, and GitHub logos within the set are subject to the GitHub logo guidelines.
@primer/octicons-react delivers icons as installable React components, while @primer/styled-octicons extends them with Styled System props.octicons gem offers a Ruby API, octicons_helper integrates with Rails, and jekyll-octicons works as a plugin for Jekyll static sites.@primer/octicons-react and import icons as React components in menus, buttons, status indicators, and empty states.octicons_helper to generate icon markup from Ruby code, keeping icons consistent across pages.jekyll-octicons in a Jekyll build to output icon SVGs without manually editing image files.Yes, the code is released under the MIT license, so you can use the icon libraries in commercial and personal projects. The GitHub logos included in the set are an exception and must follow the GitHub logo guidelines.
The main packages are @primer/octicons (Node.js), @primer/octicons-react (React), @primer/styled-octicons (React + Styled System), octicons (Ruby gem), octicons_helper (Rails helper), and jekyll-octicons (Jekyll plugin).
You can open an issue in the primer/octicons repository using the appropriate issue template. GitHub staff can use the dedicated icon review request template to propose new icons for inclusion.
