simple-icons-pack

Crates.iosimple-icons-pack
lib.rssimple-icons-pack
version15.15.0
created_at2025-09-01 11:54:34.561207+00
updated_at2025-09-15 12:05:25.798786+00
descriptionA redistribution of simple-icons npm package's SVG and metadata.
homepage
repositoryhttps://github.com/2bndy5/redist-icons
max_upload_size
id1819466
size6,208,324
Brendan (2bndy5)

documentation

README

simple-icons-pack

Crates.io Version MSRV PyPI - Version Min Py

A redistribution of SVG assets and some metadata from the simple-icons npm package.

Optimized SVG data

The SVG data is embedded as strings after it is optimized with SVGO. This package is intended to easily inject SVG data into HTML documents. Thus, we have stripped any width and height fields from the <svg> element, while retaining any viewBox field in the <svg> element.

Usage

All icons are instantiated as constants using the Icon data structure. There is a convenient get_icon() function to fetch an icon using it's slug name.

In Python

from simple_icons_pack import get_icon, SI_GITHUB

fetched = get_icon("github")
assert fetched is not None
assert SI_GITHUB.svg == fetched.svg

In Rust

use simple_icons_pack::{get_icon, SI_GITHUB};

assert_eq!(SI_GITHUB.svg, get_icon("github").unwrap().svg);
Commit count: 18

cargo fmt