This package is part of a set of tools that enable you to create and manage a single source of truth for your design system.
Learn more about the whole Design System workflow in our Anima Design System Automation guide.
This package contains transformers and parsers for design token workflows that use Style Dictionary
npm i -D @animaapp/style-dictionary
styleguide.config.js
const { registerAnima } = require('@animaapp/style-dictionary');
const StyleDictionary = require('style-dictionary');
registerAnima(StyleDictionary);
module.exports = {
source: ['./src/anima-ds-tokens.json'],
platforms: {
scss: {
transformGroup: 'scss',
buildPath: 'src/generated/',
files: [
{
destination: 'scss/_variables.scss',
format: 'css/variables',
},
],
},
},
};