š¦ @breadstone-infrastructure/style-dictionary
Style Dictionary Plugins for Breadstone projects.
Reusable transforms and preprocessors for Style Dictionary to support advanced design token workflows.
š Project Structure
Part of the monorepo mosaik
Package path: infra/style-dictionary-plugins
Version: see npm
License: MIT
š¦ Installation
yarn add @breadstone-infrastructure/style-dictionary
npm install @breadstone-infrastructure/style-dictionary
š§ Usage
In your Style Dictionary config:
const {
shadowCssTransform,
gradientTransform,
nameSnakeUpperCaseTransform,
quoteStringTransform,
listTransform,
letterSpacingTransform,
expandShadowPreprocessor,
lintPreprocessor
} = require('@breadstone-infrastructure/style-dictionary');
StyleDictionary.registerTransform(shadowCssTransform);
StyleDictionary.registerTransform(gradientTransform);
StyleDictionary.registerTransform(nameSnakeUpperCaseTransform);
StyleDictionary.registerTransform(quoteStringTransform);
StyleDictionary.registerTransform(listTransform);
StyleDictionary.registerTransform(letterSpacingTransform);
StyleDictionary.registerPreprocessor(expandShadowPreprocessor);
StyleDictionary.registerPreprocessor(lintPreprocessor);
āļø Features
- Custom transforms: shadow, gradient, list, letter spacing, name transforms
- Preprocessors: lint and expand tokens before transformation
- TypeScript-first: fully typed
- Nx Workspace: part of a monorepo for scalable development
š Recommendations
- Use with Style Dictionary for design token management.
- Integrate into your Nx workspace for design system automation.
š¦ Publishing
yarn nx run style-dictionary-plugins:publish
š License
MIT Ā© Breadstone
Development
This package is part of the Breadstone Nx monorepo.
Use Nx for building and testing:
npx nx run style-dictionary-plugins:build
License
MIT Ā© Breadstone