0.6.0 • Published 5 months ago

@terrazzo/plugin-sass v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

⛋ @terrazzo/plugin-sass

Convert DTCG tokens into Sass for use in any web application or native app with webview. Uses the CSS plugin under the hood that lets you use all of CSS’ features with the typesafety of Sass.

Setup

Requires Node.js 18 or later and the CLI installed. With both installed, run:

npm i -D @terrazzo/plugin-css @terrazzo/plugin-sass

Add a terrazzo.config.js to the root of your project:

import { defineConfig } from "@terrazzo/cli";
import css from "@terrazzo/plugin-css";
import sass from "@terrazzo/plugin-sass";

export default defineConfig({
  outDir: "./tokens/",
  plugins: [
    css({
      fileName: "tokens.css",
    }),
    sass({
      fileName: "index.sass",
    }),
  ],
});

Lastly, run:

npx tz build

And you’ll see a ./tokens/index.scss file generated in your project.

Full Documentation

0.6.0

5 months ago

0.5.0

5 months ago

0.4.0

5 months ago

0.3.1

5 months ago

0.3.0

6 months ago

0.2.0

7 months ago

0.1.1

7 months ago

0.1.0

8 months ago

0.0.3

10 months ago

0.0.2

11 months ago

0.0.1

12 months ago

0.0.0

1 year ago