MetaMask / design-tokens

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

Update CSS Build Process for Design Tokens Repository #675

Closed georgewrmarshall closed 2 months ago

georgewrmarshall commented 2 months ago

Description

The current build process for CSS in the design tokens repository requires optimization to align with the MetaMask module template conventions and to simplify the import path for better developer experience. The goal is to update the build process so that the CSS is exported from the dist folder, streamlining the integration of design tokens across projects. Additionally, we aim to improve the import path from @import '@metamask/design-tokens/src/css/design-tokens'; to a more concise @import '@metamask/design-tokens/styles';, making it easier and cleaner for developers to include design tokens in their projects.

Technical Details

Acceptance Criteria

Additional Notes

This update is a critical step towards standardizing our build processes across MetaMask repositories and enhancing the usability of our design tokens. By aligning with the MetaMask module template and simplifying the import path, we make it easier for developers to adopt and apply our design system consistently across projects.


This issue template provides a structured approach to proposing updates to the CSS build process in the design tokens repository, detailing the purpose, technical approach, acceptance criteria, and additional context for the task.