Skip to content

Python classes to generate CSS

February 4th, 2015 - IdeaSoftware(1 min)

A while ago I got fed up with CSS and its cumbersomeness. As my poison of choice is python, I was thinking it would be quite useful to have a bunch of classes capable of generating CSS automatically in python. One could have a base class, a set of properties, a name-value dictionary and a way to nest them nicely so we could emulate LESS/SCSS.

The idea is to use the power of python (or whatever language you’d want), with nesting etc. so we allow non-web designers mess around with structures they are familiar with. Integration in e.g. django with caching would be piece of cake :)

I just hope I’ll get around to it someday


Share on

A little experiment: