Use standalone CLI of TailwindCSS
This commit is contained in:
parent
34eb2e000a
commit
b9be244ff6
8 changed files with 46 additions and 24 deletions
src/routes
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue