Can I set a CSS-class on the node in a view list based on a text field of the node? As I understand, I need a module like this: https://www.drupal.org/project/field_formatter_css_class but for Drupal 8

For example, I want to highlight one node in the views using CSS-class, how to do this?

PS

Finally I got necessary result:

/**
 * Preprocess function for views-view-grid.tpl.php.
 */
function themename_theme_preprocess_views_view_grid(&amp;$vars) {
   foreach ($vars['items'] as $row) {
        foreach ($row['content'] as $item) {
             $subclass=$item['content']['#row']-&gt;_entity-&gt;field_fieldname;
             if(!empty($subclass[0])){
                $item['attributes']['class'][] = 'col-'. $subclass[0]-&gt;value;
             }
        }
   }
}
/**
 * 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();
}