init(11): setting up tailwindcss

This commit is contained in:
efim 2023-06-26 06:54:41 +00:00
parent 4475943a98
commit 6fec3d54ee
3 changed files with 18 additions and 1 deletions

View File

@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

View File

@ -11,13 +11,18 @@ object App extends cask.MainRoutes {
def index() = doctype("html")(
html(
head(
tags2.title("Exercise 11")
tags2.title("Exercise 11"),
link(rel := "stylesheet", href := "/dist/output.css")
),
body(
cls := "bg-blue-100",
h1("Welcome to the future")
)
)
)
@cask.staticFiles("/dist") // this is what path gets matched
def distFiles() = "dist" // this is os path where files are looked up
initialize()
}

View File

@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.scala"],
theme: {
extend: {},
},
plugins: [],
}