Custom panel classes can be added to visually style panels according to specific panel fields. For example, if you have a department field, you can assign different colours to panels depending on which department an employee belongs to. Custom panel classes can be used in conjuction with Project Themes and Panel Themes.
5. Go to Tools > Project > Project Settings, and click the edit icon next to the current theme.
6. In the CSS field, add classes to match the fieldname and value of the field, using the following format:
.[field name]_[value] {}
e.g.
.department_accounting { background-color:yellow!important; color:black!important; }
.department_it { background-color:orange!important; color:black!important; }
7. Click Save to confirm the changes. You may need to refresh the page before you see the new styles.
Note - A list of common selectors is available here: CSS Style Guide