Compiler for LSS (Lisp Style Sheets) — a Lisp-syntax CSS preprocessor language.
meson setup build
cd build && ninjalistyle input.lss -o output.css
listyle input.lss # outputs to stdoutLSS is a Lisp-flavoured CSS preprocessor. See the specification for full syntax.
Key features:
- Variables (
def) - Mixins (
defmixin/use) - Functions (
defun) - Macros (
defmacro) - Nested selectors with
&parent reference - Loops:
for,each,map - Control flow:
if,cond,when,unless - Media queries:
@media,defmedia - Themes:
deftheme/apply-theme - Keyframes:
defkeyframes - Imports:
import,include - Built-in color functions:
darken,lighten,transparentize, etc. - Built-in math and string functions
GNU GPL 3.0