add-icon

This skill guides you through adding a new icon from Tabler Icons to the project.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "add-icon" with this command: npx skills add arto-app/arto/arto-app-arto-add-icon

Add Icon Skill

This skill guides you through adding a new icon from Tabler Icons to the project.

Process

Icons are managed via icons.json and automatically built by Vite plugin.

Steps

Choose Icon

Add to icons.json

  • Edit renderer/icons.json

  • Add the icon name to the JSON array (in alphabetical order)

Build Icon Sprite (Automatic)

  • Icon sprite is automatically generated when Vite builds

  • Just run just dev or cargo build

Add Rust Enum Variant

  • Edit desktop/src/components/icon.rs

  • Add variant to IconName enum (use PascalCase)

  • Add case to Display implementation

Example

renderer/icons.json:

[ "folder", "folder-open", "file" ]

desktop/src/components/icon.rs:

pub enum IconName { Folder, FolderOpen, File, }

impl std::fmt::Display for IconName { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { IconName::Folder => write!(f, "folder"), IconName::FolderOpen => write!(f, "folder-open"), IconName::File => write!(f, "file"), } } }

File Locations

File Purpose Git Tracked

renderer/icons.json

Icon list configuration ✅ Yes

renderer/vite.config.ts

Icon sprite plugin ✅ Yes

renderer/public/icons/tabler-sprite.svg

Generated sprite (Vite source) ❌ No

assets/dist/icons/tabler-sprite.svg

Build output (Dioxus asset) ❌ No

Important

  • NEVER edit generated SVG files directly

  • The assets/dist/ directory is .gitignore d as build output

  • Icon sprite generation is automatic via Vite plugin (buildStart hook)

  • Rust code references icons via asset!("/assets/dist/icons/tabler-sprite.svg")

  • Icons come from @tabler/icons npm package (outline style only)

Build Process

icons.json ↓ Vite plugin (buildStart hook) ↓ renderer/public/icons/tabler-sprite.svg ↓ Vite build ↓ assets/dist/icons/tabler-sprite.svg ↓ Rust asset!() macro

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

add-icon

No summary provided by upstream source.

Repository SourceNeeds Review
25-wei
General

OpenClaw Windows WSL2 Install Guide

Complete step-by-step installation guide for OpenClaw on Windows 10/11 with WSL2, includes common pitfalls and solutions from real installation experience.

Registry SourceRecently Updated
General

Package Version Tracker

查询 npm 和 PyPI 包的版本信息、历史发布及依赖,支持版本比较和批量查询,响应快速无须 API key。

Registry SourceRecently Updated
General

Pinboard Manager

Use this skill for ALL Pinboard bookmark management tasks — this is the go-to skill whenever Pinboard (pinboard.in) is involved. Invoke immediately when the...

Registry SourceRecently Updated