Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lixxu/flask-tabler-icons

a collection of macros for tabler icons used for flask
https://github.com/lixxu/flask-tabler-icons

taber-icons

Last synced: 26 days ago
JSON representation

a collection of macros for tabler icons used for flask

Awesome Lists containing this project

README

        

# flask-tabler-icons

flask-tabler-icons is a collection of Jinja macros for [tabler-icons](https://tabler-icons.io/) and Flask.

## Installation

```bash
pip install -U flask-tabler-icons
```

## Example (check examples folder for details)

Register the extension:

```python
from flask import Flask
from flask_tabler_icons import TablerIcons

app = Flask(__name__)
tabler_icons = TablerIcons(app)
```

```html

{% from "tabler_icons/helper.html" import render_icon %}




.custom-css {
color: red;
}



tabler icon


{{ render_icon("helicopter", class="custom-css") }}
{{ render_icon("helicopter", animation="pulse", color="blue") }}
{{ render_icon("helicopter", animation="tada", color="blue") }}
{{ render_icon("helicopter", animation="rotate", color="blue") }}

```