JxTailwindConverter class

Converts Tailwind CSS classes (v3 and v4 syntax) to JX classes.

Every converted class is compiled by a JxEngine before being returned: a conversion that would not produce CSS in JX is reported instead of being guessed.

final report = JxTailwindConverter().convert('md:hover:bg-blue-500 px-4');
print(report.output); // md:hover:bg:blue-500 px:4

Constructors

JxTailwindConverter({JxEngine? engine})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(String classes) → JxTailwindReport
Converts a whitespace-separated string of classes.
convertClass(String source) → JxTailwindConversion
Converts a single class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited