feat: add dasyui for backpex

This commit is contained in:
Moritz 2025-07-03 16:37:54 +02:00
parent 5d0e8b5f78
commit a958b49a7c
Signed by: moritz
GPG key ID: 1020A035E5DD0824
7 changed files with 35 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en" class="[scrollbar-gutter:stable]">
<html lang="en" class="[scrollbar-gutter:stable]" data-theme={assigns[:theme] || "light"}>
<head>
{Application.get_env(:live_debugger, :live_debugger_tags)}
@ -13,7 +13,7 @@
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
</script>
</head>
<body class="bg-white">
<body>
{@inner_content}
</body>
</html>

View file

@ -8,6 +8,7 @@ defmodule MvWeb.Router do
plug :put_root_layout, html: {MvWeb.Layouts, :root}
plug :protect_from_forgery
plug :put_secure_browser_headers
plug Backpex.ThemeSelectorPlug
end
pipeline :api do