Skip to main content

Tabler UI theme for Flask-Admin

Project description

flask-admin-tabler

A Tabler UI theme for Flask-Admin.

Installation

pip install flask-admin-tabler

Usage

Call theme.init_app(app) before creating the Admin instance so that the Tabler templates are registered with higher priority than Flask-Admin's default Bootstrap ones.

from flask import Flask
from flask_admin import Admin
from flask_admin_tabler import TablerTheme

app = Flask(__name__)
app.config["SECRET_KEY"] = "change-me"

theme = TablerTheme()
theme.init_app(app)          # must come before Admin(app, ...)

admin = Admin(app, name="My App", theme=theme)

That's it — navigating to /admin/ will now render the Tabler UI instead of the default Bootswatch theme.

A fully runnable example (including a SQLAlchemy model and sample data) is available in examples/quickstart.py:

pip install flask-admin-tabler flask-sqlalchemy
python examples/quickstart.py
# open http://127.0.0.1:5000/admin/

How it works

TablerTheme.init_app(app) registers a Flask blueprint named flask_admin_tabler that:

  1. Templates — exposes flask_admin_tabler/templates/tabler/ as a template folder. Because this blueprint is registered before Flask-Admin's admin blueprint, Flask resolves admin/base.html (and all other admin templates) from here first.
  2. Static files — serves the small amount of theme-specific CSS (e.g. admin/css/tabler/admin.css) at /static/flask_admin_tabler/.

Tabler's core CSS and JS are loaded from the jsDelivr CDN — no local copies needed.

Requirements

  • Python ≥ 3.10
  • flask-admin ≥ 2.0.2

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_admin_tabler-2026.2.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flask_admin_tabler-2026.2.1-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file flask_admin_tabler-2026.2.1.tar.gz.

File metadata

  • Download URL: flask_admin_tabler-2026.2.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.10.6 Linux/6.8.0-100-generic

File hashes

Hashes for flask_admin_tabler-2026.2.1.tar.gz
Algorithm Hash digest
SHA256 3bd3f64c0c0774d3bea7cd4cbbee8bf77a15a755340f5af5cb224736ffa8aa0e
MD5 cc0662d8185c728332d8d8e335f8bf3f
BLAKE2b-256 742d5398e25ab9f7b743101a88404d24109c3db43931138d909692db544f2eb2

See more details on using hashes here.

File details

Details for the file flask_admin_tabler-2026.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_admin_tabler-2026.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2a530c8770aaeacf52044179caf5af95b786bac6367501860e2d2d3f7b67b08a
MD5 843c96c9d2407abfb7c4dae54655279e
BLAKE2b-256 4871577525272421faedf33676dd7ec372d063d42eb8d0c11420a3769d83d70a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page