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: 2 months ago
JSON representation
a collection of macros for tabler icons used for flask
- Host: GitHub
- URL: https://github.com/lixxu/flask-tabler-icons
- Owner: lixxu
- License: bsd-3-clause
- Created: 2023-11-27T10:42:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-27T07:51:23.000Z (6 months ago)
- Last Synced: 2026-01-27T20:29:29.997Z (6 months ago)
- Topics: taber-icons
- Language: HTML
- Homepage:
- Size: 2.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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") }}
```