How to override default navbar link colors of Bootstrap 5 to custom color

How much ever I tried to change the color of the navbar links in Bootstrap 5, it never did the change. To do the change, the following had to be done in the CSS stylesheet file.

.nav-link {
   color: #dfb97c !important;
}

!important allows the default color given by Bootstrap 5 to be overridden by the custom color #dfb97c.

Do the same for navbar-brand.

.navbar-brand {
   color: #dfb97c !important;
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s