Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/openpeeps/iconim

🎁 SVG Icon library manager for server-side rendering. 👑 Written in Nim language
https://github.com/openpeeps/iconim

icon-library icons icons-manager nim nim-language server-side-rendering svg svg-icons svg-library

Last synced: 11 days ago
JSON representation

🎁 SVG Icon library manager for server-side rendering. 👑 Written in Nim language

Awesome Lists containing this project

README

        




🎁 SVG icon library manager for server-side rendering.
👑 Written in Nim language


nimble install iconim


API reference

Github Actions Github Actions

## 😍 Key Features
- [x] Manage multiple SVG libraries
- [x] Auto-discover libraries
- [x] Change `XMLAttributes` on the fly
- [x] Open Source | `MIT` License
- [x] Written in 👑 Nim language

## Examples
In this example we'll use [Feather Icons](https://feathericons.com/)

```nim
# initialize
init("../examples", default = "feather", stripAttrs = @["class"])

# render icons
echo icon("activity")
# once rendered, will be stored in a hash table.

# change size on the fly
echo icon("calendar").size(48)
```

`TODO` handle custom `XMLAttributes`

### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeep/iconim/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeep/iconim/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)

### 🎩 License
Iconim | MIT license. [Made by Humans from OpenPeep](https://github.com/openpeep).

Copyright © 2023 OpenPeep & Contributors — All rights reserved.