Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

style-dictionary-esm

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

style-dictionary-esm

Style once, use everywhere. A build system for creating cross-platform styles.

  • 1.9.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🪶 style-dictionary-esm

NPM version

An ESM-ready version of Style Dictionary.

  • Fully ESM-ready
  • Allows mocking fs dependency, improving browser support
  • Replaces console.log by consola, with custom levels
  • Replaces node-sass by dart-sass
  • Replaces glob by fast-glob
  • Drops lodash dependency
  • 100% coverage from upstream test suite
  • PNPM, tsup, Vite and Vitest for the repository

Install

npm i style-dictionary-esm

Why

I love Design Tokens and the Style Dictionary API!

Migrating to ESM is a tedious task, but I need it to integrate it inside my projects and toolchains.

I would happily move this work as a PR on the original repo, if this makes sense in the project roadmap!

This is an initial step in doing a Vite plugin for Style Dictionary.

Todos

  • Improve tree-shaking
    • Moving formats per-file and require none by default
    • Avoid relying on global export
  • Avoid relying on fs globally, but instead support unified storage layer
  • Make tests paralellizable, currently threads has to be set to false due to fs mismatchs

License

Apache 2.0

Keywords

FAQs

Package last updated on 28 Nov 2023

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc