Socket
Socket
Sign inDemoInstall

@nxkit/style-dictionary

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nxkit/style-dictionary

Nx Plugin to generate Style Dictionary projects & maintain your design tokens within your Nx workspace


Version published
Weekly downloads
2.3K
decreased by-76.5%
Maintainers
1
Weekly downloads
 
Created
Source



NxKit

@nxkit/style-dictionary

🔌 Plug Style Dictionary into your Nx workspace


Nx Plugin to generate Style Dictionary projects & maintain your design tokens within your Nx workspace

Quick Start

Create an Nx workspace and add the Style Dictionary plugin

npx create-nx-workspace@latest my-org
npm install -D @nxkit/style-dictionary

Generate a Style Dictionary library

npx nx generate @nxkit/style-dictionary:lib my-tokens

Build your tokens

Build your design tokens

npx nx build my-tokens

To know more about the @nxkit/style-dictionary plugin, run:

npx nx list @nxkit/style-dictionary

Generate extensions

If you'd like to add customizatios to your Style Dictionary projects like:

  • Custom Actions
  • Custom Filters
  • Custom Formats
  • Custom Parsers
  • Custom Transform Groups
  • Custom Tranforms

you can generate and register them using the extension generator:

npx nx generate @nxkit/style-dictionary:extension --project my-tokens

The terminal will prompt you to choose the desired extensions, or they can be passed in a comma-separated string with the --extensions argument. For example:

npx nx generate @nxkit/style-dictionary:extension --project my-tokens --extensions actions,filters,transforms

That's it!

To know more about the @nxkit/style-dictionary plugin, run:

npx nx list @nxkit/style-dictionary

Keywords

FAQs

Package last updated on 01 Feb 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc