Skip to content

Commit d6bbd3e

Browse files
committed
refactor: use multiflavor mode to add config settings
1 parent d507bd2 commit d6bbd3e

58 files changed

Lines changed: 327 additions & 1424 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎blockbench.tera‎

Lines changed: 48 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,58 @@
11
---
22
whiskers:
33
version: ^2.5.1
4-
matrix:
5-
- flavor
6-
- accent
7-
filename: "themes/{{flavor.identifier}}/catppuccin-{{flavor.identifier}}-{{accent}}.bbtheme"
4+
filename: "themes/catppuccin.bbtheme"
85
hex_format: "#{{r}}{{g}}{{b}}"
96
---
107
/*
11-
name: Catppuccin {{ flavor.name }} {{ accent | capitalize }}
8+
name: Catppuccin
129
author: Catppuccin
1310
borders: false
11+
options:
12+
flavor:
13+
name: Flavor
14+
options:
15+
latte: Latte
16+
frappe: Frappé
17+
macchiato: Macchiato
18+
mocha: Mocha
19+
accent:
20+
name: Accent
21+
options:
22+
{%- for flavorId, flavor in flavors %}{%- if loop.last %}
23+
{%- for colorId, color in flavor.colors %}{%- if color.accent %}
24+
{{ colorId }}: {{color.name}}
25+
{%- endif %}{%- endfor %}
26+
{%- endif %}{%- endfor %}
1427
*/
15-
body {
16-
--color-ui: {{ base.hex }};
17-
--color-back: {{ mantle.hex }};
18-
--color-dark: {{ crust.hex }};
19-
--color-border: {{ overlay0.hex }};
20-
--color-selected: {{ surface1.hex }};
21-
--color-elevated: {{ surface0.hex }};
22-
--color-button: {{ surface0.hex }};
23-
--color-bright_ui: {{ text.hex }};
24-
--color-accent: {{ flavor.colors[accent].hex }};
25-
--color-frame: {{ mantle.hex }};
26-
--color-text: {{ subtext1.hex }};
27-
--color-light: {{ text.hex }};
28-
--color-accent_text: {{ base.hex }};
29-
--color-bright_ui_text: {{ base.hex }};
30-
--color-subtle_text: {{ subtext0.hex }};
31-
--color-grid: {{ subtext0.hex }};
32-
--color-wireframe: {{ subtext0.hex }};
33-
--color-checkerboard: {{ surface1.hex }};
28+
29+
{%- for flavorId, flavor in flavors %}
30+
{% if loop.last %}body,{% endif %}
31+
[theme-flavor="{{ flavorId }}"] {
32+
--color-ui: {{ flavor.colors.base.hex }};
33+
--color-back: {{ flavor.colors.mantle.hex }};
34+
--color-dark: {{ flavor.colors.crust.hex }};
35+
--color-border: {{ flavor.colors.overlay0.hex }};
36+
--color-selected: {{ flavor.colors.surface1.hex }};
37+
--color-elevated: {{ flavor.colors.surface0.hex }};
38+
--color-button: {{ flavor.colors.surface0.hex }};
39+
--color-bright_ui: {{ flavor.colors.text.hex }};
40+
--color-frame: {{ flavor.colors.mantle.hex }};
41+
--color-text: {{ flavor.colors.subtext1.hex }};
42+
--color-light: {{ flavor.colors.text.hex }};
43+
--color-accent_text: {{ flavor.colors.base.hex }};
44+
--color-bright_ui_text: {{ flavor.colors.base.hex }};
45+
--color-subtle_text: {{ flavor.colors.subtext0.hex }};
46+
--color-grid: {{ flavor.colors.subtext0.hex }};
47+
--color-wireframe: {{ flavor.colors.subtext0.hex }};
48+
--color-checkerboard: {{ flavor.colors.surface1.hex }};
49+
{%- if loop.last %}
50+
--color-accent: {{ flavor.colors.mauve.hex }};
51+
{%- endif %}
3452
}
53+
{%- for colorId, color in flavor.colors %}{% if color.accent %}
54+
[theme-flavor="{{ flavorId }}"][theme-accent="{{ colorId }}"] {
55+
--color-accent: {{ color.hex }};
56+
}
57+
{%- endif %}{%- endfor %}
58+
{%- endfor %}

‎themes/catppuccin.bbtheme‎

Lines changed: 279 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,279 @@
1+
/*
2+
name: Catppuccin
3+
author: Catppuccin
4+
borders: false
5+
options:
6+
flavor:
7+
name: Flavor
8+
options:
9+
latte: Latte
10+
frappe: Frappé
11+
macchiato: Macchiato
12+
mocha: Mocha
13+
accent:
14+
name: Accent
15+
options:
16+
rosewater: Rosewater
17+
flamingo: Flamingo
18+
pink: Pink
19+
mauve: Mauve
20+
red: Red
21+
maroon: Maroon
22+
peach: Peach
23+
yellow: Yellow
24+
green: Green
25+
teal: Teal
26+
sky: Sky
27+
sapphire: Sapphire
28+
blue: Blue
29+
lavender: Lavender
30+
*/
31+
32+
[theme-flavor="latte"] {
33+
--color-ui: #eff1f5;
34+
--color-back: #e6e9ef;
35+
--color-dark: #dce0e8;
36+
--color-border: #9ca0b0;
37+
--color-selected: #bcc0cc;
38+
--color-elevated: #ccd0da;
39+
--color-button: #ccd0da;
40+
--color-bright_ui: #4c4f69;
41+
--color-frame: #e6e9ef;
42+
--color-text: #5c5f77;
43+
--color-light: #4c4f69;
44+
--color-accent_text: #eff1f5;
45+
--color-bright_ui_text: #eff1f5;
46+
--color-subtle_text: #6c6f85;
47+
--color-grid: #6c6f85;
48+
--color-wireframe: #6c6f85;
49+
--color-checkerboard: #bcc0cc;
50+
}
51+
[theme-flavor="latte"][theme-accent="rosewater"] {
52+
--color-accent: #dc8a78;
53+
}
54+
[theme-flavor="latte"][theme-accent="flamingo"] {
55+
--color-accent: #dd7878;
56+
}
57+
[theme-flavor="latte"][theme-accent="pink"] {
58+
--color-accent: #ea76cb;
59+
}
60+
[theme-flavor="latte"][theme-accent="mauve"] {
61+
--color-accent: #8839ef;
62+
}
63+
[theme-flavor="latte"][theme-accent="red"] {
64+
--color-accent: #d20f39;
65+
}
66+
[theme-flavor="latte"][theme-accent="maroon"] {
67+
--color-accent: #e64553;
68+
}
69+
[theme-flavor="latte"][theme-accent="peach"] {
70+
--color-accent: #fe640b;
71+
}
72+
[theme-flavor="latte"][theme-accent="yellow"] {
73+
--color-accent: #df8e1d;
74+
}
75+
[theme-flavor="latte"][theme-accent="green"] {
76+
--color-accent: #40a02b;
77+
}
78+
[theme-flavor="latte"][theme-accent="teal"] {
79+
--color-accent: #179299;
80+
}
81+
[theme-flavor="latte"][theme-accent="sky"] {
82+
--color-accent: #04a5e5;
83+
}
84+
[theme-flavor="latte"][theme-accent="sapphire"] {
85+
--color-accent: #209fb5;
86+
}
87+
[theme-flavor="latte"][theme-accent="blue"] {
88+
--color-accent: #1e66f5;
89+
}
90+
[theme-flavor="latte"][theme-accent="lavender"] {
91+
--color-accent: #7287fd;
92+
}
93+
94+
[theme-flavor="frappe"] {
95+
--color-ui: #303446;
96+
--color-back: #292c3c;
97+
--color-dark: #232634;
98+
--color-border: #737994;
99+
--color-selected: #51576d;
100+
--color-elevated: #414559;
101+
--color-button: #414559;
102+
--color-bright_ui: #c6d0f5;
103+
--color-frame: #292c3c;
104+
--color-text: #b5bfe2;
105+
--color-light: #c6d0f5;
106+
--color-accent_text: #303446;
107+
--color-bright_ui_text: #303446;
108+
--color-subtle_text: #a5adce;
109+
--color-grid: #a5adce;
110+
--color-wireframe: #a5adce;
111+
--color-checkerboard: #51576d;
112+
}
113+
[theme-flavor="frappe"][theme-accent="rosewater"] {
114+
--color-accent: #f2d5cf;
115+
}
116+
[theme-flavor="frappe"][theme-accent="flamingo"] {
117+
--color-accent: #eebebe;
118+
}
119+
[theme-flavor="frappe"][theme-accent="pink"] {
120+
--color-accent: #f4b8e4;
121+
}
122+
[theme-flavor="frappe"][theme-accent="mauve"] {
123+
--color-accent: #ca9ee6;
124+
}
125+
[theme-flavor="frappe"][theme-accent="red"] {
126+
--color-accent: #e78284;
127+
}
128+
[theme-flavor="frappe"][theme-accent="maroon"] {
129+
--color-accent: #ea999c;
130+
}
131+
[theme-flavor="frappe"][theme-accent="peach"] {
132+
--color-accent: #ef9f76;
133+
}
134+
[theme-flavor="frappe"][theme-accent="yellow"] {
135+
--color-accent: #e5c890;
136+
}
137+
[theme-flavor="frappe"][theme-accent="green"] {
138+
--color-accent: #a6d189;
139+
}
140+
[theme-flavor="frappe"][theme-accent="teal"] {
141+
--color-accent: #81c8be;
142+
}
143+
[theme-flavor="frappe"][theme-accent="sky"] {
144+
--color-accent: #99d1db;
145+
}
146+
[theme-flavor="frappe"][theme-accent="sapphire"] {
147+
--color-accent: #85c1dc;
148+
}
149+
[theme-flavor="frappe"][theme-accent="blue"] {
150+
--color-accent: #8caaee;
151+
}
152+
[theme-flavor="frappe"][theme-accent="lavender"] {
153+
--color-accent: #babbf1;
154+
}
155+
156+
[theme-flavor="macchiato"] {
157+
--color-ui: #24273a;
158+
--color-back: #1e2030;
159+
--color-dark: #181926;
160+
--color-border: #6e738d;
161+
--color-selected: #494d64;
162+
--color-elevated: #363a4f;
163+
--color-button: #363a4f;
164+
--color-bright_ui: #cad3f5;
165+
--color-frame: #1e2030;
166+
--color-text: #b8c0e0;
167+
--color-light: #cad3f5;
168+
--color-accent_text: #24273a;
169+
--color-bright_ui_text: #24273a;
170+
--color-subtle_text: #a5adcb;
171+
--color-grid: #a5adcb;
172+
--color-wireframe: #a5adcb;
173+
--color-checkerboard: #494d64;
174+
}
175+
[theme-flavor="macchiato"][theme-accent="rosewater"] {
176+
--color-accent: #f4dbd6;
177+
}
178+
[theme-flavor="macchiato"][theme-accent="flamingo"] {
179+
--color-accent: #f0c6c6;
180+
}
181+
[theme-flavor="macchiato"][theme-accent="pink"] {
182+
--color-accent: #f5bde6;
183+
}
184+
[theme-flavor="macchiato"][theme-accent="mauve"] {
185+
--color-accent: #c6a0f6;
186+
}
187+
[theme-flavor="macchiato"][theme-accent="red"] {
188+
--color-accent: #ed8796;
189+
}
190+
[theme-flavor="macchiato"][theme-accent="maroon"] {
191+
--color-accent: #ee99a0;
192+
}
193+
[theme-flavor="macchiato"][theme-accent="peach"] {
194+
--color-accent: #f5a97f;
195+
}
196+
[theme-flavor="macchiato"][theme-accent="yellow"] {
197+
--color-accent: #eed49f;
198+
}
199+
[theme-flavor="macchiato"][theme-accent="green"] {
200+
--color-accent: #a6da95;
201+
}
202+
[theme-flavor="macchiato"][theme-accent="teal"] {
203+
--color-accent: #8bd5ca;
204+
}
205+
[theme-flavor="macchiato"][theme-accent="sky"] {
206+
--color-accent: #91d7e3;
207+
}
208+
[theme-flavor="macchiato"][theme-accent="sapphire"] {
209+
--color-accent: #7dc4e4;
210+
}
211+
[theme-flavor="macchiato"][theme-accent="blue"] {
212+
--color-accent: #8aadf4;
213+
}
214+
[theme-flavor="macchiato"][theme-accent="lavender"] {
215+
--color-accent: #b7bdf8;
216+
}
217+
body,
218+
[theme-flavor="mocha"] {
219+
--color-ui: #1e1e2e;
220+
--color-back: #181825;
221+
--color-dark: #11111b;
222+
--color-border: #6c7086;
223+
--color-selected: #45475a;
224+
--color-elevated: #313244;
225+
--color-button: #313244;
226+
--color-bright_ui: #cdd6f4;
227+
--color-frame: #181825;
228+
--color-text: #bac2de;
229+
--color-light: #cdd6f4;
230+
--color-accent_text: #1e1e2e;
231+
--color-bright_ui_text: #1e1e2e;
232+
--color-subtle_text: #a6adc8;
233+
--color-grid: #a6adc8;
234+
--color-wireframe: #a6adc8;
235+
--color-checkerboard: #45475a;
236+
--color-accent: #cba6f7;
237+
}
238+
[theme-flavor="mocha"][theme-accent="rosewater"] {
239+
--color-accent: #f5e0dc;
240+
}
241+
[theme-flavor="mocha"][theme-accent="flamingo"] {
242+
--color-accent: #f2cdcd;
243+
}
244+
[theme-flavor="mocha"][theme-accent="pink"] {
245+
--color-accent: #f5c2e7;
246+
}
247+
[theme-flavor="mocha"][theme-accent="mauve"] {
248+
--color-accent: #cba6f7;
249+
}
250+
[theme-flavor="mocha"][theme-accent="red"] {
251+
--color-accent: #f38ba8;
252+
}
253+
[theme-flavor="mocha"][theme-accent="maroon"] {
254+
--color-accent: #eba0ac;
255+
}
256+
[theme-flavor="mocha"][theme-accent="peach"] {
257+
--color-accent: #fab387;
258+
}
259+
[theme-flavor="mocha"][theme-accent="yellow"] {
260+
--color-accent: #f9e2af;
261+
}
262+
[theme-flavor="mocha"][theme-accent="green"] {
263+
--color-accent: #a6e3a1;
264+
}
265+
[theme-flavor="mocha"][theme-accent="teal"] {
266+
--color-accent: #94e2d5;
267+
}
268+
[theme-flavor="mocha"][theme-accent="sky"] {
269+
--color-accent: #89dceb;
270+
}
271+
[theme-flavor="mocha"][theme-accent="sapphire"] {
272+
--color-accent: #74c7ec;
273+
}
274+
[theme-flavor="mocha"][theme-accent="blue"] {
275+
--color-accent: #89b4fa;
276+
}
277+
[theme-flavor="mocha"][theme-accent="lavender"] {
278+
--color-accent: #b4befe;
279+
}

‎themes/frappe/catppuccin-frappe-blue.bbtheme‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)