There is a plan to migrate from styled-components to emotion, and this ticket focuses on styled-components usages for obs-ux-management related plugins and related information for this migration. This migration helps to avoid issues related to sharing components with platform plugins, as they have already started this migration. (Avoiding issues such as https://github.com/elastic/kibana/issues/186969)
Here is a comment from EUI team about this migration.
Here are hooks that can be used instead of styled-components ThemeContext: (comment)
Summary
There is a plan to migrate from
styled-components
toemotion,
and this ticket focuses onstyled-components
usages for obs-ux-management related plugins and related information for this migration. This migration helps to avoid issues related to sharing components with platform plugins, as they have already started this migration. (Avoiding issues such as https://github.com/elastic/kibana/issues/186969)Here is a comment from EUI team about this migration.
Here are hooks that can be used instead of styled-components ThemeContext: (comment)
Here are some PRs that tried to migrate some components :