MetaMask / design-tokens

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

Add documentation on dynamic theming #629

Open georgewrmarshall opened 6 months ago

georgewrmarshall commented 6 months ago

Description

With the recent introduction of dynamic theming as a feature in our application, there is a need to create comprehensive documentation around its implementation and usage. This documentation will guide developers on how to effectively utilize dynamic theming to switch between light and dark modes at a component or section level, rather than relying on inverse variables. By wrapping a parent container in a provider(CSSinJS) or tagging it with data-theme="light" or data-theme="dark"(CSS variables), we can ensure that all child components respect the theming, thus preserving accessibility and visual consistency across the application.

Technical Details

Acceptance Criteria

Additional Information

The addition of dynamic theming documentation is a crucial step towards empowering our team to fully leverage this feature, enhancing the overall user experience of our application. Once completed, this documentation should be integrated into our existing developer documentation portal or repository, making it easily accessible to all team members.