Skip to content

Commit 3a411ad

Browse files
author
Jonathan Esposito
committed
Added iTerm
1 parent 7c3b5a9 commit 3a411ad

File tree

3 files changed

+348
-0
lines changed

3 files changed

+348
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This theme is functionally complete for JetBrains, but more work is needed to ma
66

77
Supported apps:
88
- [JetBrains](theme/jetbrains)
9+
- [iTerm](theme/iterm)
910
- [Lapce](theme/lapce)
1011

1112
To build, first install [sublate](https://github.com/espositocode/sublate):

theme/iterm/build.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import sublate as sub
2+
3+
print("[+] Terminal")
4+
5+
for theme in sub.data["colors"]:
6+
# convert colors to rgb decimal
7+
for k,v in theme["colors"].items():
8+
r, g, b = tuple(int(v[1:][i:i+2], 16)/255 for i in (0, 2, 4))
9+
theme["colors"][k] = {
10+
"r": r,
11+
"g": g,
12+
"b": b,
13+
}
14+
15+
sub.render(f"{theme['name']}.itermcolors".replace(" ", "_"), "template.itermcolors", {
16+
"theme": theme
17+
})
18+
19+
sub.rm("template.itermcolors")
20+
sub.rm("build.py")

theme/iterm/template.itermcolors

Lines changed: 327 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>Ansi 0 Color</key>
6+
<dict>
7+
<key>Alpha Component</key>
8+
<real>1</real>
9+
<key>Blue Component</key>
10+
<real>{{theme.colors.base2.b}}</real>
11+
<key>Color Space</key>
12+
<string>sRGB</string>
13+
<key>Green Component</key>
14+
<real>{{theme.colors.base2.g}}</real>
15+
<key>Red Component</key>
16+
<real>{{theme.colors.base2.r}}</real>
17+
</dict>
18+
19+
<key>Ansi 1 Color</key>
20+
<dict>
21+
<key>Alpha Component</key>
22+
<real>1</real>
23+
<key>Blue Component</key>
24+
<real>{{theme.colors.red.b}}</real>
25+
<key>Color Space</key>
26+
<string>sRGB</string>
27+
<key>Green Component</key>
28+
<real>{{theme.colors.red.g}}</real>
29+
<key>Red Component</key>
30+
<real>{{theme.colors.red.r}}</real>
31+
</dict>
32+
33+
<key>Ansi 2 Color</key>
34+
<dict>
35+
<key>Alpha Component</key>
36+
<real>1</real>
37+
<key>Blue Component</key>
38+
<real>{{theme.colors.green.b}}</real>
39+
<key>Color Space</key>
40+
<string>sRGB</string>
41+
<key>Green Component</key>
42+
<real>{{theme.colors.green.g}}</real>
43+
<key>Red Component</key>
44+
<real>{{theme.colors.green.r}}</real>
45+
</dict>
46+
47+
<key>Ansi 3 Color</key>
48+
<dict>
49+
<key>Alpha Component</key>
50+
<real>1</real>
51+
<key>Blue Component</key>
52+
<real>{{theme.colors.yellow.b}}</real>
53+
<key>Color Space</key>
54+
<string>sRGB</string>
55+
<key>Green Component</key>
56+
<real>{{theme.colors.yellow.g}}</real>
57+
<key>Red Component</key>
58+
<real>{{theme.colors.yellow.r}}</real>
59+
</dict>
60+
61+
<key>Ansi 4 Color</key>
62+
<dict>
63+
<key>Alpha Component</key>
64+
<real>1</real>
65+
<key>Blue Component</key>
66+
<real>{{theme.colors.orange.b}}</real>
67+
<key>Color Space</key>
68+
<string>sRGB</string>
69+
<key>Green Component</key>
70+
<real>{{theme.colors.orange.g}}</real>
71+
<key>Red Component</key>
72+
<real>{{theme.colors.orange.r}}</real>
73+
</dict>
74+
75+
<key>Ansi 5 Color</key>
76+
<dict>
77+
<key>Alpha Component</key>
78+
<real>1</real>
79+
<key>Blue Component</key>
80+
<real>{{theme.colors.purple.b}}</real>
81+
<key>Color Space</key>
82+
<string>sRGB</string>
83+
<key>Green Component</key>
84+
<real>{{theme.colors.purple.g}}</real>
85+
<key>Red Component</key>
86+
<real>{{theme.colors.purple.r}}</real>
87+
</dict>
88+
89+
<key>Ansi 6 Color</key>
90+
<dict>
91+
<key>Alpha Component</key>
92+
<real>1</real>
93+
<key>Blue Component</key>
94+
<real>{{theme.colors.blue.b}}</real>
95+
<key>Color Space</key>
96+
<string>sRGB</string>
97+
<key>Green Component</key>
98+
<real>{{theme.colors.blue.g}}</real>
99+
<key>Red Component</key>
100+
<real>{{theme.colors.blue.r}}</real>
101+
</dict>
102+
103+
<key>Ansi 7 Color</key>
104+
<dict>
105+
<key>Alpha Component</key>
106+
<real>1</real>
107+
<key>Blue Component</key>
108+
<real>{{theme.colors.base8.b}}</real>
109+
<key>Color Space</key>
110+
<string>sRGB</string>
111+
<key>Green Component</key>
112+
<real>{{theme.colors.base8.g}}</real>
113+
<key>Red Component</key>
114+
<real>{{theme.colors.base8.r}}</real>
115+
</dict>
116+
117+
<key>Ansi 8 Color</key>
118+
<dict>
119+
<key>Alpha Component</key>
120+
<real>1</real>
121+
<key>Blue Component</key>
122+
<real>{{theme.colors.base5.b}}</real>
123+
<key>Color Space</key>
124+
<string>sRGB</string>
125+
<key>Green Component</key>
126+
<real>{{theme.colors.base5.g}}</real>
127+
<key>Red Component</key>
128+
<real>{{theme.colors.base5.r}}</real>
129+
</dict>
130+
131+
<key>Ansi 9 Color</key>
132+
<dict>
133+
<key>Alpha Component</key>
134+
<real>1</real>
135+
<key>Blue Component</key>
136+
<real>{{theme.colors.red.b}}</real>
137+
<key>Color Space</key>
138+
<string>sRGB</string>
139+
<key>Green Component</key>
140+
<real>{{theme.colors.red.g}}</real>
141+
<key>Red Component</key>
142+
<real>{{theme.colors.red.r}}</real>
143+
</dict>
144+
145+
<key>Ansi 10 Color</key>
146+
<dict>
147+
<key>Alpha Component</key>
148+
<real>1</real>
149+
<key>Blue Component</key>
150+
<real>{{theme.colors.green.b}}</real>
151+
<key>Color Space</key>
152+
<string>sRGB</string>
153+
<key>Green Component</key>
154+
<real>{{theme.colors.green.g}}</real>
155+
<key>Red Component</key>
156+
<real>{{theme.colors.green.r}}</real>
157+
</dict>
158+
159+
<key>Ansi 11 Color</key>
160+
<dict>
161+
<key>Alpha Component</key>
162+
<real>1</real>
163+
<key>Blue Component</key>
164+
<real>{{theme.colors.yellow.b}}</real>
165+
<key>Color Space</key>
166+
<string>sRGB</string>
167+
<key>Green Component</key>
168+
<real>{{theme.colors.yellow.g}}</real>
169+
<key>Red Component</key>
170+
<real>{{theme.colors.yellow.r}}</real>
171+
</dict>
172+
173+
<key>Ansi 12 Color</key>
174+
<dict>
175+
<key>Alpha Component</key>
176+
<real>1</real>
177+
<key>Blue Component</key>
178+
<real>{{theme.colors.orange.b}}</real>
179+
<key>Color Space</key>
180+
<string>sRGB</string>
181+
<key>Green Component</key>
182+
<real>{{theme.colors.orange.g}}</real>
183+
<key>Red Component</key>
184+
<real>{{theme.colors.orange.r}}</real>
185+
</dict>
186+
187+
<key>Ansi 13 Color</key>
188+
<dict>
189+
<key>Alpha Component</key>
190+
<real>1</real>
191+
<key>Blue Component</key>
192+
<real>{{theme.colors.purple.b}}</real>
193+
<key>Color Space</key>
194+
<string>sRGB</string>
195+
<key>Green Component</key>
196+
<real>{{theme.colors.purple.g}}</real>
197+
<key>Red Component</key>
198+
<real>{{theme.colors.purple.r}}</real>
199+
</dict>
200+
201+
<key>Ansi 14 Color</key>
202+
<dict>
203+
<key>Alpha Component</key>
204+
<real>1</real>
205+
<key>Blue Component</key>
206+
<real>{{theme.colors.blue.b}}</real>
207+
<key>Color Space</key>
208+
<string>sRGB</string>
209+
<key>Green Component</key>
210+
<real>{{theme.colors.blue.g}}</real>
211+
<key>Red Component</key>
212+
<real>{{theme.colors.blue.r}}</real>
213+
</dict>
214+
215+
<key>Ansi 15 Color</key>
216+
<dict>
217+
<key>Alpha Component</key>
218+
<real>1</real>
219+
<key>Blue Component</key>
220+
<real>{{theme.colors.base8.b}}</real>
221+
<key>Color Space</key>
222+
<string>sRGB</string>
223+
<key>Green Component</key>
224+
<real>{{theme.colors.base8.g}}</real>
225+
<key>Red Component</key>
226+
<real>{{theme.colors.base8.r}}</real>
227+
</dict>
228+
229+
<key>Cursor Text Color</key>
230+
<dict>
231+
<key>Alpha Component</key>
232+
<real>1</real>
233+
<key>Blue Component</key>
234+
<real>0.7529411765</real>
235+
<key>Color Space</key>
236+
<string>sRGB</string>
237+
<key>Green Component</key>
238+
<real>0.7529411765</real>
239+
<key>Red Component</key>
240+
<real>0.7568627451</real>
241+
</dict>
242+
243+
<key>Selected Text Color</key>
244+
<dict>
245+
<key>Alpha Component</key>
246+
<real>1</real>
247+
<key>Blue Component</key>
248+
<real>0.9803921569</real>
249+
<key>Color Space</key>
250+
<string>sRGB</string>
251+
<key>Green Component</key>
252+
<real>0.9882352941</real>
253+
<key>Red Component</key>
254+
<real>0.9882352941</real>
255+
</dict>
256+
257+
<key>Foreground Color</key>
258+
<dict>
259+
<key>Alpha Component</key>
260+
<real>1</real>
261+
<key>Blue Component</key>
262+
<real>{{theme.colors.base8.b}}</real>
263+
<key>Color Space</key>
264+
<string>sRGB</string>
265+
<key>Green Component</key>
266+
<real>{{theme.colors.base8.g}}</real>
267+
<key>Red Component</key>
268+
<real>{{theme.colors.base8.r}}</real>
269+
</dict>
270+
271+
<key>Background Color</key>
272+
<dict>
273+
<key>Alpha Component</key>
274+
<real>1</real>
275+
<key>Blue Component</key>
276+
<real>{{theme.colors.base2.b}}</real>
277+
<key>Color Space</key>
278+
<string>sRGB</string>
279+
<key>Green Component</key>
280+
<real>{{theme.colors.base2.g}}</real>
281+
<key>Red Component</key>
282+
<real>{{theme.colors.base2.r}}</real>
283+
</dict>
284+
285+
<key>Bold Color</key>
286+
<dict>
287+
<key>Alpha Component</key>
288+
<real>1</real>
289+
<key>Blue Component</key>
290+
<real>{{theme.colors.blue.b}}</real>
291+
<key>Color Space</key>
292+
<string>sRGB</string>
293+
<key>Green Component</key>
294+
<real>{{theme.colors.blue.g}}</real>
295+
<key>Red Component</key>
296+
<real>{{theme.colors.blue.r}}</real>
297+
</dict>
298+
299+
<key>Selection Color</key>
300+
<dict>
301+
<key>Alpha Component</key>
302+
<real>1</real>
303+
<key>Blue Component</key>
304+
<real>{{theme.colors.base4.b}}</real>
305+
<key>Color Space</key>
306+
<string>sRGB</string>
307+
<key>Green Component</key>
308+
<real>{{theme.colors.base4.g}}</real>
309+
<key>Red Component</key>
310+
<real>{{theme.colors.base4.r}}</real>
311+
</dict>
312+
313+
<key>Cursor Color</key>
314+
<dict>
315+
<key>Alpha Component</key>
316+
<real>1</real>
317+
<key>Blue Component</key>
318+
<real>{{theme.colors.base7.b}}</real>
319+
<key>Color Space</key>
320+
<string>sRGB</string>
321+
<key>Green Component</key>
322+
<real>{{theme.colors.base7.g}}</real>
323+
<key>Red Component</key>
324+
<real>{{theme.colors.base7.r}}</real>
325+
</dict>
326+
</dict>
327+
</plist>

0 commit comments

Comments
 (0)