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