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(** Inset direction *)
15type inset_dir =
16 | All
17 | X
18 | Y
19 | Top
20 | Right
21 | Bottom
22 | Left
23 | Start
24 | End
25
26(** Set position type *)
27val position : position -> t
28
29(** Set inset (top/right/bottom/left) *)
30val inset : inset_dir -> Size.t -> t
31
32(** Z-index values *)
33val z_index : int option -> t
34
35(** Convert to CSS class *)
36val to_class : t -> Css.t
37
38(** Common position utilities *)
39val static : Css.t
40val fixed : Css.t
41val absolute : Css.t
42val relative : Css.t
43val sticky : Css.t
44
45(** Inset shortcuts *)
46val top : Size.t -> t
47val right : Size.t -> t
48val bottom : Size.t -> t
49val left : Size.t -> t
50val inset_x : Size.t -> t
51val inset_y : Size.t -> t