Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Overriding default themes #15

Open

Description

@BenAOlson

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

Activity

  1. chandlerprall commented on Sep 24, 2020

    @chandlerprall
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions