diff --git a/package.json b/package.json index 8f0c4687..9037bb97 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "@capacitor/keyboard": "^7.0.0", "@capacitor/preferences": "^7.0.2", "@capacitor/push-notifications": "^7.0.1", + "@capawesome/capacitor-android-dark-mode-support": "^7.0.0", "@capawesome/capacitor-badge": "^7.0.1", "@getalby/sdk": "^5.1.0", "@poppanator/sveltekit-svg": "^4.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27990320..491d7044 100644 Binary files a/pnpm-lock.yaml and b/pnpm-lock.yaml differ diff --git a/src/app/components/Landing.svelte b/src/app/components/Landing.svelte index 57b35753..091c5629 100644 --- a/src/app/components/Landing.svelte +++ b/src/app/components/Landing.svelte @@ -23,7 +23,7 @@

The chat app built for self-hosted communities.

- diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index a3a9e085..230aa990 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -126,6 +126,7 @@ Object.assign(window, { get, nip19, + theme, ...lib, ...welshmanSigner, ...router, diff --git a/src/routes/discover/+page.svelte b/src/routes/discover/+page.svelte index 5dd5af51..753d628c 100644 --- a/src/routes/discover/+page.svelte +++ b/src/routes/discover/+page.svelte @@ -91,7 +91,7 @@ {#each relaySearch.searchOptions(term).slice(0, limit) as relay (relay.url)} diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index e880ea33..31bb05e1 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -32,7 +32,7 @@

{PLATFORM_NAME}

- + {#snippet icon()}
{/snippet} @@ -58,7 +58,7 @@
- diff --git a/tailwind.config.js b/tailwind.config.js index a44a84da..af3c0e39 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -8,6 +8,7 @@ config({path: ".env.template"}) /** @type {import('tailwindcss').Config} */ export default { content: ["./src/**/*.{html,js,svelte,ts}"], + darkMode: ['selector', '[data-theme="dark"]'], theme: { extend: {}, zIndex: {