You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Not a silly question at all! It takes a couple of steps, but should be straight forward - and feel free to ask if something doesn't make sense, I did not verify each individual step I'm laying out below.
To modify/add a theme, you'll need to clone the EUI repo and follow these instructions to set up a theme. To recompile only the CSS files (and not all of EUI), you can run:
node ./scripts/compile-scss.js "@elastic/eui"
which will create the new files in the dist dir within your EUI checkout. They can be copied into your next-eui-starter project and referenced by your next.config.js's buildThemeConfig
Activity
chandlerprall commentedon Sep 24, 2020
Not a silly question at all! It takes a couple of steps, but should be straight forward - and feel free to ask if something doesn't make sense, I did not verify each individual step I'm laying out below.
This project detects the available themes at build time by looking for css files in node_modules/@elastic/eui/dist
To modify/add a theme, you'll need to clone the EUI repo and follow these instructions to set up a theme. To recompile only the CSS files (and not all of EUI), you can run:
which will create the new files in the dist dir within your EUI checkout. They can be copied into your next-eui-starter project and referenced by your next.config.js's
buildThemeConfig