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