Confused about css #272
-
Hello! I'm currently using scalatags to go through the hypermedia systems book, and it's been going great. I was able to easily figure out how to create custom htmx attributes, and it's generally just been a joy to use. This, however, has me stumped. I have to add the following style to the document.
Any ideas? I feel like I'm missing something super obvious |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I would just write a plain css file, serve it with the server and add it to the page with |
Beta Was this translation helpful? Give feedback.
-
Thanks, that works like a charm :) |
Beta Was this translation helpful? Give feedback.
-
There's also ScalaCSS if you want a Scala DSL for type safe CSS. |
Beta Was this translation helpful? Give feedback.
-
BTW, it would be nice to trade experiences with Scalatags and htmx later on. Do you have any code online? |
Beta Was this translation helpful? Give feedback.
I would just write a plain css file, serve it with the server and add it to the page with
link(rel := "stylesheet", href := "/main.css")