<@U06TM7M40RK> How do we change the theme in datahub ui
To change the theme in the DataHub UI, you need to modify the theme configuration in the datahub-web-react
module. Here are the steps to achieve this:
-
Locate Theme Files: The theme configuration files are stored in the
datahub-web-react
module, specifically in the./src/conf/theme
directory. You can find the default theme files such astheme_light.config.json
andtheme_dark.config.json
there. -
Set Environment Variable: You need to set the
REACT_APP_THEME_CONFIG
environment variable to point to the desired theme configuration file. For example, to set the dark theme, you would setREACT_APP_THEME_CONFIG=theme_dark.config.json
. -
Restart the Container: After setting the environment variable, restart the frontend container to apply the changes.
Here is a step-by-step guide:
-
Edit the
.env
File:- Open the
.env
file in thedatahub-web-react
directory. - Set the
REACT_APP_THEME_CONFIG
variable to the desired theme file. For example, for the dark theme:REACT_APP_THEME_CONFIG=theme_dark.config.json
- Open the
-
Restart the Frontend Container:
- Restart the frontend container to apply the changes. This can typically be done using Docker commands or your container orchestration tool.
For more detailed information, you can refer to the <datahub-web-react | DataHub Theming Guide> and the <https://github.com/datahub-project/datahub/tree/master/datahub-web-react/src/conf/theme|theme files on GitHub>.
Would you like more detailed instructions or a specific example?
Sources:
- <Slack Discussion on Theming>
0 button
0 button
Hint: Mention @runllm in the thread for followups.
<@U06TM7M40RK> where is datahub-web-react module
The datahub-web-react
module is part of the DataHub project and contains the React application that serves as the DataHub UI. You can find it within the DataHub GitHub repository. Here’s how you can locate and work with it:
-
Clone the DataHub Repository: First, ensure you have cloned the DataHub repository from GitHub to your local machine. You can do this using the following command:
git clone https://github.com/datahub-project/datahub.git
-
Navigate to the Module: Once you have the repository cloned, navigate to the
datahub-web-react
directory:cd datahub/datahub-web-react
-
Structure and Files: Inside the
datahub-web-react
directory, you will find the source code for the React application, including configuration files, components, and theme files. -
Running the Application: You can run the React application locally by installing the necessary dependencies and starting the development server:
yarn install yarn start
This will start the application on
http://localhost:3000
.
For more detailed information about the datahub-web-react
module, you can refer to the <https://datahubproject.io/docs/0.13.1/datahub-web-react|DataHub Web React documentation> and the <https://github.com/datahub-project/datahub/blob/master/datahub-web-react/README.md|GitHub README>.
Would you like more detailed steps on setting up or customizing the module?
Sources:
- <https://github.com/datahub-project/datahub/blob/master/datahub-web-react/README.md|DataHub GitHub Repository>
- <https://datahubproject.io/docs/0.13.1/datahub-web-react|DataHub Web React documentation>
0 button
0 button
Hint: Mention @runllm in the thread for followups.