ICONYZ
日本語

Codicons

codicon · 654 個のアイコン · 作者: Microsoft Corporation · CC-BY-4.0 · 単色 · 更新日

Codicons は、654 個の SVG アイコンを収録した無料のオープンソースアイコンセットです(作者: Microsoft Corporation)。CC BY 4.0 ライセンス で公開されています。アイコンは単色で、テキストの色(currentColor)に合わせて表示され、CSS で色を変更できます。

Codicons のデザイン仕様

  • 塗りつぶし
  • モノクロ

SVG ファイルから計測した、このセットの描画ルールです。セットに合う新しいアイコンをデザインする際に使えます。

キャンバス24 × 24
viewBox0 0 24 24
描画領域22 × 22、余白 1
描画スタイル塗りつぶし図形
角の半径0.5
色単色(currentColor)、CSS で色を変更可能
座標小数点以下最大 3 桁
直線水平・垂直 69%、45° 14%
曲線描画コマンドの 56%
対称性アイコンの 24% が左右対称
アイコンあたりの要素数1.1
アイコンあたりの描画コマンド数30

このセットのアイコン 63 個から計測しました。

AI によるアイコン生成

ライセンス上、このセットをもとにした新しいアイコンを作成できます。

  • オリジナルの作者をクレジット表記してください。

クレジット表記: Based on Codicons by Microsoft Corporation, licensed under CC BY 4.0. https://github.com/microsoft/vscode-codicons/blob/main/LICENSE

LLM プロンプト用スタイルガイド(英語)

このセットのアイコンをいくつか添えてプロンプトに貼り付け、欲しいアイコンを指定してください。

You draw new icons for the "Codicons" icon set (Iconify prefix "codicon") by Microsoft Corporation.
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 22x22 live area: about 1 unit of padding on every side (never less than 0).
- A typical icon's bounding box covers 34% of the canvas.

Drawing
- Filled icons: draw closed filled shapes; don't use strokes.
- Round corners with a radius of about 0.5.

Geometry
- Coordinates are free-form; write at most 3 decimals.
- Straight lines: 69% horizontal or vertical, 14% at 45 degrees.
- About 56% of drawing commands are curves or arcs.
- Keep it simple: about 1 element and 30 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).
1 / 7 ページ

Codicons について

人気の Codicons には account、bell dot、new file、split vertical、debug pause、color mode などがあります。

アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS としてコピーしたり、SVG や PNG でダウンロードしたりできます。 Codicons は CC BY 4.0 ライセンス で公開されています。作者のクレジットを表記すれば、個人・商用プロジェクトで利用できます。

Codicons の使い方

このページのアイコンはどのフレームワークでも使えます。例では codicon:account を使っています。アイコンを開くと、SVG・JSX・Vue・Svelte・Solid・Astro・CSS の正確なコードをコピーできます。 サイズ、色、アクセシビリティのコツは次のガイドをご覧ください: SVG アイコンの使い方.

React

import { Icon } from "@iconify/react";

<Icon icon="codicon:account" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="codicon:account" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="codicon:account" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--account]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:account"></div>

Web コンポーネント

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="codicon:account"></iconify-icon>

HTML 画像

<img src="https://iconyz.com/api/public/svg/codicon/account.svg" alt="Account アイコン" width="24" height="24">

Codicons のよくある質問

Codicons は商用利用できますか?

はい。Codicons は CC BY 4.0 ライセンス で公開されています。作者のクレジットを表記すれば、個人・商用プロジェクトで利用できます。

Codicons にはアイコンがいくつありますか?

Codicons には 654 個のアイコンがあります。

Codicons のライセンスは何ですか?

Codicons のライセンスは CC BY 4.0 です。ライセンスの全文は https://github.com/microsoft/vscode-codicons/blob/main/LICENSE で確認できます。

Codicons の作者は?

Codicons の作者は Microsoft Corporation です。

Codicons を React で使うには?

@iconify/react をインストールして <Icon icon="codicon:account" /> を描画するか、このページのアイコンを開いて単体の React コンポーネントとしてコピーしてください。

似ているアイコンセット