Octicons
octicon · 778 個のアイコン · 作者: GitHub · MIT · 単色 · 更新日
Octicons は、778 個の SVG アイコンを収録した無料のオープンソースアイコンセットです(作者: GitHub)。MIT ライセンス で公開されています。アイコンは単色で、テキストの色(currentColor)に合わせて表示され、CSS で色を変更できます。
Octicons のデザイン仕様
- 塗りつぶし
- モノクロ
SVG ファイルから計測した、このセットの描画ルールです。セットに合う新しいアイコンをデザインする際に使えます。
| キャンバス | 24 × 24 |
|---|---|
| viewBox | 0 0 24 24 |
| 描画領域 | 23.38 × 23.38、余白 0.31 |
| 描画スタイル | 塗りつぶし図形 |
| 角の半径 | 0.75 |
| 色 | 単色(currentColor)、CSS で色を変更可能 |
| 座標 | 小数点以下最大 3 桁 |
| 直線 | 水平・垂直 63%、45° 15% |
| 曲線 | 描画コマンドの 58% |
| 対称性 | アイコンの 21% が左右対称 |
| アイコンあたりの要素数 | 1.5 |
| アイコンあたりの描画コマンド数 | 29 |
このセットのアイコン 62 個から計測しました。
AI によるアイコン生成
ライセンス上、このセットをもとにした新しいアイコンを作成できます。
- オリジナルの作者をクレジット表記してください。
クレジット表記: Based on Octicons by GitHub, licensed under MIT. https://github.com/primer/octicons/blob/main/LICENSE
LLM プロンプト用スタイルガイド(英語)
このセットのアイコンをいくつか添えてプロンプトに貼り付け、欲しいアイコンを指定してください。
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).Octicons について
人気の Octicons には alert 24、bell slash 24、hourglass 24、skip fill 16、chevron up 16、kebab horizontal 16 などがあります。
アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS としてコピーしたり、SVG や PNG でダウンロードしたりできます。 Octicons は MIT ライセンス で公開されており、個人・商用プロジェクトで利用できます。
Octicons の使い方
このページのアイコンはどのフレームワークでも使えます。例では octicon:alert-24 を使っています。アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS の正確なコードをコピーできます。 サイズ、色、アクセシビリティのコツは次のガイドをご覧ください: SVG アイコンの使い方.
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 コンポーネント
<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 画像
<img src="https://iconyz.com/api/public/svg/octicon/alert-24.svg" alt="Alert 24 アイコン" width="24" height="24">Octicons のよくある質問
Octicons は商用利用できますか?
はい。Octicons は MIT ライセンス で公開されており、個人・商用プロジェクトで利用できます。
Octicons にはアイコンがいくつありますか?
Octicons には 778 個のアイコンがあります。
Octicons のライセンスは何ですか?
Octicons のライセンスは MIT です。ライセンスの全文は https://github.com/primer/octicons/blob/main/LICENSE で確認できます。
Octicons の作者は?
Octicons の作者は GitHub です。
Octicons を React で使うには?
@iconify/react をインストールして <Icon icon="octicon:alert-24" /> を描画するか、このページのアイコンを開いて単体の React コンポーネントとしてコピーしてください。