XenForo CSS command to determine Light or Dark theme?

C

CZ Eddie

Guest
I need to change the header background based on whether the light or dark mode is currently in use.
Each of the two requires a different color header.

This isn't working for me:

Code:

Code:
/* Light theme - Change header background color */
[data-theme="light"] .p-header, [data-theme="light"] .p-header-inner {
    background-color: #bdad7b !important;
}

/* Dark theme - Revert to original header color */
[data-theme="dark"] .p-header, [data-theme="dark"] .p-header-inner {
    background-color...

Read more

Continue reading...