Skip to main content

Contains dictionary of custom themes used for creting GUIs with Tkinter

Project description

TkThemes

TkThemes is a collection of ready-to-use Tkinter themes for Python GUI applications.
It provides visually appealing color schemes, fonts, and widget styles to quickly style your Tkinter apps.


Features

  • 14+ pre-defined themes including:
    • Dracula, Solarized Light, Nord, Monokai Pro
    • Gruvbox Dark, One Dark Pro, GitHub Light, Oceanic Next
    • Crimson Red, Forest Green, Royal Purple, Classic White
    • Sepia Tone, Cyberpunk, Pastel Sunset
  • Theme elements for:
    • Background (bg) and foreground (fg) colors
    • Entry widget background (entry_bg) and foreground (entry_fg)
    • Button backgrounds (btn_bg, btn_bg_2) and active button background (btn_active_bg)
    • Plot background (plot_bg)
    • Accent color (accent_color)
  • Pre-defined fonts (font) for consistent styling

Installation

You can install directly from GitHub:

pip install git+https://github.com/TirthrajSG/TkThemes.git

Or

pip install TkThemes

Usage

from TkThemes import Themes

# Get a theme dictionary
dracula_theme = Themes["Dracula"]

# Access theme properties
bg_color = dracula_theme["bg"]
fg_color = dracula_theme["fg"]
font = dracula_theme["font"]

Or import pre-defined theme variables:

from TkThemes import Dracula, Nord, MonokaiPro

print(Dracula["accent_color"])  # #bd93f9

Contributing

Feel free to submit new themes, improvements, or bug fixes via pull requests! Make sure to follow the same structure as existing themes.

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

tkthemes-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

tkthemes-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tkthemes-0.1.1.tar.gz.

File metadata

  • Download URL: tkthemes-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for tkthemes-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ffbcab5fa9a704856ee6c30479fbb622cbb773a3cd7aeaa2d1b101c29e7dd791
MD5 8298551149391ea9e069a500f19598b6
BLAKE2b-256 5f9c885b2e2043d914bb38227e4e8c37ce2b64392bccd0b42ef87a0275476cba

See more details on using hashes here.

File details

Details for the file tkthemes-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tkthemes-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for tkthemes-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fd385b81f65edfc089280823655138749759fa9a0094a286fce76b920dd2abd3
MD5 53df4cb48c38b429b0771b1b65543edd
BLAKE2b-256 3651cb38f96eb00c277bab9733d79454642c513c844113688659f59c4b2adcd4

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