sass
A wrapper for the libsass library.
Wraps a native library — check OS Compatibility below for platform-specific linking notes.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:24 |
Tags
Installation
nimble install sass
choosenim install sass
git clone https://github.com/dom96/sass
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| sass | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/dom96/sass |
|---|---|
| Homepage | https://github.com/dom96/sass |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
sass
sass provides a Sass/SCSS to CSS compiler for Nim through bindings to libsass.
API Documentation · GitHub Repo
Installation
Add this to your application's .nimble file:
requires "sass"
or to install globally run:
nimble install sass
Usage
import sass
# Compile a Sass/SCSS file:
compileFile("style.scss")
# Compile a Sass/SCSS file with options:
compileFile("style.sass", outputPath="style.css", includePaths = @["includes"])
# Compile a Sass/SCSS string:
let css = compile("body { div { color: red; } }")
Contributing
- Fork it ( https://github.com/dom96/sass/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
License
MIT