From 4abfd5777ff1dd1da41146d290c350df83af1f9e Mon Sep 17 00:00:00 2001 From: Scarce Koi Date: Sun, 5 Apr 2026 20:37:46 -0400 Subject: [PATCH 1/3] docs(README): add overrides section --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index a1b7bfb..8e349e9 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,16 @@ 2. In your Python file, put `customtkinter.set_default_color_theme("path/to/catppuccin-{flavor}-{accent}.json")` (replace `path/to` with the actual path and replace `{flavor}` with the flavor you chose and `{accent}` with the accent you chose). 3. Enjoy! +### Overrides + +To override the font from generation time, when generating the files add an override like so: `whiskers customtkinter.tera --overrides '{"font": {"size": 14}}'`. The available overrides (where `size` is) are: +- font + - size (default: **13**) + - weight (default: **normal**) + - macos (default: **SF Display**) + - windows (default: **Roboto**) + - linux (default: **Roboto**) + ## 🙋 FAQ - Q: **_"How do I change themes?"_**\ From 8db2c13dfea98571c057311e513ffde44383aa11 Mon Sep 17 00:00:00 2001 From: Scarce Koi Date: Sun, 5 Apr 2026 20:37:56 -0400 Subject: [PATCH 2/3] refactor(template): add font overrides --- customtkinter.tera | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/customtkinter.tera b/customtkinter.tera index ba24f5e..1f86f3b 100644 --- a/customtkinter.tera +++ b/customtkinter.tera @@ -6,6 +6,12 @@ whiskers: - accent filename: "themes/{{ flavor.identifier }}/catppuccin-{{ flavor.identifier }}-{{ accent }}.json" hex_format: "#{{R}}{{G}}{{B}}{{Z}}" +font: + size: 13 + weight: "normal" + macos: "SF Display" + windows: "Roboto" + linux: "Roboto" --- {%- set dark = flavor -%} {%- set light = flavors.latte -%} @@ -153,19 +159,19 @@ whiskers: }, "CTkFont": { "macOS": { - "family": "SF Display", - "size": 13, - "weight": "normal" + "family": "{{ font.macos }}", + "size": {{ font.size }}, + "weight": "{{ font.weight }}" }, "Windows": { - "family": "Roboto", - "size": 13, - "weight": "normal" + "family": "{{ font.windows }}", + "size": {{ font.size }}, + "weight": "{{ font.weight }}" }, "Linux": { - "family": "Roboto", - "size": 13, - "weight": "normal" + "family": "{{ font.linux }}", + "size": {{ font.size }}, + "weight": "{{ font.weight }}" } } } From d4482a4dec0a90159622bbac05c8d474ca152e12 Mon Sep 17 00:00:00 2001 From: Scarce Koi Date: Sun, 5 Apr 2026 20:40:03 -0400 Subject: [PATCH 3/3] docs(README): update overrides section --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e349e9..7831b13 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,9 @@ ### Overrides -To override the font from generation time, when generating the files add an override like so: `whiskers customtkinter.tera --overrides '{"font": {"size": 14}}'`. The available overrides (where `size` is) are: +To override the font from generation time, add an override to the command like so: `whiskers customtkinter.tera --overrides '{"font": {"size": 14}}'`. + +Available overrides: - font - size (default: **13**) - weight (default: **normal**)