Use standalone CLI of TailwindCSS

This commit is contained in:
Akira Tempaku 2024-10-03 02:03:14 +09:00
commit b9be244ff6
8 changed files with 46 additions and 24 deletions
src/routes

View file

@ -6,8 +6,18 @@
(defcomp page ()
(hsx
(h1 :class "text-primary"
"こんにちは")))
(<>
(h1 :class "text-green-600"
"こんにちは")
(div :x-data "{
open: false,
get isOpen() { return this.open },
toggle() { this.open = ! this.open },
}"
(button :@click "toggle()"
"Toggle")
(div :x-show "isOpen"
"Content ...")))))
(defun handle-get (params)
(declare (ignore params))