0.1.2 • Published 6 days ago

@terrazzo/plugin-css v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

⛋ @terrazzo/plugin-css

Convert DTCG tokens into CSS variables for use in any web application or native app with webview. Convert your modes into CSS media queries for complete flexibility.

Setup

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

npm i -D @terrazzo/plugin-css

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

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

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

Lastly, run:

npx tz build

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

Full Documentation

0.1.2

6 days ago

0.1.1

14 days ago

0.1.0

29 days ago

0.0.10

3 months ago

0.0.11

3 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago

0.0.0

7 months ago