-
Notifications
You must be signed in to change notification settings - Fork 841
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
[Meta][CSS-in-JS] Switching to emotion
#3912
Comments
emotion
Upgrade processQuestions
EUISee #5685 Charts themeCan we create a EuiThemeCharts similar to EuiThemeDefault that can be used primarily as a React hook to pass the theme down to an elastic-charts implementation? And it know the light/dark color mode automatically. Consuming apps
|
Will EUI theme be compatible with the theme specification used in theme-ui and styled system? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@lightwave I've converted your questions to a discussion to keep this Meta issue centered around tasks. #5351 |
Keen to help out with the implementation and rollout for this. Our use case:
It seems that we're blocked by this PR #4575 which will outline the game plan for moving forward & converting all other components from sass to emotion. What is the current status of this - and how can we help move this PR closer to alpha/beta/production? |
👋 Hey @jlalmes, that's exciting and we'd absolutely love the help during the conversion. You are correct about #4575 being the next step in the process. We like to put a lot of thinking up front in the endeavors so it's less likely that we look back and wish we had done it differently 😄 . We've tentatively given ourselves the typically slow month of December to figure that part out and have a final plan hopefully by the beginning of 2022. We totally understand your pain points and we hope this will solve most of them. Mostly we've been having to juggle prioritizing this work in tandem with other consumer priorities. |
emotion
emotion
This is a meta ticket to discuss the rollout plan of the CSS in JS solution (Emotion). It is for documenting the expected upgrade process both within EUI and by consuming applications, and being transparent about our timeline.
(Tentative) Timeline & tasks
Spring 2021:
Get the contexts built out and (partially) used in the EUI components and docs, as well as thoroughly tested in downstream applications like Kibana and Cloud. Figure out all the dependencies, hooks and possible state management that go with it.
themeName
colorMode: ‘light’ | ‘dark’
{ colors: {primar, secondary, etc} }
<ColorMode>
aka:<DarkMode>{component}</DarkMode>
for switching of themes at the component level ([CSS-in-JS] Context and foundation #4440)Summer 2021:
emotion
kibana#98157)emotion
, initial release #4511)EuiThemeProvider
global theme switching #5072)Fall 2021:
Start shifting component styles from SASS to JS. This part will probably take a full year and probably means phasing out the old 'legacy' theme, making Amsterdam default.
emotion
#5122)@emotion/react
([CSS-in-JS]@emotion/react
insrc/
#5121) from this point forward using only the generated CSS is not supported, EUI must be used through React2022-2024
Beyond component conversions:
[ ] Deprecate Sass usage in EUI docsNot being done, as EUI docs will be deprecated in favor of EUI+styled-components
to EmotionNeeds discussion
ghost
andink
in favor ofEuiThemeProvider
+colorMode
(see discussion)className
s was something Caroline and Greg were pushing for. I'm not convinced that it's even feasible considering Kibana however.The text was updated successfully, but these errors were encountered: