MetaMask / design-tokens

Design tokens to be used throughout MetaMask products
https://metamask.github.io/design-tokens/?path=/docs/getting-started-introduction--docs
27 stars 15 forks source link

Fix Broken CSS Export in Design Tokens Package #609

Closed georgewrmarshall closed 7 months ago

georgewrmarshall commented 7 months ago

Description

This PR addresses the issue of the broken CSS export in the design tokens package that occurred after the v2 release. The fix ensures that the CSS export functions correctly and can be used without issues in projects that depend on it.

Related issues

Fixes: #608

Manual testing steps

  1. Pull this branch
  2. In the root folder run npm pack this creates a tarball of the same format that would be sent to the registry
  3. Inspect the tarbal to see the CSS file included

Screenshots/Recordings

Before

Running npm pack before update

https://github.com/MetaMask/design-tokens/assets/8112138/404ca78c-3921-4117-a887-757e3eb6b175

After

Running npm pack after update and inspecting folder

https://github.com/MetaMask/design-tokens/assets/8112138/b95937a3-2661-4756-8d43-a1e01f613082

Pre-merge author checklist

Pre-merge reviewer checklist