module Playbook::Classnames

def generate_classname(*name_parts, separator: "_")

def generate_classname(*name_parts, separator: "_")
  [
    name_parts.compact.join(separator),
    prop(:classname),
    spacing_props,
    dark_props,
    max_width_props,
    z_index_props,
    number_spacing_props,
    shadow_props,
    line_height_props,
    display_props,
    cursor_props,
    flex_direction_props,
    flex_wrap_props,
    justify_content_props,
    justify_self_props,
    align_items_props,
    align_content_props,
    align_self_props,
    flex_props,
    flex_grow_props,
    flex_shrink_props,
    order_props,
    position_props,
  ].compact.join(" ")
end