From 2e6d18a759c6364984c8b8823d33dbf35eeaccb8 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Wed, 6 May 2026 17:26:51 +0530 Subject: [PATCH 1/7] BAH-4635 | Add bahmni-theme.json with Carbon token references Co-Authored-By: Claude Sonnet 4.6 (1M context) --- openmrs/apps/home/bahmni-theme.json | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 openmrs/apps/home/bahmni-theme.json diff --git a/openmrs/apps/home/bahmni-theme.json b/openmrs/apps/home/bahmni-theme.json new file mode 100644 index 000000000..3e87f28c1 --- /dev/null +++ b/openmrs/apps/home/bahmni-theme.json @@ -0,0 +1,38 @@ +{ + "background-brand": "#007d79", + "_background-brand": "$teal-60", + "text-inverse": "#ffffff", + "_text-inverse": "white", + "icon-inverse": "#ffffff", + "_icon-inverse": "white", + "button-primary": "#007d79", + "_button-primary": "$teal-60", + "button-primary-hover": "#006b68", + "_button-primary-hover": "$teal-60-hover", + "button-primary-active": "#004144", + "_button-primary-active": "$teal-80", + "button-tertiary": "#007d79", + "_button-tertiary": "$teal-60", + "button-tertiary-hover": "#006b68", + "_button-tertiary-hover": "$teal-60-hover", + "button-tertiary-active": "#007d79", + "_button-tertiary-active": "$teal-60", + "interactive": "#007d79", + "_interactive": "$teal-60", + "focus": "#007d79", + "_focus": "$teal-60", + "border-interactive": "#007d79", + "_border-interactive": "$teal-60", + "link-primary": "#007d79", + "_link-primary": "$teal-60", + "link-primary-hover": "#005d5d", + "_link-primary-hover": "$teal-70", + "link-secondary": "#005d5d", + "_link-secondary": "$teal-70", + "link-visited": "#8A3FFC", + "_link-visited": "$purple-60", + "link-inverse-visited": "#BE95FF", + "_link-inverse-visited": "$purple-40", + "layer-01": "#f4f4f4", + "_layer-01": "$gray-10" +} From 15ac846f446a663461f7cdd864ed26f30a30cb6a Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Mon, 11 May 2026 13:17:08 +0530 Subject: [PATCH 2/7] BAH-4635 | [Feature UI] White-Label Override Config Mechanism --- openmrs/apps/home/bahmni-theme.json | 42 +++++------------------------ 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/openmrs/apps/home/bahmni-theme.json b/openmrs/apps/home/bahmni-theme.json index 3e87f28c1..311ca23b3 100644 --- a/openmrs/apps/home/bahmni-theme.json +++ b/openmrs/apps/home/bahmni-theme.json @@ -1,38 +1,10 @@ { - "background-brand": "#007d79", - "_background-brand": "$teal-60", - "text-inverse": "#ffffff", - "_text-inverse": "white", - "icon-inverse": "#ffffff", - "_icon-inverse": "white", - "button-primary": "#007d79", - "_button-primary": "$teal-60", - "button-primary-hover": "#006b68", - "_button-primary-hover": "$teal-60-hover", - "button-primary-active": "#004144", - "_button-primary-active": "$teal-80", - "button-tertiary": "#007d79", - "_button-tertiary": "$teal-60", - "button-tertiary-hover": "#006b68", - "_button-tertiary-hover": "$teal-60-hover", - "button-tertiary-active": "#007d79", - "_button-tertiary-active": "$teal-60", - "interactive": "#007d79", - "_interactive": "$teal-60", - "focus": "#007d79", - "_focus": "$teal-60", - "border-interactive": "#007d79", - "_border-interactive": "$teal-60", - "link-primary": "#007d79", - "_link-primary": "$teal-60", - "link-primary-hover": "#005d5d", - "_link-primary-hover": "$teal-70", - "link-secondary": "#005d5d", - "_link-secondary": "$teal-70", + "primary": "#007d79", + "primary-text": "#ffffff", + "primary-hover": "#006b68", + "primary-active": "#004144", + "link-hover": "#005d5d", "link-visited": "#8A3FFC", - "_link-visited": "$purple-60", - "link-inverse-visited": "#BE95FF", - "_link-inverse-visited": "$purple-40", - "layer-01": "#f4f4f4", - "_layer-01": "$gray-10" + "link-visited-on-dark": "#BE95FF", + "background": "#f4f4f4" } From 5642d62038d586ad1997f6938973bf2848361e27 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Fri, 15 May 2026 12:41:07 +0530 Subject: [PATCH 3/7] BAH-4635 | Address PR review comments on white-label config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename bahmni-theme.json → bahmni-brand.json to reflect white-labelling/branding purpose rather than theme-switching - Rename 'background' key → 'layer-01' to use the precise Carbon token name and avoid ambiguity with the app's main background Co-Authored-By: Claude Sonnet 4.6 (1M context) --- openmrs/apps/home/{bahmni-theme.json => bahmni-brand.json} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename openmrs/apps/home/{bahmni-theme.json => bahmni-brand.json} (89%) diff --git a/openmrs/apps/home/bahmni-theme.json b/openmrs/apps/home/bahmni-brand.json similarity index 89% rename from openmrs/apps/home/bahmni-theme.json rename to openmrs/apps/home/bahmni-brand.json index 311ca23b3..ca3279e50 100644 --- a/openmrs/apps/home/bahmni-theme.json +++ b/openmrs/apps/home/bahmni-brand.json @@ -6,5 +6,5 @@ "link-hover": "#005d5d", "link-visited": "#8A3FFC", "link-visited-on-dark": "#BE95FF", - "background": "#f4f4f4" + "layer-01": "#f4f4f4" } From a28fc8527841bbb88db04abc1af75fb63e352228 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Fri, 15 May 2026 17:18:57 +0530 Subject: [PATCH 4/7] =?UTF-8?q?BAH-4635=20|=20Rename=20bahmni-brand.json?= =?UTF-8?q?=20=E2=86=92=20brand-extension.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 (1M context) --- openmrs/apps/home/{bahmni-brand.json => brand-extension.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openmrs/apps/home/{bahmni-brand.json => brand-extension.json} (100%) diff --git a/openmrs/apps/home/bahmni-brand.json b/openmrs/apps/home/brand-extension.json similarity index 100% rename from openmrs/apps/home/bahmni-brand.json rename to openmrs/apps/home/brand-extension.json From 5c8a9353c64f6189f0a8e7db007dcd7e8399473b Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Mon, 18 May 2026 12:38:32 +0530 Subject: [PATCH 5/7] =?UTF-8?q?BAH-4635=20|=20Rename=20brand-extension.jso?= =?UTF-8?q?n=20=E2=86=92=20white-label-extension.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 (1M context) --- .../home/{brand-extension.json => white-label-extension.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename openmrs/apps/home/{brand-extension.json => white-label-extension.json} (100%) diff --git a/openmrs/apps/home/brand-extension.json b/openmrs/apps/home/white-label-extension.json similarity index 100% rename from openmrs/apps/home/brand-extension.json rename to openmrs/apps/home/white-label-extension.json From d100473e760b73cf1e427c328493af7977ceb860 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Mon, 18 May 2026 12:58:36 +0530 Subject: [PATCH 6/7] BAH-4635 | Rename to white-label-extension.json; update config keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename brand-extension.json → white-label-extension.json - Rename key layer-01 → background-secondary - Rename key link-visited-on-dark → link-visited-inverse Co-Authored-By: Claude Sonnet 4.6 (1M context) --- openmrs/apps/home/white-label-extension.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmrs/apps/home/white-label-extension.json b/openmrs/apps/home/white-label-extension.json index ca3279e50..0d021fa0c 100644 --- a/openmrs/apps/home/white-label-extension.json +++ b/openmrs/apps/home/white-label-extension.json @@ -1,10 +1,10 @@ { - "primary": "#007d79", + "primary-text": "#ffffff", "primary-hover": "#006b68", "primary-active": "#004144", "link-hover": "#005d5d", "link-visited": "#8A3FFC", - "link-visited-on-dark": "#BE95FF", - "layer-01": "#f4f4f4" + "link-visited-inverse": "#BE95FF", + "background-secondary": "#f4f4f4" } From da7939b362fdc7db64d3794305e6a3d363df2068 Mon Sep 17 00:00:00 2001 From: Hamsavarthini R Date: Mon, 18 May 2026 13:34:31 +0530 Subject: [PATCH 7/7] BAH-4635 | Restore missing primary key in white-label-extension.json Co-Authored-By: Claude Sonnet 4.6 (1M context) --- openmrs/apps/home/white-label-extension.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmrs/apps/home/white-label-extension.json b/openmrs/apps/home/white-label-extension.json index 0d021fa0c..50e41fe41 100644 --- a/openmrs/apps/home/white-label-extension.json +++ b/openmrs/apps/home/white-label-extension.json @@ -1,5 +1,5 @@ { - + "primary": "#007d79", "primary-text": "#ffffff", "primary-hover": "#006b68", "primary-active": "#004144",