Customise UI

Overview

This document provides the customisation details for DIGIT UI. Customisation can be classified broadly into two types -

  1. Overriding the Component/Hooks/CSS

  2. Overwriting the required changes directly into the Micro-ui-internals

Overriding

Overriding involves making all customisation changes exclusively within the micro-ui/web directory.

For CSS

Within the custom CSS module, define customised CSS using the same class name or ID. Afterwards, publish the changes. Ensure to reference this custom CSS file in the index.html to reflect the modifications on the website.

<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />// Some code

For Components/Hooks

For overriding any components, re-register the same component with the same name in the customisation folder. The latest changes are reflected.

Overwriting

Overwriting involves directly modifying the micro-ui-internals directory. This is a slightly more challenging method to incorporate changes. Make sure the Docker file is updated as per the code below and includes the install-deps.sh script.

The workspace in the web/package.json should be updated as below:

Last updated

Was this helpful?