Tailwind classes in OCaml
1(** Position and placement utilities *)
2
3(** Position configuration *)
4type t
5
6(** Position values *)
7type position = [
8 | `Static
9 | `Fixed
10 | `Absolute
11 | `Relative
12 | `Sticky
13]
14
15(** Inset direction *)
16type inset_dir = [
17 | `All
18 | `X
19 | `Y
20 | `Top
21 | `Right
22 | `Bottom
23 | `Left
24 | `Start
25 | `End
26]
27
28(** Set position type *)
29val position : position -> t
30
31(** Set inset (top/right/bottom/left) *)
32val inset : inset_dir -> Size.t -> t
33
34(** Z-index values *)
35val z_index : int option -> t
36
37(** Convert to CSS class *)
38val to_class : t -> Css.t
39
40(** Common position utilities *)
41val static : Css.t
42val fixed : Css.t
43val absolute : Css.t
44val relative : Css.t
45val sticky : Css.t
46
47(** Inset shortcuts *)
48val top : Size.t -> t
49val right : Size.t -> t
50val bottom : Size.t -> t
51val left : Size.t -> t
52val inset_x : Size.t -> t
53val inset_y : Size.t -> t