Did you know ... Search Documentation:
Pack tailwind_pl_generate -- prolog/tailwind_generate/tw_utils.pl
PublicShow source

Collection of utility predicates and DCGS for parsing tailwind.

author
- James Cash
 value_unit_css(+Value, -CssValue, +Options) is det
Convert a parsed value Value into a CSS value, using the options Options to control the units applied to bare numbers as well as scaling factors.
 one_of(+EltsList, -MatchAtom)// is semidet
Finds the first element in EltsList that matches and unifies MatchAtom with the matching element as an atom.
 alternates(+DcgsList)// is semidet
Meta-DCG that finds the first DCG in DcgsList that successfully matches.
 signus(-Sign)// is semidet
DCG to parse a "sign" value -- + or -
 direction(-Dir)// is semidet
DCG to parse a "direction" value -- top, right, bottom, or left.
 axis(-Axis)// is semidet
DCG to parse an axis value -- x or y.
 auto(-Auto)// is semidet
DCG to parse an "auto" value.
 unset(-Unset)// is semidet
DCG to parse an "unset" value.
 num(-Num)// is semidet
DCG to parse a number.
 fraction(-Num)// is semidet
DCG to parse a fraction.
 percentage(-Percentage)// is semidet
DCG to parse a percentage value.
 length(-Length)// is semidet
DCG to parse a CSS length value.
 length_unit(-Unit)// is semidet
DCG to parse a CSS length unit.
 angle(-Angle)// is semidet
DCG to parse a CSS angle value.
 time(-Time)// is semidet
DCG to parse a CSS time value.
 resolution(-Res)// is semidet
DCG to parse a CSS resolution value.