"text-lg", "small" => "text-xl", "regular" => "text-[1.1rem]", "medium" => "text-2xl", "large" => "text-3xl", ]; $font_size = array_key_exists($font, $font_sizes) ? $font_sizes[$font] : $font_sizes['medium']; # Color $color = $color ?? "primary-darker"; $flex = isset( $flex ) && ! $flex ? '' : 'flex'; $truncate = isset( $truncate ) && $truncate ? 'truncate' : ''; $allow_html = isset( $allow_html ) && $allow_html; # CSS classes $classes = BackWPupHelpers::clsx( "items-center gap-1 text-$color font-title", $flex, $truncate, $bold, $font_size, (isset($align) ? "justify-$align" : ""), $class, ); ?> < class=""> [] ] ) : esc_html( $title ); ?> $tooltip]); ?> >