PyCSS is a micro-framework to speed up the process of writing bulk CSS classes.
With Python!!!
First download the https://github.com/Jammin-Coder/py-css/tree/main/PythonCSS folder that contains the program files, then in that directory open the app.py
file:
Then within app.py
and within the CSSClasses
class, you write Python classes that translate into CSS:
Then you run compile.py
with python3 compile.py -o <output_css_file>.css
:
The -o
flag tells the program where to output the compiled CSS file.
Then open the css file and make sure it worked:
If you wish to only use a class to structer child classes, then you can place it outside CSSClasses
DFlex
will not be compiled to the output file, but can be inherited by other classes.
You can also inherit properties from other classes:
Then you can use the CSS file in any web-development project!
Feel free to ask in the discussions tab if you have any problems or questions.