Transform Design Tokens files using Theo.
npm install --save-dev rollup-plugin-theo
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.