automatic class to all boolean fields
You can implement hook_preprocess_field() and add the class there.

Get field type :

$element = $variables['element'];
$type = $element['#field_type'];


Add something to field class :

$variables['classes_array'][] = 'class-name';