Skip to main content
Version: 7.0.0

Web: Custom Theme


Introduction

This page describes how to customize the application’s visual theme by updating CSS variables. You can modify the appearance of navigation menus, buttons, headers, fonts, and other interface elements to align with your organization's design standards.

Customizable CSS Variables

The following table outlines the available CSS variables and their effects:

VariableDefault ValueEffect
--navbar-bg-color#013366Changes the background color of the navbar and header.
--navbar-active-submenu-bg-color#1E5189Changes the background color of the submenu in the navbar when clicked.
--navbar-active-submenu-font-colorwhiteChanges the font color of the submenu in the navbar when clicked.
--navbar-active-submenu-font-weight500No description provided.
--navbar-active-submenu-font-size1remNo description provided.
--navbar-main-menu-active-bg-color#1E5198Changes the background color of the main menu in the navbar when clicked.
--navbar-main-menu-active-font-color#FFFFFFChanges the font color of the main menu in the navbar and other header elements.
--navbar-menu-hover-bg-color#1E5198Changes the background color of the main menu and submenu in the navbar when hovered.
--navbar-hover-submenu-bg-color#1E5198No description provided.
--navbar-hover-submenu-font-colorwhiteNo description provided.
--navbar-hover-submenu-font-weight500No description provided.
--navbar-hover-submenu-font-size1remNo description provided.

Buttons

VariableDefault ValueEffect
--primary-btn-font-colorwhiteChanges the font color of primary buttons, such as "Submit," "Create New Role," etc.
--primary-btn-bg-color#013366Changes the background color of primary buttons.
--primary-btn-hover-bg-color#1E5189Changes the background color of primary buttons when hovered.
--secondary-btn-font-color#474543Changes the font color of secondary buttons, such as "Edit," "History," and "Undo."
--secondary-btn-bg-color#FFFFFFChanges the background color of secondary buttons.
--secondary-btn-hover-bg-color#EDEBE9Changes the background color of secondary buttons when hovered.
--link-btn-border-radius4pxNo description provided.
--sm-btn-border-radius4pxNo description provided.
--md-btn-border-radius4pxNo description provided.
--lg-btn-border-radius6pxNo description provided.

Typography & Fonts

VariableDefault ValueEffect
--default-font-color#2D2D2DChanges the default font color for various components, including forms, task headings, and metrics.
--default-font-size1remSets the default font size for elements like navbar submenus and button labels.
--default-font-familyBC Sans, sans-serifNo description provided.
--default-font-family-urlhttps://raw.githubusercontent.com/bcgov/bc-sans/refs/heads/master/css/BC_Sans.css?family=BC+SansNo description provided.
--default-link-color#255A90No description provided.

Branding & General

VariableDefault ValueEffect
--custom-logo-pathhttps://raw.githubusercontent.com/jimin-aot/mcfd-reporting-assets/main/images/BC_CFD_H_RGB_rev.pngFully qualified logo URL to replace the app logo.
--custom-logo-horizontal-alignleftNo description provided.
--custom-logo-height3remNo description provided.
--custom-titleMCFD ReportingUpdates the header title.
--ff-primary#013366Sets the primary theme color for borders, active tabs, and other key elements.
--ff-secondary#EDEBE9Sets the secondary theme color for additional highlights and accents.
--hide-formsflow-logotrueNo description provided.
--default-danger-color#CE3E39No description provided.

Applying the Theme

  1. Review the table above and identify the CSS variables you want to customize.
  2. Define your custom values in a JSON theme file.
  3. Upload the JSON file to a publicly accessible location.
  4. Update your deployment configuration to reference this file by setting the CUSTOM_THEME_URL environment variable in the forms-flow-web service.

Tip: Test your changes in different browsers and screen sizes to ensure consistency across the application.