gavinmcfarland / rollup-plugin-theo

A rollup plugin which transforms design tokens using Theo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rollup-plugin-theo

Transform Design Tokens files using Theo.

Installation

npm install --save-dev rollup-plugin-theo

Usage

import theo from 'rollup-plugin-theo';

export default {
  //...
  plugins: [
    theo({
      input: "./path/to/tokens/index.yml",
      output: {
          file: "./path/to/tokens.css",
          format: "custom-properties.css"
      }
    })
  ]
};

See the list of formats available.

Feel free to raise an issue if something is working quite right or if you have some suggestions to make it better.

About

A rollup plugin which transforms design tokens using Theo

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 91.8%Language:CSS 8.2%