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" >
-
+

Are you sure?

You will no longer be charged for this subscription, and at the end of @@ -558,7 +558,7 @@ on:click={() => (isClicked = !isClicked)} class="{!isClicked ? '' - : 'hidden'} cursor-pointer px-7 py-2 mb-5 rounded bg-white sm:hover:bg-white/80 ease-out duration-50 text-center text-black text-[1rem] font-normal" + : 'hidden'} cursor-pointer px-7 py-2 mb-5 rounded bg-white dark:sm:hover:bg-white/80 ease-out duration-50 text-center text-black text-[1rem] font-normal" > Cancel Subscription {#if isClicked === true}