Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

junedc's avatar

Nova4 keeping the dark theme in header

I want to customize the background header in Nova4 to be always in dark theme. The problem is when the user change the theme to light mode, my logo which has a white color in it is being affected.

0 likes
2 replies
hupp's avatar

@junedc you can try with css changes as described bellow First, you can create a custom CSS file and add the following code:

.nova-header {
    background-color: #1d2129;
    color: #fff;
}

This code sets the background color of the header to a dark color and the font color to white.

Next, you can modify the CSS styles for both the dark and light themes to include the same header styles. To do this, you can add the following code to the resources/css/nova-dark.css and resources/css/nova-light.css files:

@import url('custom.css');

This code imports the custom CSS file we created earlier and includes the header styles for both the dark and light themes.

junedc's avatar

thanks @hupp

based on your answer manage to do this by

  header {
        background-color: #333 !important;
    }

Please or to participate in this conversation.