Tailwind classes in OCaml
1(** CSS Grid layout utilities *)
2
3(** Grid configuration *)
4type t
5
6(** Grid template columns *)
7type cols =
8 | None
9 | Subgrid
10 | Cols of int (** 1-12 columns *)
11
12(** Grid template rows *)
13type rows =
14 | None
15 | Subgrid
16 | Rows of int (** 1-12 rows *)
17
18(** Grid column/row span *)
19type span =
20 | Auto
21 | Full
22 | Span of int
23 | Start of int
24 | End of int
25
26(** Grid auto flow *)
27type flow =
28 | Row
29 | Col
30 | Dense
31 | Row_dense
32 | Col_dense
33
34(** Set grid template columns *)
35val template_cols : cols -> t
36
37(** Set grid template rows *)
38val template_rows : rows -> t
39
40(** Set grid column span *)
41val col : span -> t
42
43(** Set grid row span *)
44val row : span -> t
45
46(** Set grid auto flow *)
47val auto_flow : flow -> t
48
49(** Set grid auto columns *)
50val auto_cols : [`Auto | `Min | `Max | `Fr of int] -> t
51
52(** Set grid auto rows *)
53val auto_rows : [`Auto | `Min | `Max | `Fr of int] -> t
54
55(** Convert to CSS class *)
56val to_class : t -> Css.t
57
58(** Combine multiple grid properties *)
59val combine : t list -> Css.t