Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@
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, add an override to the command like so: `whiskers customtkinter.tera --overrides '{"font": {"size": 14}}'`.

Available overrides:
- font
- size (default: **13**)
- weight (default: **normal**)
- macos (default: **SF Display**)
- windows (default: **Roboto**)
- linux (default: **Roboto**)

## 🙋 FAQ

- Q: **_"How do I change themes?"_**\
Expand Down
24 changes: 15 additions & 9 deletions customtkinter.tera
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down Expand Up @@ -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 }}"
}
}
}