rDrama/compilecss.py

7 lines
661 B
Python
Raw Normal View History

2021-08-02 07:34:22 +00:00
for theme in ['midnight', 'dark', 'light', 'coffee', 'tron', '4chan']:
2021-08-04 15:35:10 +00:00
with open(f"./files/assets/style/{theme}_ff66ac.css", encoding='utf-8') as t:
2021-07-21 01:12:26 +00:00
text = t.read()
2021-08-01 11:04:29 +00:00
for color in ['ff66ac','805ad5','62ca56','38a169','80ffff','2a96f3','62ca56','eb4963','ff0000','f39731','30409f','3e98a7','e4432d','7b9ae4','ec72de','7f8fa6', 'f8db58']:
2021-07-23 13:47:25 +00:00
newtext = text.replace("ff66ac", color).replace("ff4097", color).replace("ff1a83", color).replace("ff3390", color).replace("rgba(255, 102, 172, 0.25)", color)
2021-08-04 15:35:10 +00:00
with open(f"./files/assets/style/{theme}_{color}.css", encoding='utf-8', mode='w') as nt:
2021-07-21 01:12:26 +00:00
nt.write(newtext)