You can use a CSS media query to change styles based on the size of the screen.
If your navbar is an svg element (which it appears to be), then you’ll have to use the proper css properties to change these colors – such as fill
.
Here’s an example. Try resizing the screen and see how it changes.
.navbar {
fill: black;
}
@media screen and (max-width: 800px) {
.navbar {
fill: red;
}
}
<svg class="navbar" viewBox="0 0 100 80" width="40" height="40">
<rect width="100" height="20"></rect>
<rect y="30" width="100" height="20"></rect>
<rect y="60" width="100" height="20"></rect>
</svg>