Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lixxu/flask-tabler-icons
- Owner: lixxu
- License: bsd-3-clause
- Created: 2023-11-27T10:42:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-19T14:45:20.000Z (9 months ago)
- Last Synced: 2024-03-20T14:58:01.297Z (9 months ago)
- Topics: taber-icons
- Language: HTML
- Homepage:
- Size: 300 KB
- 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 TablerIconsapp = 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") }}
```