diff --git a/src/app.css b/src/app.css index 61d870c3..21d63e48 100644 --- a/src/app.css +++ b/src/app.css @@ -3,7 +3,6 @@ @config '../tailwind.config.cjs'; - @layer base { *, ::after, diff --git a/src/app.html b/src/app.html index 0824ddd2..0a202eee 100644 --- a/src/app.html +++ b/src/app.html @@ -1,6 +1,6 @@ - +
diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 7b6a7643..a32c74ac 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -33,7 +33,16 @@ export const handle = sequence(async ({ event, resolve }) => { } } - const response = await resolve(event); +const theme = event.cookies.get("theme-mode") || "light"; + + // Process request with theme injection + const response = await resolve(event, { + transformPageChunk: ({ html }) => { + // Inject theme class into HTML element + return html.replace(' @@ -458,7 +458,7 @@ > @@ -543,10 +543,10 @@ method="POST" action="?/cancelSubscription" use:enhance={submitCancellation} - class="modal-box w-full bg-secondary flex flex-col items-center" + class="modal-box w-full bg-secondary border border-gray-600 flex flex-col items-center" > -