https://htmx.org logo
Join Discord
Powered by
# ocaml-htmx
  • s

    strong-park-27502

    05/08/2023, 2:34 AM
    I'm uneffected by this reply
  • b

    brave-vr-13067

    05/08/2023, 2:38 AM
    I just added the hosted script.
    Copy code
    script ~a:[a_src (Xml.uri_of_string "https://cdn.tailwindcss.com")] (txt "")
  • b

    brave-vr-13067

    05/08/2023, 2:39 AM
    in my head
  • s

    strong-park-27502

    05/08/2023, 2:39 AM
    And then you can just use the classes
  • s

    strong-park-27502

    05/08/2023, 2:39 AM
    ?
  • b

    brave-vr-13067

    05/08/2023, 2:39 AM
    You'll know it's working because any H1 and such becomes tiny
  • b

    brave-vr-13067

    05/08/2023, 2:39 AM
    yeah
  • s

    strong-park-27502

    05/08/2023, 2:39 AM
    Is it a big bundle?
  • s

    strong-park-27502

    05/08/2023, 2:39 AM
    Or who cares, ppl use react
  • b

    brave-vr-13067

    05/08/2023, 2:40 AM
    484 bytes
  • b

    brave-vr-13067

    05/08/2023, 2:40 AM
    according to Chrome's network tab
  • b

    brave-vr-13067

    05/08/2023, 2:41 AM
    It's definitely bigger than that... but it's not terrible
  • s

    strong-park-27502

    05/08/2023, 2:41 AM
    OK, cool. I'll try it next time I get a chance to work on stuff.
  • s

    strong-park-27502

    05/08/2023, 2:41 AM
    Could probably generate some code to do more typesafe tailwind stuffs
  • b

    brave-vr-13067

    05/08/2023, 2:42 AM
    Yeah, that would be cool
  • b

    brave-vr-13067

    05/08/2023, 2:43 AM
    I'm just putsing, but you can snag whatever you want from my test repo: https://github.com/sam-huckaby/whnvr.com
  • b

    brave-vr-13067

    05/08/2023, 2:43 AM
    (disclaimer: there's not a lot there)
  • g

    great-cartoon-12331

    05/08/2023, 2:57 AM
    i just managed to get the Tailwind CSS IntelliSense addon working in VSCode with the following setting:
    Copy code
    json
    "tailwindCSS.experimental.classRegex": [
      "class_ \"([^\"]*)"
    ]
  • g

    great-cartoon-12331

    05/08/2023, 2:58 AM
    for TyXML the equivalent will be
    a_class
  • g

    great-cartoon-12331

    05/08/2023, 2:58 AM
    or actually it would probably be a bit more complex because each class would be a separate list item
  • g

    great-cartoon-12331

    05/08/2023, 2:59 AM
    idea from https://www.paolotiu.com/blog/get-tailwind-intellisense-anywhere
  • b

    brave-vr-13067

    05/08/2023, 2:13 PM
    For those who use Neovim, I'm wondering if maybe we can dust this repo off and make it work for at least compile-time checks: https://github.com/dylanirlbeck/tailwind-ppx
  • w

    white-solstice-74888

    05/08/2023, 3:41 PM
    I thought we had something like this for VSCode as well, but I could not find it 😢 . That is really nice, it reminds me of the gql with rescript that is great.
  • b

    brave-vr-13067

    05/10/2023, 1:54 PM
    Just watched antron_ML reply to @great-cartoon-12331's header timestamp issue on stream. It's pretty crazy that there are no really solid date/time libraries that return float...
  • g

    great-cartoon-12331

    05/10/2023, 2:26 PM
    oh i missed it, will need to watch the video later. there is the built-in
    Unix.time
    ... 🤔
  • p

    proud-vegetable-51349

    05/10/2023, 3:00 PM
    I like Timedesc / timere
  • Working on my OCaml webapp. - yawaramin ...
    g

    great-cartoon-12331

    05/14/2023, 7:26 PM
    just finished today's stream, added more ETag-based caching of htmx partials https://www.twitch.tv/videos/1819949433
    s
    a
    • 3
    • 5
  • a

    adamant-plastic-42165

    05/17/2023, 5:09 AM
    https://twitter.com/ThePrimeagen/status/1658557155610435585
  • e

    early-australia-38728

    05/23/2023, 4:20 PM
    I'm a little peeved I didn't start/suggest this channel ;-P
  • a

    agreeable-midnight-69265

    05/25/2023, 4:30 AM