Tailwind classes in OCaml
at main 1.5 kB view raw
1(** Flexbox layout utilities *) 2 3(** Flexbox configuration *) 4type t 5 6(** Flex direction values *) 7type direction = [ 8 | `Row 9 | `Row_reverse 10 | `Col 11 | `Col_reverse 12] 13 14(** Flex wrap values *) 15type wrap = [ 16 | `Wrap 17 | `Wrap_reverse 18 | `Nowrap 19] 20 21(** Justify content values *) 22type justify = [ 23 | `Normal 24 | `Start 25 | `End 26 | `Center 27 | `Between 28 | `Around 29 | `Evenly 30 | `Stretch 31] 32 33(** Align items values *) 34type align_items = [ 35 | `Start 36 | `End 37 | `Center 38 | `Baseline 39 | `Stretch 40] 41 42(** Align content values *) 43type align_content = [ 44 | `Normal 45 | `Start 46 | `End 47 | `Center 48 | `Between 49 | `Around 50 | `Evenly 51 | `Stretch 52 | `Baseline 53] 54 55(** Align self values *) 56type align_self = [ 57 | `Auto 58 | `Start 59 | `End 60 | `Center 61 | `Stretch 62 | `Baseline 63] 64 65(** Set flex direction *) 66val direction : direction -> t 67 68(** Set flex wrap *) 69val wrap : wrap -> t 70 71(** Set justify content *) 72val justify : justify -> t 73 74(** Set align items *) 75val align_items : align_items -> t 76 77(** Set align content *) 78val align_content : align_content -> t 79 80(** Set align self *) 81val align_self : align_self -> t 82 83(** Set flex grow *) 84val grow : int option -> t 85 86(** Set flex shrink *) 87val shrink : int option -> t 88 89(** Set flex basis *) 90val basis : Size.t -> t 91 92(** Set flex shorthand *) 93val flex : [`Initial | `One | `Auto | `None] -> t 94 95(** Convert to CSS class *) 96val to_class : t -> Css.t 97 98(** Combine multiple flex properties *) 99val combine : t list -> Css.t