Looking for a Python CSS pre-processor with Stylus-like syntax?

css, node.js, python, stylus

Solution

Stylus' older siblings are LESS and Sass. I prefer Stylus to both, both because of features and speed, but they are pretty much interchangeable, AFAIK.

LESS is also written in javascript, and so will not release you from your node.js dependency. Sass is written in Ruby.

Problem

Stylus is a language that compiles into normal CSS. The language is a huge time- and space saver for many reasons. For instance, I can put selectors inside each other: ``` div.foo color: red div.bar color: blue font-weight: bold div.baz color: green background-color: pink ``` I can also do stuff like make vendor-specific properties work without the prefixes, which saves a lot of space. My question is: Are there any alternatives to Stylus? I can't really think of a description of what Stylus is, so I'm finding it hard to find any alternatives using Google. Note: By alternatives, I mean languages that compile into CSS and offer time-saving goodies. The reason I'm looking for alternatives is that I use Stylus for all my projects, and I want to see if there's a better solution out there. The reason I'm not 100% happy with Stylus is that the TextMate bundle for it is terrible, and Stylus requires Node.js to compile which is also a step I'd like to avoid. I use mainly Python.

Original source

Related problems