Skip to content

AnmiTaliDev/listyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

listyle

Compiler for LSS (Lisp Style Sheets) — a Lisp-syntax CSS preprocessor language.

Build

meson setup build
cd build && ninja

Usage

listyle input.lss -o output.css
listyle input.lss          # outputs to stdout

Language

LSS 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

License

GNU GPL 3.0

About

Compiler for LSS (Lisp Style Sheets)

Topics

Resources

License

Stars

Watchers

Forks

Contributors