folio-icons

Update Folio icon sets by normalizing colors and regenerating sprites.

10|2|Updated Jul 10, 2017
One-click install
npx skills add https://github.com/sinfin/folio --skill folio-icons
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: folio-icons
Source: https://github.com/sinfin/folio/tree/main/.skills/folio-icons
Command: npx skills add https://github.com/sinfin/folio --skill folio-icons

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the process of updating and adding icons to the Folio engine or a Folio-hosted app icon set, providing a structured workflow for integrating new SVG icons into the existing system.

Core Features & Use Cases

  • Icon Addition: Add new SVG icons to the icon set for Folio engine or host apps.
  • Color Normalization: Normalize the color of icons for consistency across themes.
  • Automated Generation: Use scripts to automatically regenerate sprites and metadata without manual intervention.
  • Use Case: When you need to update a shared set of UI icons in a Folio application, use this Skill to quickly export SVGs from Figma, import them, normalize the colors, regenerate the sprite, and restart the Rails server for the changes to take effect.

Quick Start

Update the 'new_icon.svg' in the 'data/icons' directory and run 'bin/icons'. Restart the Rails server to see the updated icon set.

Frequently Asked Questions about folio-icons

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new SVG icons to a Rails application?

To add new SVG icons to a Rails application, update the icon files in your data directory and run an icon generation script. This automates sprite regeneration and metadata updates, requiring a Rails server restart for the new icons to appear.

Why does my Rails SVG icon sprite not update after adding files?

Your Rails SVG icon sprite might not update because the application requires a server restart. After adding new SVG files and running the icon script, you must manually restart the Rails server for the regenerated sprite and metadata to take effect.

How do I normalize SVG icon colors for consistent UI themes?

To normalize SVG icon colors for consistent UI themes, use an automated icon management script. This process standardizes the color attributes across your SVG files during the sprite and metadata regeneration workflow.

What is the best way to manage a shared icon set in a Folio application?

The best way to manage a shared icon set in a Folio application is using an automated script to handle icon addition, color normalization, and sprite generation. This provides a structured workflow for integrating new SVG icons consistently across the engine.

Do I need to manually edit SVG files when updating a Folio icon set?

Yes, you need to manually place or update the SVG files in the designated data directory. While the generation script automates sprite creation and color normalization, the initial SVG file operations and a Rails server restart are required manual steps.