@nxkit/style-dictionary

5.0.0 • Public • Published



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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.0.01,015latest

Version History

VersionDownloads (Last 7 Days)Published
5.0.01,015
4.0.1159
4.0.05
3.0.2175
3.0.10
3.0.00
2.3.0502
2.2.00
2.1.20
2.1.10
2.1.00
2.0.10
2.0.00
1.0.00
0.0.50
0.0.40
0.0.30

Package Sidebar

Install

npm i @nxkit/style-dictionary

Weekly Downloads

1,856

Version

5.0.0

License

MIT

Unpacked Size

950 kB

Total Files

165

Last publish

Collaborators

  • sebastiandg7