Tailwind classes in OCaml
1(** Layout utilities combining display, position, and box model *) 2 3(** Layout configuration *) 4type t 5 6(** Overflow values *) 7type overflow = 8 | Auto 9 | Hidden 10 | Clip 11 | Visible 12 | Scroll 13 14(** Box sizing *) 15type box_sizing = 16 | Border_box 17 | Content_box 18 19(** Object fit *) 20type object_fit = 21 | Contain 22 | Cover 23 | Fill 24 | None 25 | Scale_down 26 27(** Object position *) 28type object_position = 29 | Bottom | Center | Left | Left_bottom | Left_top 30 | Right | Right_bottom | Right_top | Top 31 32(** Set width *) 33val width : Size.t -> t 34 35(** Set height *) 36val height : Size.t -> t 37 38(** Set min width *) 39val min_width : Size.t -> t 40 41(** Set max width *) 42val max_width : Size.t -> t 43 44(** Set min height *) 45val min_height : Size.t -> t 46 47(** Set max height *) 48val max_height : Size.t -> t 49 50(** Set overflow *) 51val overflow : [`All | `X | `Y] -> overflow -> t 52 53(** Set box sizing *) 54val box_sizing : box_sizing -> t 55 56(** Set object fit *) 57val object_fit : object_fit -> t 58 59(** Set object position *) 60val object_position : object_position -> t 61 62(** Set aspect ratio *) 63val aspect : [`Auto | `Square | `Video | `Ratio of int * int] -> t 64 65(** Convert to CSS class *) 66val to_class : t -> Css.t 67 68(** Common width utilities *) 69val w_full : Css.t 70val w_screen : Css.t 71val w_auto : Css.t 72val w_fit : Css.t 73 74(** Common height utilities *) 75val h_full : Css.t 76val h_screen : Css.t 77val h_auto : Css.t 78val h_fit : Css.t