-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ObsUX] [APM] Migrate APM from styled-components to @emotion #202765
Labels
EUI Visual Refresh
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
v9.0.0
Comments
MiriamAparicio
added
EUI Visual Refresh
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
v9.0.0
labels
Dec 3, 2024
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
MiriamAparicio
added a commit
that referenced
this issue
Dec 18, 2024
Closes #202765 ### Summary While working on the visual refresh for the new EUI theme Borealis we figured that was a good time to do the recommended migration from `styled-components` to `@emotion` ### What has been done - Migrate apm plugin from `styled-components` to `@emotion` - Eui Visual Refresh for Borealis new theme - All usage of color palette tokens and functions now pull from the theme, and correctly update to use new colors when the theme changes from Borealis to Amsterdam and vice versa - All references to renamed tokens have been updated to use the new token name - Remove usage of deprecated `useEuiBackgroundColor` - All usages of "success" colors have been updated to `accentSecondary` and `textAccentSecondary` as needed ### Not this time There are some color values on the server side, and the values are static they would not update properly as dynamic tokens do. Eui guidance right now is to keep these as they are for now (meaning to keep using the JSON tokens). ### How to test #### Running Kibana with the Borealis theme In order to run Kibana with Borealis, you'll need to do the following: - Set the following in kibana.dev.yml: uiSettings.experimental.themeSwitcherEnabled: true - Run Kibana with the following environment variable set: KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn start - This will expose a toggle under Stack Management > Advanced Settings > Theme version, which you can use to toggle between Amsterdam and Borealis.
JoseLuisGJ
pushed a commit
to JoseLuisGJ/kibana
that referenced
this issue
Dec 19, 2024
…#204222) Closes elastic#202765 ### Summary While working on the visual refresh for the new EUI theme Borealis we figured that was a good time to do the recommended migration from `styled-components` to `@emotion` ### What has been done - Migrate apm plugin from `styled-components` to `@emotion` - Eui Visual Refresh for Borealis new theme - All usage of color palette tokens and functions now pull from the theme, and correctly update to use new colors when the theme changes from Borealis to Amsterdam and vice versa - All references to renamed tokens have been updated to use the new token name - Remove usage of deprecated `useEuiBackgroundColor` - All usages of "success" colors have been updated to `accentSecondary` and `textAccentSecondary` as needed ### Not this time There are some color values on the server side, and the values are static they would not update properly as dynamic tokens do. Eui guidance right now is to keep these as they are for now (meaning to keep using the JSON tokens). ### How to test #### Running Kibana with the Borealis theme In order to run Kibana with Borealis, you'll need to do the following: - Set the following in kibana.dev.yml: uiSettings.experimental.themeSwitcherEnabled: true - Run Kibana with the following environment variable set: KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn start - This will expose a toggle under Stack Management > Advanced Settings > Theme version, which you can use to toggle between Amsterdam and Borealis.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
EUI Visual Refresh
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
v9.0.0
Part of #200580
Summary
While working on the visual refresh for the new EUI theme Borealis we figured that was a good time to do the recommended migration from styled-components to @emotion
Reference for the migration:
What needs to be done
withTheme
bywithEuiTheme
useEuiBackgroundColor
accentSecondary
andtextAccentSecondary
as neededRunning Kibana with the Borealis theme
In order to run Kibana with Borealis, you'll need to do the following:
uiSettings.experimental.themeSwitcherEnabled: true
KBN_OPTIMIZER_THEMES="borealislight,borealisdark,v8light,v8dark" yarn start
Reference for the changes related with the visual refresh
#199715
The text was updated successfully, but these errors were encountered: