Skip to main content

Using Custom CSS to enhance the Courses/completion Status badges

  • Jul 23, 2025 9:07 PM UTC
  • 5 replies
  • 474 views

pierre.andignac
Docebian
Forum|alt.badge.img

You’re looking to personalized the courses status badges (not started, in progress, completed)?

Below, you'll find a code snippet that you can insert into your Custom Styles 💡:

/* *********************************************** */
/* Course Status Label Colors - Card, List, Channels */
/* *********************************************** */

/* Not Started */
.ui-badge-status-success,
.ui-list-item-status-not_started .ui-badge-status-success {
background-color: #020050 !important;
color: #ffffff !important;
}

/* In Progress */
.ui-badge-status-neutral,
.ui-list-item-status-in_progress .ui-badge-status-neutral,
.ui-card-status-in_progress .ui-badge-status-neutral {
background-color: #F7681E !important;
color: #ffffff !important;
}

/* Completed */
.ui-card-header:has(+ ui-card-content span.color-accent-tertiary) .ui-badge-status-neutral,
.ui-list-item-status-completed .ui-badge-status-neutral,
.ui-card-status-completed .ui-badge-status-neutral {
background-color: #008767 !important;
color: #ffffff !important;
}

Go ahead and modify the color codes (#XXXXX) to your preference. Check out the examples below to see how the badges have been updated:

 

Hope it helps!

 

Similar articles:

5 replies

lrnlab
Hero III
Forum|alt.badge.img+10
  • Hero III
  • Jul 24, 2025 5:17 PM UTC

Nice, thank you.


Bouben
Influencer I
Forum|alt.badge.img+1
  • Influencer I
  • Jul 28, 2025 2:15 PM UTC

A must have !! Thank you Pierre


  • Contributor I
  • Mar 10, 2026 2:18 PM UTC

Hey! I used your code ​@pierre.andignac , and it worked, but not totally when I applied it. The colours on the In progress and Completed status badges are the same, and seems it seems the completed badge get overwritten by the css to In progress (see image below):

I used the same code as you, only changed colours and added border.

 

/* In Progress */

.ui-badge-status-neutral,

.ui-list-item-status-in_progress .ui-badge-status-neutral,

.ui-card-status-in_progress .ui-badge-status-neutral {

background-color: #FAE6C6 !important;

border: solid 1px #666666;

color: #333333 !important;

}

 

/* Completed */

.ui-card-header:has(+ ui-card-content span.color-accent-tertiary) .ui-badge-status-neutral,

.ui-list-item-status-completed .ui-badge-status-neutral,

.ui-card-status-completed .ui-badge-status-neutral {

background-color: #DAEDDD !important;

color: #333 !important;

}

I have tried so many times to check the code or try out other code, but nothing works out. Do you know what I potentially have done wrong and how to fix it?


pierre.andignac
Docebian
Forum|alt.badge.img

 

Let me investigate, and get back to you in private ​@NiniG 


  • Contributor I
  • Mar 30, 2026 8:15 AM UTC

Did you ever find out what could cause the code not working? ​@pierre.andignac