@terrazzo/plugin-css
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

⛋ @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 20 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.7.275latest

Version History

VersionDownloads (Last 7 Days)Published
0.7.275
0.7.129
0.7.0134
0.6.018,057
0.5.00
0.4.00
0.3.20
0.3.10
0.3.042
0.2.016
0.1.21
0.1.10
0.1.01
0.0.11173
0.0.100
0.0.9257
0.0.80
0.0.71
0.0.60
0.0.50
0.0.40
0.0.31
0.0.20
0.0.10
0.0.00

Package Sidebar

Install

npm i @terrazzo/plugin-css

Weekly Downloads

18,787

Version

0.7.2

License

MIT

Unpacked Size

65.1 kB

Total Files

20

Last publish

Collaborators

  • drewpowers