Socket
Book a DemoInstallSign in
Socket

@breadstone-infrastructure/style-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breadstone-infrastructure/style-dictionary

Common style-dictionary classes and functions

0.0.139
latest
Source
npmnpm
Version published
Weekly downloads
302
4.5%
Maintainers
1
Weekly downloads
 
Created
Source

📦 @breadstone-infrastructure/style-dictionary

Package StatusSource
npminfra/style-dictionary-plugins

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
# or
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');

// Register transforms
StyleDictionary.registerTransform(shadowCssTransform);
StyleDictionary.registerTransform(gradientTransform);
StyleDictionary.registerTransform(nameSnakeUpperCaseTransform);
StyleDictionary.registerTransform(quoteStringTransform);
StyleDictionary.registerTransform(listTransform);
StyleDictionary.registerTransform(letterSpacingTransform);

// Register preprocessors
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

FAQs

Package last updated on 08 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.