littledivy / deno_sass

:rocket: Cute Sass compiler bindings to Deno.
MIT License
12 stars 1 forks source link
compiler css deno grass javascript js rust sass ts wasm


deno_sass logo

deno_sass

High quality bindings to the sass_rs crate for Deno.

[![stars](https://img.shields.io/github/stars/divy-work/deno_sass)](https://github.com/divy-work/deno_sass/stargazers) [![issues](https://img.shields.io/github/issues/divy-work/deno_sass)](https://github.com/divy-work/deno_sass/issues) ![deno version](https://img.shields.io/badge/deno-1.0.5-success) [![vr scripts](https://badges.velociraptor.run/flat.svg)](https://velociraptor.run)

πŸŒ€ The library is not yet available on Windows. Expect breaking changes.

Example

import { compile } from "https://x.nest.land/sass@0.2.0/mod.ts";

compile("a { color: #000; }", {
  output_style: "nested",
  precision: 5,
  indented_syntax: false,
  include_paths: []
}).result;

Join Discord

Building from source

Prerequisites

Building

$ cargo build

Example

$ deno run --unstable -A examples/compile.ts

Contribution

Pull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.

Copyright

deno_sass is licensed under the MIT license. Please see the LICENSE file.