@@ -19,20 +19,22 @@ def generate_svg(mode="dark"):
1919 if mode == "dark" :
2020 colors = {
2121 'bg' : '#0d1117' ,
22- 'art_solid' : '#c9d1d9 ' , # bright white-gray for #
23- 'art_mid' : '#6e7681 ' , # medium gray for + -
24- 'art_dim' : '#30363d ' , # subtle gray for .
25- 'title' : '#58a6ff ' , # bright blue
22+ 'art_solid' : '#c8ff00 ' , # lime hyper green for #
23+ 'art_mid' : '#5a7a00 ' , # muted green for + -
24+ 'art_dim' : '#1a2600 ' , # dark green for .
25+ 'title' : '#c8ff00 ' , # lime green
2626 'tagline' : '#8b949e' , # muted gray
27+ 'tagline2' : '#6e7681' , # dimmer gray
2728 }
2829 else :
2930 colors = {
3031 'bg' : '#ffffff' ,
31- 'art_solid' : '#24292f' , # near-black for #
32- 'art_mid' : '#57606a' , # medium gray for + -
33- 'art_dim' : '#d0d7de' , # light gray for .
34- 'title' : '#0969da' , # blue
35- 'tagline' : '#57606a' , # medium gray
32+ 'art_solid' : '#3300ff' , # deep electric blue for #
33+ 'art_mid' : '#8877cc' , # muted blue for + -
34+ 'art_dim' : '#e0dff0' , # faint blue-gray for .
35+ 'title' : '#3300ff' , # deep electric blue
36+ 'tagline' : '#555555' , # medium gray
37+ 'tagline2' : '#888888' , # lighter gray
3638 }
3739
3840 c = colors
@@ -98,9 +100,10 @@ def generate_svg(mode="dark"):
98100 lines .append (("art" , art ))
99101 lines .append (("blank" , "" ))
100102 lines .append (("blank" , "" ))
101- lines .append (("title" , "C o d e s W h a t ?" ))
103+ lines .append (("title" , "CodesWhat ?" ))
102104 lines .append (("blank" , "" ))
103- lines .append (("tagline" , "building things that make you go 'huh, neat'" ))
105+ lines .append (("tagline" , "if you'd like to build better worlds together" ))
106+ lines .append (("tagline2" , "...we mean software... reach out" ))
104107
105108 # Calculate height
106109 total_height = y_start
@@ -182,11 +185,15 @@ def generate_svg(mode="dark"):
182185 y += art_line_height
183186
184187 elif typ == "title" :
185- svg += f'<text x="{ width // 2 } " y="{ y } " text-anchor="middle" fill="{ c ["title" ]} " font-size="20px " font-weight="bold" letter-spacing="0.15em ">{ escape_xml (content )} </text>\n '
188+ svg += f'<text x="{ width // 2 } " y="{ y } " text-anchor="middle" fill="{ c ["title" ]} " font-size="22px " font-weight="600" font-family="-apple-system, BlinkMacSystemFont, \' Segoe UI \' , Helvetica, Arial, sans-serif ">{ escape_xml (content )} </text>\n '
186189 y += text_line_height
187190
188191 elif typ == "tagline" :
189- svg += f'<text x="{ width // 2 } " y="{ y } " text-anchor="middle" fill="{ c ["tagline" ]} " font-size="13px">{ escape_xml (content )} </text>\n '
192+ svg += f'<text x="{ width // 2 } " y="{ y } " text-anchor="middle" fill="{ c ["tagline" ]} " font-size="13px" font-family="-apple-system, BlinkMacSystemFont, \' Segoe UI\' , Helvetica, Arial, sans-serif">{ escape_xml (content )} </text>\n '
193+ y += text_line_height
194+
195+ elif typ == "tagline2" :
196+ svg += f'<text x="{ width // 2 } " y="{ y } " text-anchor="middle" fill="{ c ["tagline2" ]} " font-size="12px" font-family="-apple-system, BlinkMacSystemFont, \' Segoe UI\' , Helvetica, Arial, sans-serif">{ escape_xml (content )} </text>\n '
190197 y += text_line_height
191198
192199 elif typ == "blank" :
0 commit comments