Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Spacing Tokens to MetaMask Design System with Tailwind Preset Access for React and React Native Packages #33

Open
brianacnguyen opened this issue Oct 10, 2024 · 0 comments

Comments

@brianacnguyen
Copy link
Contributor

brianacnguyen commented Oct 10, 2024

Description:

This ticket aims to add spacing tokens from @metamask/design-tokens to the MetaMask Design System Tailwind preset, ensuring that both the React and React Native packages can access and utilize these tokens through Tailwind CSS presets. This will standardize spacing across both platforms, aligning with MetaMask design principles.

Requirements:

  • Add spacing tokens to the @metamask/metamask-design-system monorepo to provide consistent spacing across components.
  • Update both React and React Native packages to access the spacing tokens through their respective Tailwind presets.
  • Ensure that the Tailwind preset configuration in both packages includes the correct mapping of MetaMask spacing tokens to Tailwind spacing utilities (m, p, mt, mb, etc.).
  • Verify the tokens are usable in both web (React) and mobile (React Native) environments.
  • Ensure theme compatibility for both light and dark themes when using the spacing tokens.

Acceptance Criteria:

  • Spacing tokens are added to the @metamask/metamask-design-system monorepo
  • Both React and React Native packages have Tailwind presets that map spacing tokens correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant