Articles in this section
Category / Section

Enhancing KPI Card Widget Customization with Custom Theme Variables

Published:

Bold BI offers support for customizing the appearance of the KPI Card widget by using custom theme variables. These variables allow you to customize various aspects of the KPI Card widget’s appearance. Once you have customized the theme variables, you can refer to the provided knowledge base (KB) articles to learn how to generate the custom dashboard theme minified file with the customized KPI Card changes and upload it to the server.

KB Articles: How to generate custom dashboard theme and upload it to server

At first, download the most recent release package for the theme from the aforementioned knowledge base in Step 1 and extract it. Inside the extracted files, you will discover distinct theme files for each widget. By utilizing these files, you can personalize any widget and attain the outcome that you like across the dashboards. This article offers comprehensive guidance on modifying the KPI Card widget through the utilization of KPI Card widget theme variables.

KPI Card Widget Customization Using Theme Variables

You have the ability to customize the appearance of the KPI Card widget by utilizing the theme variables, which allow for adjustments to be made to the widget container’s border radius, background and border color, as well as the colors and font styles of the Widget Header, Sub-Title, KPI Card left as well as right label and value.

KPI Card widget Header

The following variables allows you to customize the font color, size and weight of the KPI card’s Header.

 --kpicard-widget-header-title-font-color:#0000ff;
 --kpicard-widget-header-title-fontsize:25px;
 --kpicard-widget-header-title-fontweight:1000;

KPI Card Box Widget Sub-Title

The following variables allows you to customize the font color, size and weight of the KPI card’s Sub-Title.

    --kpicard-widget-subtitle-font-color:#0000ff;
    --kpicard-widget-subtitle-fontsize:25px;
    --kpicard-widget-subtitle-fontweight:1000;

KPI Card Widget Left Label and Value

The following variables allows you to customize the font color, size and weight of the KPI card’s left label and value.

--kpicard-widget-leftlabel-font-color:#8ab9f1;
--kpicard-widget-leftlabel-fontsize:20px;
--kpicard-widget-leftlabel-fontweight:800;

--kpicard-widget-leftvalue-font-color:#00008b;
--kpicard-widget-leftvalue-fontsize:24px;
--kpicard-widget-leftvalue-fontweight:1000;

KPI Card Widget Right Label and Value

The following variables allows you to customize the font color, size and weight of the KPI card’s right label and Value.

--kpicard-widget-rightlabel-font-color:#8ab9f1;
--kpicard-widget-rightlabel-fontsize:20px;
--kpicard-widget-rightlabel-fontweight:800;

--kpicard-widget-rightvalue-font-color:#00008b;
--kpicard-widget-rightvalue-fontsize:24px;
--kpicard-widget-rightvalue-fontweight:1000;

KPI Card Widget KPI Value

The following variables allows you to customize the font color, size and weight of the KPI card’s value.

--kpicard-widget-kpivalue-font-color:#00008b;
--kpicard-widget-kpivalue-fontsize:24px;
--kpicard-widget-kpivalue-fontweight:1000;

KPI Card Widget Title

The following variables allows you to customize the font color, size and weight of the KPI card’s title.

--kpicard-widget-title-font-color:#00008b;
--kpicard-widget-title-fontsize:25px;
--kpicard-widget-title-fontweight:1000;

KPI Card Widget Border radius and color

The following variables allows you to customize the border radius and color as well as the border of KPI card widget.

 --kpicard-widget-container-border-radius: var(--widget-container-border-radius);
 --kpicard-widget-container-border-color: var(--widget-container-border-color);
 --kpicard-widget-container-bg-color:var(--widget-primary-background);

KPI Card Widget Seperator and Border color

The following variables allows you to customize the Seperator color of KPI card widget.

 --kpicard-widget-seperator-color:#00008b;
 --kpicard-widget-border:#0000ff;

NOTE: It is crucial to emphasize that if you intend to customize the appearance of a specific widget using specific theme variables, refrain from customizing the KPI Card widget in the properties.

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
TF
Written by Thoulathul Fahmeetha
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied