Open ricardovdheijden opened 4 months ago
For the time being: You could probably dynamically load a CSS, in the head section of the app?
E.g.:
<Head>
<link rel="stylesheet" href={`/styles/eui_theme_${themeMode}.min.css`} />
</Head>
Can be closed?
Waiting for EUI to come with new update.
The _app.tsx file imports a css file from EUI. This is the light theme css.
A solution must be found to either import light or dark theme css file and needs to keep working when toggling back and forth.
One thing to consider: EUI is migrating all styles to a css-in-js solution. Once an EUI component is migrated to css-in-js it wil properly toggle to dark theme and back in our app. This means that we could decide to "wait out" the migration of all EUI components.