Tailwind classes in OCaml
1(** Typography utilities *) 2 3(** Typography configuration *) 4type t 5 6(** Font family *) 7type font_family = 8 | Sans 9 | Serif 10 | Mono 11 12(** Font size *) 13type font_size = 14 | Xs | Sm | Base | Lg | Xl 15 | Xl2 | Xl3 | Xl4 | Xl5 | Xl6 16 | Xl7 | Xl8 | Xl9 17 18(** Font weight *) 19type font_weight = 20 | Thin | Extralight | Light | Normal | Medium 21 | Semibold | Bold | Extrabold | Black 22 23(** Font style *) 24type font_style = 25 | Italic 26 | Not_italic 27 28(** Letter spacing *) 29type letter_spacing = 30 | Tighter | Tight | Normal | Wide | Wider | Widest 31 32(** Line height *) 33type line_height = 34 | None | Tight | Snug | Normal | Relaxed | Loose 35 | Rem of float 36 37(** Text alignment *) 38type text_align = 39 | Left | Center | Right | Justify | Start | End 40 41(** Text decoration *) 42type text_decoration = 43 | Underline | Overline | Line_through | No_underline 44 45(** Text transform *) 46type text_transform = 47 | Uppercase | Lowercase | Capitalize | Normal_case 48 49(** Set font family *) 50val font_family : font_family -> t 51 52(** Set font size *) 53val font_size : font_size -> t 54 55(** Set font weight *) 56val font_weight : font_weight -> t 57 58(** Set font style *) 59val font_style : font_style -> t 60 61(** Set letter spacing *) 62val letter_spacing : letter_spacing -> t 63 64(** Set line height *) 65val line_height : line_height -> t 66 67(** Set text alignment *) 68val text_align : text_align -> t 69 70(** Set text decoration *) 71val text_decoration : text_decoration -> t 72 73(** Set text transform *) 74val text_transform : text_transform -> t 75 76(** Set text color (delegates to Color module) *) 77val text_color : Color.t -> t 78 79(** Convert to CSS class *) 80val to_class : t -> Css.t 81 82(** Common text utilities *) 83val text_xs : Css.t 84val text_sm : Css.t 85val text_base : Css.t 86val text_lg : Css.t 87val text_xl : Css.t 88val font_bold : Css.t 89val font_normal : Css.t 90val italic : Css.t 91val underline : Css.t 92val uppercase : Css.t 93val lowercase : Css.t 94val capitalize : Css.t