forked from catppuccin/userstyles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate.py
More file actions
54 lines (48 loc) 路 1.35 KB
/
Copy pathgenerate.py
File metadata and controls
54 lines (48 loc) 路 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"""File to generate boards according to the flavours of the catppuccin"""
from catppuccin import Flavour
from boardinator.boardinator import replace_colors
themes = {
"latte": Flavour.latte(),
"mocha": Flavour.mocha(),
"macchiato": Flavour.macchiato(),
"frappe": Flavour.frappe(),
}
accents = [
"rosewater",
"flamingo",
"pink",
"mauve",
"red",
"maroon",
"peach",
"yellow",
"green",
"teal",
"sky",
"sapphire",
"blue",
"lavender",
]
def generate_boards():
"""Generate boards for each flavour of catppuccin"""
for flavour, theme in themes.items():
for accent in accents:
color_dict = {
(237, 238, 209): (
theme.base.red,
theme.base.green,
theme.base.blue,
), # the Light Grayish Yellow Green
(119, 153, 82): (
getattr(theme, accent).red,
getattr(theme, accent).green,
getattr(theme, accent).blue,
), # the Dark Grayish Yellow Green
}
replace_colors(
image_path="assets/base/colorboard.png",
output_path=f"assets/{flavour}/{accent}.png",
color_dict=color_dict,
)
if __name__ == "__main__":
generate_boards()