Fawkss is a CSS preprocessor for people who dislike CSS preprocessors
Go to file
Alex Palaistras d30104d7a1 Add LICENSE and README files 2016-02-28 19:31:00 +00:00
spec Implement inline comment rule, make tests a bit more robust 2016-02-28 19:11:25 +00:00
LICENSE Add LICENSE and README files 2016-02-28 19:31:00 +00:00
README.md Add LICENSE and README files 2016-02-28 19:31:00 +00:00
fawkss Implement inline comment rule, make tests a bit more robust 2016-02-28 19:11:25 +00:00
run-tests Complete work on simple variable definitions. 2016-02-28 16:08:55 +00:00

README.md

Fawkss — The CSS preprocessor for people who dislike CSS preprocessors MIT License

Fawkss [fɔːks] is a simple CSS preprocessor built as a single AWK (nawk/gawk/mawk) script. Syntactically, it borrows as much as possible from the SASS language, for convenience and familiarity.

This is more of a fun project than a production-ready piece of software, though it may find some use for people needing simple additions to CSS without pulling in the massive ecosystem that comes with Less.js/SASS etc.

Status

Currently, the following features are implemented:

  • C99/C++-style comments (.i.e. // This is a comment)
  • Variables

A full test-suite is provided (depending only on Bash and AWK), which should serve as a good example of the existing feature-set.

Roadmap

It is intended that the script never balloons to more than ~1000 lines of code. I'm trying to tackle the most important features yet and see how well they fit within the AWK mindset.

That being said, I do not plan to implement any context-sensitive functionality (such as nesting etc.), which may be nigh-impossible in AWK anyways. Consider it a feature.

Are you kidding me?

Nope. I wouldn't suggest you actually use this for anything, though.

License

All code in this repository is covered by the terms of the MIT License, the full text of which can be found in the LICENSE file.