algorithm-archivists / aaa-py

A Python implementation of Algorithm Archive's build system.
MIT License
11 stars 5 forks source link

Dark theme option #16

Open leios opened 2 years ago

leios commented 2 years ago

Having a dark theme option would be nice

Udarthegreat commented 2 years ago

I would like to add on to the post above that it would be nice if this would have full theme switching as it is in the current version of the AAA. it would be even better if themes could be defined/updated on the side of the AAA (essentially making them their own CSS or some other format that is stored in the repo that it generates from). for example you'd have a dark.css in a themes directory that dictates how the dark theme works and gets added to each generated page on generation of the page. all this has to be is a set of CSS variables for the different aspects of the page that change based on the theme. something like this (this is overly simplistic since its only an example):

--bg_color: rgba(28,31,43,1);
--code_bg_color: rgba(45,49,67,1);
--text_color_heading: rgba(255,255,255,1);
--text_color_paragraph: rgba(189,202,185,1);
--text_color_paragraph: rgba(157,190,216,1);

as a final note, if this is done then we should ensure that this does not get translated over.