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 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ importers: '@capacitor/push-notifications': specifier: ^7.0.1 version: 7.0.1(@capacitor/core@7.2.0) + '@capawesome/capacitor-android-dark-mode-support': + specifier: ^7.0.0 + version: 7.0.0(@capacitor/core@7.2.0) '@capawesome/capacitor-badge': specifier: ^7.0.1 version: 7.0.1(@capacitor/core@7.2.0) @@ -771,6 +774,11 @@ packages: peerDependencies: '@capacitor/core': '>=7.0.0' + '@capawesome/capacitor-android-dark-mode-support@7.0.0': + resolution: {integrity: sha512-xLa988v9MEnFZj7Aje3v2vvYbs5U3zk8vaO24OioXUV1ZPjGy4R2VkdoKG8fTsSYRdF6s4/8DpCuos8JLJqpjw==} + peerDependencies: + '@capacitor/core': '>=7.0.0' + '@capawesome/capacitor-badge@7.0.1': resolution: {integrity: sha512-jhVieRRVLgGO1NU7PW8uWZmf3WD4IsYUlkrJ82KuoRgLFx1tbJGwHU1ro0sUJmEwfLO9vldhBnJJ/J5nHrjbQQ==} peerDependencies: @@ -5609,6 +5617,10 @@ snapshots: dependencies: '@capacitor/core': 7.2.0 + '@capawesome/capacitor-android-dark-mode-support@7.0.0(@capacitor/core@7.2.0)': + dependencies: + '@capacitor/core': 7.2.0 + '@capawesome/capacitor-badge@7.0.1(@capacitor/core@7.2.0)': dependencies: '@capacitor/core': 7.2.0 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: {