Skip to content
TomSchimansky edited this page Apr 10, 2022 · 6 revisions

Colors

All colors of the CTk widgets can be customised, the appropriate arguments can be found in the documentation of the specific widgets.

The colors can either be set to a single color name ("red"), a single hex color string ("#FF0000") or a tuple color for a light mode color and dark mode color (("red", "darkred")). The current color will then be picked by the widget automatically according to the current appearance mode. So by using the tuple color, the widgets can have different colors in light and dark appearance mode. If you use a single color then this color will be used for both light and dark appearance mode.

Example:

button = customtkinter.CTkButton(root_tk, fg_color="red")  # single color name

button = customtkinter.CTkButton(root_tk, fg_color="#FF0000")  # single hex string

button = customtkinter.CTkButton(root_tk, fg_color=("#db3e39", "#821d1a"))  # tuple color

Themes

⚠️ Attention ⚠️

The Github Wiki is outdated, the new documentation can be found at:

https://customtkinter.tomschimansky.com

Clone this wiki locally