src/BuildamicFilters.php
/**
     * Takes all the inline attributes, font-size, margins, everything, then concatinates them into a big
     * string of tailwind classes.
     *
     * @param array|string $classes
     * @return string
     */
Takes all the inline attributes, font-size, margins, everything, then concatinates them into a big
string of tailwind classes.

@param array|string $classes
@return string
Takes all the inline attributes font - size margins everything then concatinates them into a big string of tailwind classes . @param array|string $classes @return string
protected static function generateTailwindClasses(array | string $classes): string
    {
        $generatedClasses = [];
        if (is_array($classes)) {
            foreach ($classes as $child) {
                if (! is_array($child)) {
                    $generatedClasses[] = $child;
                } else {
                    $generatedClasses[] = static::generateTailwindClasses($child);
                }
            }
        } else {
            $generatedClasses[] = $classes;
        }
        return trim(implode(' ', $generatedClasses), ' ');
    }
protected static function generateTailwindClasses ( array | string $ classes ) : string { $ generatedClasses = [ ] ; if ( is_array ( $ classes ) ) { foreach ( $ classes as $ child ) { if ( ! is_array ( $ child ) ) { $ generatedClasses [ ] = $ child ; } else { $ generatedClasses [ ] = static :: generateTailwindClasses ( $ child ) ; } } } else { $ generatedClasses [ ] = $ classes ; } return trim ( implode ( ' ' , $ generatedClasses ) , ' ' ) ; }
Takes all the inline attributes, font-size, margins, everything, then concatinates them into a big
 string of tailwind classes.
Takes all the inline attributes font - size margins everything then concatinates them into a big string of tailwind classes .