icon-fluent

Version, currently main branch1 version
  • main branchlatestOct 22, 2026

github.com/kojix2/icon-fluent

No description declared in shard.yml.

0 stars
1 dependent
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  icon-fluent:
    github: kojix2/icon-fluent
    branch: main

main is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT

Dependencies

Runtime Dependencies

README

icon-fluent

Fluent UI System Icons as pre-rendered CrImage constants for Crystal. Images use the size in each SVG filename.

dependencies:
  icon-fluent:
    github: kojix2/icon-fluent
require "icon-fluent"

icon = Icon::Fluent::Add20Filled

Includes every upstream SVG: regular, filled, light, and color, including language and direction variants. Names follow the SVG filenames, size, and style. Use require "icon-fluent/20_filled" to load one size and style. PNG data lives in src/data/*.tsv and is loaded by a Crystal macro. Constants are shared, mutable images; copy before editing. Source colors and transparency are retained.

Regenerate

Requires Python 3, librsvg, Cairo, and a ZIP of the upstream repository.

python3 scripts/generate.py /path/to/fluentui-system-icons.zip
python3 scripts/generate.py /path/to/fluentui-system-icons.zip --check

If upstream adds a new size or style, add its src/<group>.cr wrapper and require it from src/icon-fluent.cr.

MIT: shard, upstream icons and notice.