Can I set a CSS-class on the node in a view list based on a text field of the node?
/**
 * Implements hook_preprocess_html().
 */
function themename_preprocess_html(&amp;$variables) {
$node = load_your_node// Load you node here and add proper condition and type for following code
    $variables['attributes']['class'][] = 'page-node-' . $node-&gt;custom_textfield();
}