Different colors and fonts dependent on roles in views results Views listings are made from many users, but some of them have special role that is more important.
Is there an easy way to give that special role different background color or font or font size when viewing views results ?
In your theme template.php file add this function

function THEMENAME_preprocess_html(&amp;$vars) {
  foreach($vars['user']-&gt;roles as $role {
    $vars['classes_array'][] = 'role-' . drupal_html_class($role);
  }
}


This will add the current role(s) to the body classes.

Now you can style it like this

body.role-admin .view-VIEW-CLASS {
  background: #eeeeee;
  font-size: 16px;
}