From 769f9b34781f010db426fef1af7d85e6fcb9a291 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 3 Nov 2024 20:48:42 -0800 Subject: dark mode --- bun.lockb | Bin 161054 -> 162583 bytes package.json | 1 + src/app.css | 6 +-- src/components/AppHeader.svelte | 34 ++++++------ src/components/Avatar.svelte | 2 +- src/components/LandingHeader.svelte | 2 +- src/lib/store.ts | 3 +- src/locales/en.json | 1 + src/routes/(app)/+layout.svelte | 3 +- src/routes/(app)/[username]/(profile)/+page.svelte | 4 +- src/routes/(app)/send/[...text]/+page.svelte | 2 +- src/routes/(app)/settings/[...tab]/+page.svelte | 2 +- .../(app)/settings/[...tab]/_security.svelte | 16 +++--- src/routes/(static)/+layout.svelte | 6 ++- static/icons/lock.svg | 2 +- static/icons/moon.svg | 4 ++ tailwind.config.cjs | 57 ++++++++++++++++----- vite.config.js | 35 +++++++------ 18 files changed, 109 insertions(+), 71 deletions(-) create mode 100644 static/icons/moon.svg diff --git a/bun.lockb b/bun.lockb index 08745e27..e0742e80 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index a0f20656..1c0c1b84 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "bip21": "^2.0.3", "bitcoin-address-validation": "^2.2.1", "buffer": "^6.0.3", + "daisyui": "^4.12.14", "date-fns": "^2.29.3", "html5-qrcode": "^2.3.8", "leaflet": "^1.9.3", diff --git a/src/app.css b/src/app.css index ba1db128..ca2ed53d 100644 --- a/src/app.css +++ b/src/app.css @@ -23,11 +23,7 @@ html { input, textarea { - @apply block border rounded-2xl px-5 py-4 w-full; -} - -button.primary { - @apply rounded-full border py-2 font-bold my-4 flex px-4 bg-white mx-auto hover:opacity-80; + @apply input input-bordered input-primary w-full } .select-styles { diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte index 9dd37d7e..8ec0b5ed 100644 --- a/src/components/AppHeader.svelte +++ b/src/components/AppHeader.svelte @@ -1,6 +1,6 @@ {#if !$loading}