HeroIcons
heroicons · 1,288 個のアイコン · 作者: Refactoring UI Inc · MIT · 単色 · 更新日
HeroIcons は、1,288 個の SVG アイコンを収録した無料のオープンソースアイコンセットです(作者: Refactoring UI Inc)。MIT ライセンス で公開されています。アイコンは単色で、テキストの色(currentColor)に合わせて表示され、CSS で色を変更できます。
HeroIcons のデザイン仕様
- アウトラインと塗り
- モノクロ
- 角丸
SVG ファイルから計測した、このセットの描画ルールです。セットに合う新しいアイコンをデザインする際に使えます。
| キャンバス | 24 × 24 · アイコンの 54% |
|---|---|
| viewBox | 0 0 24 24 |
| 描画領域 | 20.24 × 20.24、余白 1.88 |
| 描画スタイル | アウトラインと塗りの混在 |
| 線幅 | 1.5 |
| 線端 | 丸 |
| 線の結合 | 丸 |
| 角の半径 | 0.75 |
| 色 | 単色(currentColor)、CSS で色を変更可能 |
| 座標 | 小数点以下最大 3 桁 |
| 直線 | 水平・垂直 63%、45° 15% |
| 曲線 | 描画コマンドの 56% |
| 対称性 | アイコンの 25% が左右対称 |
| アイコンあたりの要素数 | 1.1 |
| アイコンあたりの描画コマンド数 | 20 |
このセットのアイコン 63 個から計測しました。
AI によるアイコン生成
ライセンス上、このセットをもとにした新しいアイコンを作成できます。
- オリジナルの作者をクレジット表記してください。
クレジット表記: Based on HeroIcons by Refactoring UI Inc, licensed under MIT. https://github.com/tailwindlabs/heroicons/blob/master/LICENSE
LLM プロンプト用スタイルガイド(英語)
このセットのアイコンをいくつか添えてプロンプトに貼り付け、欲しいアイコンを指定してください。
You draw new icons for the "HeroIcons" icon set (Iconify prefix "heroicons") by Refactoring UI Inc.
Style: mixed outline and fill, monochrome, rounded.
Iconify describes the set as: Has Padding.
Canvas
- Root: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">.
- Keep the drawing inside a 20.24x20.24 live area: about 1.88 units of padding on every side (never less than 1).
- A typical icon's bounding box covers 64% of the canvas.
Drawing
- Icons mix strokes and filled shapes (fill 65%, stroke 35%).
- stroke-width="1.5".
- stroke-linecap="round", stroke-linejoin="round".
- Use fill-rule="evenodd" for holes.
- 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 56% of drawing commands are curves or arcs.
- Keep it simple: about 1 element and 20 drawing commands per icon.
- Elements used by the set: path, g.
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).HeroIcons について
人気の HeroIcons には camera、building library、receipt refund、bookmark、cloud、folder などがあります。
アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS としてコピーしたり、SVG や PNG でダウンロードしたりできます。 HeroIcons は MIT ライセンス で公開されており、個人・商用プロジェクトで利用できます。
HeroIcons の使い方
このページのアイコンはどのフレームワークでも使えます。例では heroicons:camera を使っています。アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS の正確なコードをコピーできます。 サイズ、色、アクセシビリティのコツは次のガイドをご覧ください: SVG アイコンの使い方.
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:camera" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:camera" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:camera" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--camera]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:camera"></div>Web コンポーネント
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:camera"></iconify-icon>HTML 画像
<img src="https://iconyz.com/api/public/svg/heroicons/camera.svg" alt="Camera アイコン" width="24" height="24">HeroIcons のよくある質問
HeroIcons は商用利用できますか?
はい。HeroIcons は MIT ライセンス で公開されており、個人・商用プロジェクトで利用できます。
HeroIcons にはアイコンがいくつありますか?
HeroIcons には 1,288 個のアイコンがあります。
HeroIcons のライセンスは何ですか?
HeroIcons のライセンスは MIT です。ライセンスの全文は https://github.com/tailwindlabs/heroicons/blob/master/LICENSE で確認できます。
HeroIcons の作者は?
HeroIcons の作者は Refactoring UI Inc です。
HeroIcons を React で使うには?
@iconify/react をインストールして <Icon icon="heroicons:camera" /> を描画するか、このページのアイコンを開いて単体の React コンポーネントとしてコピーしてください。