Tailwind classes in OCaml

metadata

+20 -37
+1 -3
CLAUDE.md
··· 1 - My goal is to build a high quality professions OCaml library to generate Tailwind CSS components. Build a core `tailwind` library that serialises the CSS into strings. Then build a `tailwind-html` library that uses the Htmlit OCaml HTML generation library https://github.com/dbuenzli/htmlit for common components. 2 - 3 - You can find full Tailwind docs in tailwind-llms.txt 1 + Look in .agent/ for instructions
+7 -15
dune-project
··· 1 - (lang dune 3.0) 1 + (lang dune 3.18) 2 2 3 3 (name tailwind) 4 4 5 5 (generate_opam_files true) 6 6 7 - (source 8 - (github yourusername/tailwind-ocaml)) 7 + (authors "Anil Madhavapeddy") 9 8 10 - (authors "Your Name") 11 - 12 - (maintainers "Your Name") 13 - 14 - (license MIT) 9 + (maintainers "Anil Madhavapeddy") 15 10 16 - (documentation https://yourusername.github.io/tailwind-ocaml/) 11 + (license ISC) 17 12 18 13 (package 19 14 (name tailwind) 20 15 (synopsis "Type-safe Tailwind CSS generation for OCaml") 21 - (description "A comprehensive OCaml library for generating Tailwind CSS classes with full type safety") 16 + (description "Library for generating Tailwind CSS classes") 22 17 (depends 23 18 ocaml 24 - (dune (>= 3.0)) 25 19 (alcotest :with-test) 26 20 (qcheck :with-test) 27 21 (odoc :with-doc))) ··· 29 23 (package 30 24 (name tailwind-html) 31 25 (synopsis "Tailwind CSS integration with Htmlit") 32 - (description "High-level component library using Tailwind CSS with Htmlit") 33 - (allow_empty) 26 + (description "Html combinators for Tailwind CSS") 34 27 (depends 35 28 ocaml 36 - (dune (>= 3.0)) 37 29 tailwind 38 30 (htmlit (>= 0.1.0)) 39 31 (alcotest :with-test) 40 32 (qcheck :with-test) 41 - (odoc :with-doc))) 33 + (odoc :with-doc)))
+6 -9
tailwind-html.opam
··· 1 1 # This file is generated by dune, edit dune-project instead 2 2 opam-version: "2.0" 3 3 synopsis: "Tailwind CSS integration with Htmlit" 4 - description: "High-level component library using Tailwind CSS with Htmlit" 5 - maintainer: ["Your Name"] 6 - authors: ["Your Name"] 7 - license: "MIT" 8 - homepage: "https://github.com/yourusername/tailwind-ocaml" 9 - doc: "https://yourusername.github.io/tailwind-ocaml/" 10 - bug-reports: "https://github.com/yourusername/tailwind-ocaml/issues" 4 + description: "Html combinators for Tailwind CSS" 5 + maintainer: ["Anil Madhavapeddy"] 6 + authors: ["Anil Madhavapeddy"] 7 + license: "ISC" 11 8 depends: [ 9 + "dune" {>= "3.18"} 12 10 "ocaml" 13 - "dune" {>= "3.0" & >= "3.0"} 14 11 "tailwind" 15 12 "htmlit" {>= "0.1.0"} 16 13 "alcotest" {with-test} ··· 31 28 "@doc" {with-doc} 32 29 ] 33 30 ] 34 - dev-repo: "git+https://github.com/yourusername/tailwind-ocaml.git" 31 + x-maintenance-intent: ["(latest)"]
+6 -10
tailwind.opam
··· 1 1 # This file is generated by dune, edit dune-project instead 2 2 opam-version: "2.0" 3 3 synopsis: "Type-safe Tailwind CSS generation for OCaml" 4 - description: 5 - "A comprehensive OCaml library for generating Tailwind CSS classes with full type safety" 6 - maintainer: ["Your Name"] 7 - authors: ["Your Name"] 8 - license: "MIT" 9 - homepage: "https://github.com/yourusername/tailwind-ocaml" 10 - doc: "https://yourusername.github.io/tailwind-ocaml/" 11 - bug-reports: "https://github.com/yourusername/tailwind-ocaml/issues" 4 + description: "Library for generating Tailwind CSS classes" 5 + maintainer: ["Anil Madhavapeddy"] 6 + authors: ["Anil Madhavapeddy"] 7 + license: "ISC" 12 8 depends: [ 9 + "dune" {>= "3.18"} 13 10 "ocaml" 14 - "dune" {>= "3.0" & >= "3.0"} 15 11 "alcotest" {with-test} 16 12 "qcheck" {with-test} 17 13 "odoc" {with-doc} ··· 30 26 "@doc" {with-doc} 31 27 ] 32 28 ] 33 - dev-repo: "git+https://github.com/yourusername/tailwind-ocaml.git" 29 + x-maintenance-intent: ["(latest)"]