Skip to content
Proyectos

Acerca de

Una habilidad para agentes que crea iconos animados con un estilo uniforme para Claude Code, Codex y otros agentes de programación. Incluye más de 2.600 iconos de código abierto para React, Vue y SVG, además de un sitio web para explorarlos.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+10
in 7 days
+313
in 15 days
+697
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Kubai Icons

An agent skill that draws animated icons in one consistent style.
Plus 5,300+ open-source icons drawn with it, for React, Vue, Svelte, Solid, SwiftUI and plain JavaScript.

Install the skill · Browse the icons · Use them in code · Docs

Sixteen icons opening one after another on hover: a folder opens, an envelope unseals, a calendar turns a page, a lock springs open, a gear turns

What's included

Part What you get
Agent skill The rules, engine and self-check that draw every icon in one hand. Give Claude Code, Codex or another coding agent a product, and it draws the icons that product needs.
Icon library 5,300+ icons in three styles: over 1,500 objects, plus badged and slashed "off" versions. For React, Vue, Svelte, Solid, SwiftUI, plain JavaScript, web components and static SVG. MIT licensed.
Website icons.kubai.design, in 16 languages. Search every icon by name, shape or meaning, recolor it, copy its code or a prompt for your agent, download it as SVG or PNG, and save a collection as a ZIP.

Install the skill

Copy this into your agent and send it:

Install the Kubai Icons skill for me:
clone https://github.com/kubai087/kubai-icons into your skills folder as kubai-icons
(~/.claude/skills in Claude Code, ~/.agents/skills in Codex;
if it's already there, pull the latest version instead),
make sure SKILL.md exists in that folder, and tell me when it's ready.

Restart your agent, and the skill is ready. An agent without skill support can read SKILL.md from the cloned folder and follow it.

[!TIP] The skill asks for careful geometry and several rounds of looking at its own screenshots, so use a capable model that can read images. It was developed and blind-tested with Claude Opus 5.5, which we recommend. Other models, such as GPT in Codex, can use the same skill. In Claude Code, run claude --model claude-opus-5-5.

Install it yourself

Clone the repository into your skills folder. In Codex, use ~/.agents/skills instead.

git clone https://github.com/kubai087/kubai-icons.git ~/.claude/skills/kubai-icons

Or download kubai-icons-v*.zip from the skill release and unzip it there:

unzip kubai-icons-v*.zip -d ~/.claude/skills/

The agent picks the skill up the next time it starts.

Publishing to a skill marketplace that asks for a version and display names in SKILL.md? Upload kubai-icons-v*-platform.zip from the same release. It carries those fields at the top of the frontmatter.

Ask for icons

Describe what you need in plain words. The skill triggers on requests about icons, so you don't need to name it.

  • "Read this repository and draw dynamic icons for its main features."
  • "Add a scissors icon and a map icon to this set."
  • "We need an icon for Export that matches the others."
  • "Give me static SVG files I can drop into Figma."
  • "Draw two-tone solid icons for our app's tab bar."
  • "Draw line icons for our toolbar, at a stroke width of 1.5."

The agent then:

  1. Reads the rules and writes one line per feature: an everyday object and what it does on hover ("a folder opens", "a lock springs open").
  2. Draws each icon after the closest existing one, reusing the engine.
  3. Runs the self-check beside existing icons, compares sizes, outlines, layers and colors, and repeats until every item on the checklist passes.

To start a set for your own product, the skill copies the engine, gallery and self-check into your project and works there.

Three styles

The skill draws in any of three styles and asks when your request doesn't make it clear.

Style Looks Delivers Rules
Layered (default) Folder-like back and front pieces, outside outlines, shadows, hover motion Animated SVG + JS, or static SVG PROMPT.md
Two-tone solid Solid shapes on a 16 grid: a light body with accents in the brand colour; lively hover motion that acts out what the icon means Static SVG, or SVG + JS for the motion styles/duotone/, also released on its own as the kubai-duotone skill
Line Rounded strokes on a 24 grid whose width follows the text weight (0.5 to 3); four variants from one drawing (line, line two-tone, solid, solid tint); hover motion that acts out what the icon means Static SVG, or SVG + JS for the motion styles/line/, also released on its own as the kubai-line skill

Five hundred and two two-tone solid icons, from a folder, a calendar and a camera to home, search, settings, a star, a paper plane, a map, a crown, a plane, line and funnel charts, status marks in circles, a database, wifi and a store, and variants with a plus, a check, a sparkle or an off slash

Ask for "solid", "filled", "two-tone" or "duotone" icons, or small icons for an app's interface, and the skill uses the two-tone style.

Five hundred line icons in blue, from a check, a cross, search, settings and a star to arrows, text formatting, files and folders, mail, chat, people, locks, devices, media controls, charts, money, clocks, weather, nature, home, food, maps, transport, tools, code, science, health and basic shapes

Ask for "line", "outline" or "stroke" icons, icons in the manner of SF Symbols, or a stroke width that matches your text, and the skill uses the line style.

Six icons on hover: an alarm clock rings, a notebook opens, a scan line sweeps a QR code, a door opens to an exit arrow, a calculator key presses, a compass needle settles north

Drawn by a fresh Claude session that had nothing but SKILL.md and PROMPT.md. Each blind test closes the gaps it finds in the rules.

Use the icons

Package For
kubai-icons-react React 18+ and Next.js, server rendering included
kubai-icons-vue Vue 3 and Nuxt
kubai-icons-svelte Svelte 5.20+ and SvelteKit
kubai-icons-solid Solid 1.9+ and SolidStart
kubai-icons Any page: a framework-free API and the <kubai-icon> web component
kubai-icons-static Standalone SVG files for <img>, design tools and CDNs (for Apple apps, use the Swift package below)
KubaiIcons (Swift Package) SwiftUI on iOS, macOS, visionOS, tvOS and watchOS: every style, drawn and animated natively
npm i kubai-icons-react
import { Folder, CalendarCheck } from "kubai-icons-react";

// 24px, follows the text color
<Folder />

// Any CSS color, the soft look, a green badge
<CalendarCheck size={32} color="#22C55E" variant="soft" badgeColor="semantic" />

// Plays when the button is hovered
<button data-kubai-trigger>
  <Folder size={18} trigger="parent" /> Open
</button>

No build step? One script tag loads any icon on demand:

<script type="module" src="https://cdn.jsdelivr.net/npm/kubai-icons@0/dist/cdn/element.js"></script>
<kubai-icon name="folder-plus" size="32" color="#6366F1"></kubai-icon>
  • Moves like the object. A folder opens, an envelope unseals, a calendar turns to the next day. Hover, focus, a tap, a parent element or your own state can play it.
  • One accent, every color. Gradients, outlines, marks and shadows derive from one color through CSS, so icons follow currentColor and recolor without script.
  • Pay for what you use. One side-effect-free ES module per icon, pre-rendered markup, server rendering, and a tiny runtime that only runs while an icon moves.

Sharp on 1x screens

High-density screens show every size sharply. On 1x screens, where one CSS pixel is one device pixel, three choices keep edges crisp:

  • Line icons at 24px. They are drawn on a 24 grid, so at 24px with the default stroke width their straight strokes land on whole pixels. At 16 and 20px the strokes fall between pixels and look softer.
  • Layered icons at 20px and up. Icons with many small parts, such as dashed routes, lose their detail at 16px.
  • No fractional transforms on the icon or its parents. Layout (flexbox, grid, margins) is snapped to whole pixels, but transforms are not: translate(-50%) on an odd-sized box, scale(), or a transition that stops between pixels leaves the icon on a half pixel. A 24px line icon moved half a pixel this way loses about a third of its fully solid pixels. Center icons with flexbox, grid or margins instead.

Find an icon and copy its code on the website. Guides for every package are in the documentation.

Using Iconify? The line and two-tone icons are on Iconify as kubai-line and kubai-duotone, updated after each release, and in Iconify's plugin for Figma. They are static; the packages above add the motion. The Iconify guide covers the components, Tailwind CSS, UnoCSS, the Iconify API and the Figma plugin.

Building a native app in Go? Kubai Icons for MyGo is a community port for MyGo, maintained by yldm-tech rather than this project.

How an icon is built

Every icon is a back piece, optional white content and a front piece, like a folder holding a sheet of paper. Outlines sit outside the fill, so shapes keep their full size. Every gradient, outline and shadow derives from one accent color, so a single value repaints the whole icon. Each part has exactly two keyframes, rest and hover.

Eight icons moving through seven palettes: one color per icon, five clear tones, and black

The complete rules are in PROMPT.md.

Reference

What the skill ships
Part What it does for the model
PROMPT.md The rules, each one a hard requirement: canvas and keylines, layers, corners and outlines, light, color, marks and motion.
src/engine.js Color derivation, outside outlines, gradients, shadows, interpolation and palettes, already built. New icons reuse them instead of reinventing them.
src/icons.js 66 worked examples. Each new icon starts from the closest one in structure.
scripts/check.mjs A headless self-check: rest, hover, every moment in between, 24px, 28px and every palette, plus a list of findings against the rules that can be measured (scripts/measure.js).

index.html opens a local gallery of these 66 examples. The full library is on the website.

Export static SVG

This exports the skill's own icons, whose names and palettes are in Chinese. For the library, download from the website or use kubai-icons-static.

node scripts/export.mjs --only 文件夹,日历 --palette 薄荷 --out icons/
Option What it does
--palette 彩色 (default), 蓝灰, 青瓷, 薄荷, 薰衣草, 杏色 or 黑色.
--accent #hex Paints every icon in one accent color.
--state hover Exports the end of the hover instead of the rest pose.
--size 96 Width and height in pixels.
--pad 2.5 Room around the canvas, in icon units, so the shadow isn't cut off.
--out dir Where the files go; export/ by default.
Two-tone solid style

Everything for this style is in styles/duotone/: the rules, the geometry kit, 802 examples with their hover motion (44 of them variants with a badge: plus, minus, check, x, sparkle or an off slash), a self-check and an export script. Names are in English. CHANGELOG.md records each change and the problem behind it.

It is also a skill of its own, kubai-duotone. To install only this style, download kubai-duotone-v*.zip from the skill release and unzip it into your skills folder:

unzip kubai-duotone-v*.zip -d ~/.claude/skills/

With the whole repository installed as kubai-icons, you don't need it: that skill sends two-tone requests to the same files.

node styles/duotone/check.mjs --only mail --with folder,lock     # sheets and findings.md in styles/duotone/check-out/
node styles/duotone/export.mjs --only folder,lock --size 24 --out icons/
node styles/duotone/export.mjs --primary #0EA5E9 --out icons/   # another brand colour; the light tone follows it

The self-check measures what the rules can measure: whether each icon fills its keyline, how much of it is the primary colour, whether it uses both tones, and whether neighbouring parts touch or keep a gap of exactly 1.

Line style

Everything for this style is in styles/line/: the rules, the geometry kit, 1,438 examples with their hover motion, the four variants, a self-check and an export script. Names are in English. CATALOG.md lists the icons with the Kubai Icons and SF Symbols names they match, and CHANGELOG.md records each change and the problem behind it.

It is also a skill of its own, kubai-line. To install only this style, download kubai-line-v*.zip from the skill release and unzip it into your skills folder:

unzip kubai-line-v*.zip -d ~/.claude/skills/

With the whole repository installed as kubai-icons, you don't need it: that skill sends line requests to the same files.

node styles/line/check.mjs --only lock --out check-out/lock    # sheets and findings.md
node styles/line/export.mjs --only lock,camera --stroke 1.5 --out icons/
node styles/line/export.mjs --variant line-duo --color #0EA5E9 --out icons/   # the light tone follows the colour

The self-check draws every icon at each stroke width from 1.5 to 2.5 and measures what the rules can measure: the keyline it fills, the canvas, gaps between parts, how much ink each part carries, stroke widths, whether straight edges fall on whole pixels at the regular width, the optical centre, and whether the motion leaves the canvas.

Run the self-check

Needs Node.js 18 or later and Chrome. Everything runs headless.

node scripts/check.mjs --only 剪刀,地图 --with 文件夹,邮件,下载
Option What it does
--only Checks only these icons. Without it, the whole set.
--with Adds existing icons beside them for comparison.
--accent #F59E0B Paints every icon in one accent color, to check marks on light accents.
--scale 3 Renders every sheet at 3×, to look for seams.
--out dir Writes the screenshots somewhere other than check-out/.

Besides the screenshots it writes findings.md: each icon measured against the rules that can be measured, such as motion that stops dead or jumps, size and centring, line widths, thin gaps, outlines that peek out or meet in a spike, and edges with no outline. Each finding points at a likely problem to confirm on the screenshots.

CHROME overrides the browser path. The animations in this README come from node scripts/media.mjs, which also needs ffmpeg and img2webp.

Work on the library and website

Needs Node.js 20 or later; the contact sheets also need Chrome.

npm install
npm run build        # every package, from icons/ and badges/
npm run validate     # names, metadata and markup of every icon
npm test
node tools/check.mjs --only folder,mail --with download   # contact sheets in check-out/lib
npm run audit        # scores every icon against the rules, in check-out/audit
npm run site:dev     # the website

Each icon is one module in icons/; docs/authoring.md explains the format, and docs/review.md how icons are reviewed. The website is a static Next.js export in site/.

Contributing

  • Improve the skill. Report a rule that left you guessing, run a blind test with a fresh session, or fix a script. Rule changes start from an issue.
  • Add an icon. Draw it with the skill or by hand as a module in icons/, check it with tools/check.mjs, and open a pull request. Merged icons are credited to you on the website.
  • Submit an icon without a pull request. The submission page checks your files and prepares an issue.
  • Request an icon. Open an icon request with the object and what it should do on hover.

See CONTRIBUTING.md and the code of conduct. Security issues go through SECURITY.md.

Contributors

Thanks to everyone who has contributed code:

License

Part License In short
Icons (icons/, badges/) and the icon packages MIT Use, change and redistribute them in any project, commercial or not.
The skill Kubai Icons License Source-available. See below.
Website (site/, tools/, tests/, docs/) All rights reserved You may read the source and run it to prepare a contribution, but not copy or host it.

Under the Kubai Icons License:

  • Your icons are yours. Icons you make with the skill belong to you, for any use including commercial, with no credit required.
  • Ship the engine with them. You may copy the engine, the gallery, the example icons and the self-check into your own icon set's project, change them, and ship that project, as long as the copyright notice at the top of each file stays.
  • Use and share the skill freely. You may run it for any work, change it for your own use, and share exact, unmodified copies for free.
  • Don't republish it as something else. Don't distribute a modified or translated version of the rules (PROMPT.md, SKILL.md), sell the skill, remove its notices, or present it under another name or as your own work.

LICENSING.md lists which file falls under which license. The Kubai and Lumno names and logos are not licensed for reuse. The construction comes from the bookmark folder icon in Lumno.

Explorar proyectos relacionados

Cargando…