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(Nord["accent_color"])  # #88c0d0

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.2.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.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tkthemes-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 abbaa20b34aa210374295c1428289f4066072337a111176331d88d24cd446707
MD5 a4c87275cba5820b5f3e33654b14120c
BLAKE2b-256 5227f8f50821f4db82756c6dcda026e78058997ead71fda1b8025fe845373326

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tkthemes-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d72484513018b0497a60acfde0ce2de4b808f511505c7b168369026a80fc894e
MD5 52580bf349ae4a2b15e986d98fbb86a7
BLAKE2b-256 112d917cf03ebe5266810b224f027045070adc61833d443c1fcfc39bae6a230e

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