Version0.9.2Verifiednot yet verifiedLicenseBSD-3-Clause
Readme
sigil-css
S-expression CSS DSL for Sigil. Write CSS using composable Scheme expressions instead of raw strings.
Usage
(import (sigil css))
;; Generate CSS from S-expressions
(css-render
(css "body"
(background-color "#0d0d0d")
(color "#e8e8e8")
(font-family "system-ui, sans-serif"))
(css ".card"
(background "linear-gradient(180deg, #1a1a1a 0%, #141414 100%)")
(border "1px solid #2a2a2a")
(border-radius "8px")
(padding "1.5rem"))
(css ".card:hover"
(border-color "#d4a017")))Features
- Composable — CSS rules are values, combine them with standard Scheme functions
- Themeable — pass color values as variables, swap palettes programmatically
- Type-safe — malformed CSS caught at generation time, not in the browser
- No build step — generates CSS strings directly, serve inline or write to file
Dependencies
- sigil-stdlib
Build
sigil deps install
sigil build
sigil testLicense
BSD-3-Clause
Clone
$ git clone https://codeberg.org/sigil/sigil-css
Releases
v0.9.2 — latest by version, released 28 Jun 2026
All releases — 3 tags in this repository.
Source
One page per file, and every line has a permalink.
Recent commitsAtom
28 Juncommit
1 Aprcommit
df075c3b
1 Aprcommit
1 Aprcommit
29 Marcommit
9e90d124
29 Marcommit
1 Marcommit
fcdbb2db
25 Febcommit
22 Febcommit
72190d8c
19 Febcommit
19 Febcommit
17 Febcommit
d46b17b5
14 Jancommit
42539975
13 Jancommit
12 Jancommit
12 Jancommit
7572dfd1
9 Jancommit
b737918a
7 Jancommit
6 Jancommit
The last 20 commits keep a page here. Everything older lives in the clone.