Tailwind classes in OCaml
1(** Tailwind CLI integration for CSS processing *)
2
3type config = {
4 input_css: string; (** Path to input CSS file with Tailwind directives *)
5 output_css: string; (** Path to output CSS file *)
6 content: string list; (** List of content paths to scan for classes *)
7 minify: bool; (** Whether to minify the output *)
8}
9
10val default_config : config
11
12(** Check if Tailwind CLI is available *)
13val check_tailwind_cli : unit -> bool
14
15(** Generate Tailwind CSS from input file *)
16val process_css : config -> (string list, string) result
17
18(** Process CSS for a specific HTML file *)
19val process_for_html :
20 input_css:string ->
21 html_file:string ->
22 output_css:string ->
23 ?minify:bool ->
24 unit ->
25 (string list, string) result
26
27(** Write HTML to file and process CSS *)
28val write_and_process :
29 html_content:string ->
30 html_file:string ->
31 input_css:string ->
32 output_css:string ->
33 unit ->
34 (unit, string) result