diff --git a/Dockerfile b/Dockerfile index ed89c54..a5966fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,8 @@ COPY . . RUN templ generate # Build frontend assets (tailwind + ts) -RUN bun run build:assets +# Touch input file to force Tailwind to rescan +RUN touch ./static/style.css && bun run build:assets # Generate sqlc code RUN sqlc generate diff --git a/static/style.css b/static/style.css index 8a74931..d6c1a79 100644 --- a/static/style.css +++ b/static/style.css @@ -3,6 +3,7 @@ @import '@toolwind/anchors'; @source ".."; +@source "../web/**/*.templ"; :root { color-scheme: light dark; diff --git a/web/templates/watch.templ b/web/templates/watch.templ index acdf74e..65c9b58 100644 --- a/web/templates/watch.templ +++ b/web/templates/watch.templ @@ -45,7 +45,7 @@ templ WatchPage(anime jikan.Anime, data shared.WatchPageData) { class="inline-flex h-8 items-center gap-1.5 bg-(--panel-soft) px-2 text-xs text-(--text) hover:bg-(--panel)" title="Autoplay: On" > -