Skip to content
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

Overriding default themes #15

Open
BenAOlson opened this issue Sep 23, 2020 · 1 comment
Open

Overriding default themes #15

BenAOlson opened this issue Sep 23, 2020 · 1 comment

Comments

@BenAOlson
Copy link

Apologies if this is a silly question, but how might one override a default theme?

@chandlerprall
Copy link
Contributor

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:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants