ttkbootstrap#

Modern, themed tkinter — style any ttk widget with one keyword.

ttkbootstrap is a theming extension for tkinter. It generates flat, Bootstrap-inspired light and dark themes on demand and adds a single bootstyle keyword to every ttk widget, so you describe intent (“primary”, “success”, “outline”) instead of hand-picking colors.

A ttkbootstrap window — semantic color swatches above cards of themed buttons, inputs, toolbuttons, a meter, a data table, and a notebook — light theme A ttkbootstrap window — semantic color swatches above cards of themed buttons, inputs, toolbuttons, a meter, a data table, and a notebook — dark theme

Why ttkbootstrap#

Semantic styling

One keyword does it: bootstyle="primary", bootstyle="success outline". Describe intent, not hex codes — the same code looks right across 30 light and dark themes and re-themes at runtime.

Styles vanilla tkinter

ttkbootstrap is an extension, not a new toolkit. It styles the ttk widgets you already know — Button, Entry, Treeview — plus a few batteries-included extras like Meter and DateEntry.

Looks right by default

Flat, modern themes with sensible spacing and a coherent color system, so an app looks polished before you touch a single style option.

Pure Python

One runtime dependency (Pillow). Requires Python 3.10+. No native extensions, no heavy runtime.

A glimpse#

A themed window is a handful of lines — every widget takes bootstyle:

import ttkbootstrap as ttk

app = ttk.App(title="Hello", theme="bootstrap-light")

ttk.Label(app, text="Hello from ttkbootstrap!").pack(padx=16, pady=(16, 8))
ttk.Button(app, text="Primary", bootstyle="primary").pack(padx=16, pady=4)
ttk.Button(app, text="Success", bootstyle="success").pack(padx=16, pady=4)
ttk.Button(app, text="Danger Outline", bootstyle="danger outline").pack(padx=16, pady=(4, 16))

app.mainloop()
The Hello window — a greeting label above primary, success, and danger-outline buttons — light theme The Hello window — a greeting label above primary, success, and danger-outline buttons — dark theme

Start here#

Quick Start

Your first themed window in a few lines.

Quickstart
User Guide

The bootstyle grammar, theming, and making your own styles and themes.

User Guide
Widgets

The visual catalog — every widget ttkbootstrap styles or ships.

Widgets
Reference

The per-widget API and styling reference, capabilities, and cursors.

Reference

Install#

ttkbootstrap requires Python 3.10 or newer. Install it with pip:

pip install ttkbootstrap