Gridicons
gridicons · 207 個のアイコン · 作者: Automattic · GPL-2.0-only · 単色 · 24px グリッド · 更新日
Gridicons は、207 個の SVG アイコンを収録した無料のオープンソースアイコンセットです(作者: Automattic)。GPL 2.0 ライセンス で公開されています。アイコンは単色で、テキストの色(currentColor)に合わせて表示され、CSS で色を変更できます。24px グリッドでデザインされており、SVG なのできれいに拡大・縮小できます。
Gridicons のデザイン仕様
- 塗りつぶし
- モノクロ
SVG ファイルから計測した、このセットの描画ルールです。セットに合う新しいアイコンをデザインする際に使えます。
| キャンバス | 24 × 24 |
|---|---|
| viewBox | 0 0 24 24 |
| 描画領域 | 18.02 × 18.02、余白 2.99 |
| 描画スタイル | 塗りつぶし図形 |
| 角の半径 | 2 |
| 色 | 単色(currentColor)、CSS で色を変更可能 |
| 座標 | 小数点以下最大 3 桁 |
| 直線 | 水平・垂直 73%、45° 13% |
| 曲線 | 描画コマンドの 40% |
| 対称性 | アイコンの 29% が左右対称 |
| アイコンあたりの要素数 | 1.1 |
| アイコンあたりの描画コマンド数 | 22 |
このセットのアイコン 62 個から計測しました。
AI によるアイコン生成
ライセンス上、このセットをもとにした新しいアイコンを作成できます。
- オリジナルの作者をクレジット表記してください。
- 派生アイコンは同じライセンス(GPL-2.0-only)で公開してください。
クレジット表記: Based on Gridicons by Automattic, licensed under GPL 2.0. https://github.com/Automattic/gridicons/blob/trunk/LICENSE.md
LLM プロンプト用スタイルガイド(英語)
このセットのアイコンをいくつか添えてプロンプトに貼り付け、欲しいアイコンを指定してください。
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.Gridicons について
人気の Gridicons には code、multiple users、types、dropdown、filter、offline などがあります。
アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS としてコピーしたり、SVG や PNG でダウンロードしたりできます。 Gridicons は GPL 2.0 ライセンス で公開されており、個人・商用プロジェクトで利用できます。ただし、アイコンファイルを改変した場合は同じライセンスを維持する必要があります。
Gridicons の使い方
このページのアイコンはどのフレームワークでも使えます。例では gridicons:code を使っています。アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS の正確なコードをコピーできます。 サイズ、色、アクセシビリティのコツは次のガイドをご覧ください: SVG アイコンの使い方.
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 コンポーネント
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="gridicons:code"></iconify-icon>HTML 画像
<img src="https://iconyz.com/api/public/svg/gridicons/code.svg" alt="Code アイコン" width="24" height="24">Gridicons のよくある質問
Gridicons は商用利用できますか?
はい。Gridicons は GPL 2.0 ライセンス で公開されており、個人・商用プロジェクトで利用できます。ただし、アイコンファイルを改変した場合は同じライセンスを維持する必要があります。
Gridicons にはアイコンがいくつありますか?
Gridicons には 207 個のアイコンがあります。
Gridicons のライセンスは何ですか?
Gridicons のライセンスは GPL 2.0 です。ライセンスの全文は https://github.com/Automattic/gridicons/blob/trunk/LICENSE.md で確認できます。
Gridicons の作者は?
Gridicons の作者は Automattic です。
Gridicons を React で使うには?
@iconify/react をインストールして <Icon icon="gridicons:code" /> を描画するか、このページのアイコンを開いて単体の React コンポーネントとしてコピーしてください。
Gridicons のサイズは?
Gridicons は 24px グリッドでデザインされています。SVG なので、どのサイズに拡大・縮小しても画質が落ちません。