From d50417ffefd35791b4e1584ed029c7baf50f12ad Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Sat, 10 Jan 2026 21:12:25 +0000 Subject: [PATCH 1/5] feat(#48): Add dark mode --- src/app.html | 2 +- src/lib/components/ThemeToggle.svelte | 62 ++++++++++++++ .../pokedex/PokedexEntryCatchRecord.svelte | 85 +++++++------------ .../components/pokedex/PokedexModal.svelte | 3 +- .../pokedex/PokedexViewBoxes.svelte | 24 +++++- src/lib/stores/theme.ts | 37 ++++++++ src/routes/+layout.svelte | 2 + 7 files changed, 158 insertions(+), 57 deletions(-) create mode 100644 src/lib/components/ThemeToggle.svelte create mode 100644 src/lib/stores/theme.ts diff --git a/src/app.html b/src/app.html index 3da94a7..355b414 100644 --- a/src/app.html +++ b/src/app.html @@ -1,5 +1,5 @@ - + diff --git a/src/lib/components/ThemeToggle.svelte b/src/lib/components/ThemeToggle.svelte new file mode 100644 index 0000000..d8f93a5 --- /dev/null +++ b/src/lib/components/ThemeToggle.svelte @@ -0,0 +1,62 @@ + + + diff --git a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte index 4644da5..a39925d 100644 --- a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte +++ b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte @@ -59,7 +59,7 @@ >
-
+
-

{pokedexEntry.pokemon}

- #{pokedexEntry.pokedexNumber.toString().padStart(3, '0')} +

{pokedexEntry.pokemon}

+ #{pokedexEntry.pokedexNumber.toString().padStart(3, '0')}
{#if showForms} -
+

Form: {pokedexEntry.form ? pokedexEntry.form : '-'}

{/if} -
+
{#if pokedexEntry.evolutionInformation}

How to evolve: {pokedexEntry.evolutionInformation}

{:else} @@ -95,7 +97,9 @@
{#if catchRecord} -
+
@@ -116,7 +120,7 @@ @@ -126,30 +130,30 @@
-
-
- {#if pokedexEntry.canGigantamax && showForms} -
-
-
- {/if} + {#if pokedexEntry.canGigantamax && showForms} +
+
+ +
+
+ {/if}

{#if showOrigins} -
+

Origin Dex Requirements

Region to Catch In: {pokedexEntry.regionToCatchIn}

Games to catch in:

@@ -184,7 +188,7 @@
{/if} {#if pokedexEntry.catchInformation.length > 0} -
+

Where to catch:

    {#each pokedexEntry.catchInformation as info} @@ -206,7 +210,7 @@

{:else} -
+

Where to catch: Currently missing - can you diff --git a/src/lib/components/pokedex/PokedexModal.svelte b/src/lib/components/pokedex/PokedexModal.svelte index 9207308..99821d6 100644 --- a/src/lib/components/pokedex/PokedexModal.svelte +++ b/src/lib/components/pokedex/PokedexModal.svelte @@ -25,7 +25,7 @@ {#if isOpen}