Start a migration document outlining the approach to transition from the CSS-in-JS Box component in the MetaMask extension to the MetaMask Design System monorepo, leveraging Tailwind for styling. This document will focus on ensuring backwards compatibility while providing a clear and structured migration path for developers.
Technical Details
Analyze the current usage of the Box component across the MetaMask extension.
Identify compatibility gaps between the CSS-in-JS implementation and the Tailwind-based design system.
Define strategies for:
Retaining backwards compatibility during the migration.
Incrementally replacing Box component instances with the new design system components.
Mapping styled system props to Tailwind class equivalents.
Document best practices for:
Using Tailwind in the context of the MetaMask Design System.
Ensuring design token consistency during the migration.
Include examples of migrated components to demonstrate the process.
Acceptance Criteria
A draft migration document including:
Step-by-step instructions for migrating Box components.
Guidelines for handling backwards compatibility.
Examples of component migration (before and after).
Feedback from stakeholders to validate the proposed approach.
Clear next steps for expanding the migration process to other components.
References
Current implementation of Box component in the MetaMask extension.
Description
Start a migration document outlining the approach to transition from the CSS-in-JS
Box
component in the MetaMask extension to the MetaMask Design System monorepo, leveraging Tailwind for styling. This document will focus on ensuring backwards compatibility while providing a clear and structured migration path for developers.Technical Details
Box
component across the MetaMask extension.Box
component instances with the new design system components.Acceptance Criteria
Box
components.References
Box
component in the MetaMask extension.